浠ユ妧鏈负涓
dtree
javascript涓爲鐘剁粨鏋勭殑瀹炵幇涔媎tree缁勪欢
鍗 29th
dtree鏄竴涓猨avascript缁勪欢搴擄紝鍙互寰堝鏄撶殑鏋勯犳爲褰㈢粨鏋勭殑鑿滃崟銆
涓嬭浇鍦板潃锛http://www.destroydrop.com/javascripts/tree/default.html
add()
Adds a node to the tree.
Can only be called before the tree is drawn.
id, pid and name are required.
Parameters
Name Type Description
id Number Unique identity number.
pid Number Number refering to the parent node.
The value for the root node has to be -1.
name String Text label for the node.
url String Url for the node.
title String Title for the node.
target String Target for the node.
icon String Image file to use as the icon. Uses default if not specified.
iconOpen String Image file to use as the open icon. Uses default if not specified.
open Boolean Is the node open.
浠ヤ笂鏄痙tree鐨凙PI浠嬬粛锛屾渶涓昏鐨勫嚱鏁版槸add(),浜嗚В瀹冪殑鍙傛暟鐢ㄦ硶 鏇村 >
杩戞湡璇勮