summaryrefslogtreecommitdiffstats
path: root/common/src/main/webapp/thirdparty/zTree/api/cn/treeNode.name.html
blob: 918f2b497b64ced4f4271e3404cce21edb650ece (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<div class="apiDetail">
<div>
	<h2><span>String</span><span class="path">treeNode.</span>name</h2>
	<h3>概述<span class="h3_info">[ 依赖 <span class="highlight_green">jquery.ztree.core</span> 核心 js ]</span></h3>
	<div class="desc">
		<p></p>
		<div class="longdesc">
			<p>节点名称。</p>
			<p class="highlight_red">1、如果不使用 name 属性保存节点名称,请修改 setting.data.key.name </p>
			<p>默认值:无</p>
		</div>
	</div>
	<h3>String 格式说明</h3>
	<div class="desc">
	<p>节点显示的名称字符串,标准 String 即可,所有特殊字符都会被自动转义</p>
	</div>
	<h3>treeNode 举例</h3>
	<h4>1. 设置节点的名称为 test1、test2、test3</h4>
	<pre xmlns=""><code>var nodes = [
	{ "id":1, "name":"test1"},
	{ "id":2, "name":"test2"},
	{ "id":3, "name":"test3"}
]</code></pre>
</div>
</div>