哪位兄弟有 js 遍历 TreeView 的例子,或者提供 TreeView 常用的属性方法的介绍 还是不清楚是哪个呀?是ASP.NET自带的那个吗? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你说的是这个吗?<OBJECT ID="theTreeView" WIDTH="500" HEIGHT="600" CLASSID="CLSID:C74190B6-8589-11D1-B16A-00C0F0283628"></OBJECT><script language=javascript>theTreeView.Nodes.Add(null,0,"R" + 0, "ROOT" + 0);for (var i=1;i<5;i++){theTreeView.Nodes.Add("R" + (i-1), 4, "R" + i, "ROOT" +i);}</script> 是ASP.NET自带的那个吗?是的<iewc <iewc:treeview id="TreeView1" runat="server" BorderColor="#569CE1" BackColor="#569CE1"></iewc:treeview> 不知道他的节点集合是怎么写所以我写 for(i=1;i<TreeView1.NodesCount;i++) { alert(TreeView1.Nodes(i).Text); }都是错的,我查回他引用的那个 htc,发现就这么多<public:component tagname=treeview literalcontent=true><public:attach event=oncontentready onevent="oncontentready()" /><public:attach event=ondocumentready onevent="ondocumentready()" /><public:attach event="onscroll" onevent="onScroll()" /><public:event name="onexpand" id="_tvevtExpand" /><public:event name="oncollapse" id="_tvevtCollapse" /><public:event name="onselectedindexchange" id="_tvevtSelect" /><public:event name="oncheck" id="_tvevtCheck" /><public:event name="onfirequeuedevents" id="_tvevtFireQueuedEvents" /><public:event name="onnodebound" id="_tvevtNodeBound" /><public:event name="onnodetypesbound" id="_tvevtNodeTypesBound" /><public:event name="onhover" id="_tvevtHover" /><public:event name="onunhover" id="_tvevtUnhover" /><public:property name="clickedNodeIndex" GET="getClickedNodeIndex" /><public:property name="defaultStyle" id="_tvpropDefaultStyle" GET="getDefaultStyle" PUT="setDefaultStyle" /><public:property name="hoverStyle" id="_tvpropHoverStyle" GET="getHoverStyle" PUT="setHoverStyle" /><public:property name="selectedStyle" id="_tvpropSelectedStyle" GET="getSelectedStyle" PUT="setSelectedStyle" /><public:property name="childType" id="_tvpropChildType" GET="getChildType" PUT="setChildType" /><public:property name="imageUrl" id="_tvpropImageUrl" GET="getImageUrl" PUT="setImageUrl" /><public:property name="expandedImageUrl" id="_tvpropExpandedImageUrl" GET="getExpandedImageUrl" PUT="setExpandedImageUrl" /><public:property name="selectedImageUrl" id="_tvpropSelectedImageUrl" GET="getSelectedImageUrl" PUT="setSelectedImageUrl" /><public:property name="target" id="_tvpropTarget" GET="getTarget" PUT="setTarget" /><public:property name="treeNodeSrc" id="_tvpropTreeNodeSrc" GET="getTreeNodeSrc" PUT="setTreeNodeSrc" /><public:property name="treeNodeXsltSrc" id="_tvpropTreeNodeXsltSrc" GET="getTreeNodeXsltSrc" PUT="setTreeNodeXsltSrc" /><public:property name="selectExpands" id="_tvpropSelectExpands" GET="getSelectExpands" PUT="setSelectExpands" /><public:property name="expandLevel" id="_tvpropExpandLevel" GET="getExpandLevel" PUT="setExpandLevel" /><public:property name="autoSelect" id="_tvpropAutoSelect" GET="getAutoSelect" PUT="setAutoSelect" /><public:property name="treeNodeTypeSrc" id="_tvpropTreeNodeTypeSrc" GET="getTreeNodeTypeSrc" PUT="setTreeNodeTypeSrc" /><public:property name="showLines" id="_tvpropShowLines" GET="getShowLines" PUT="setShowLines" /><public:property name="showPlus" id="_tvpropShowPlus" GET="getShowPlus" PUT="setShowPlus" /><public:property name="showToolTip" id="_tvpropShowToolTip" GET="getShowToolTip" PUT="setShowToolTip" /><public:property name="indent" id="_tvpropIndent" GET="getIndent" PUT="setIndent" /><public:property name="selectedNodeIndex" id="_tvpropSelectedNodeIndex" GET="getSelectedNodeIndex" PUT="setSelectedNodeIndex" /><public:property name="systemImagesPath" id="_tvpropSystemImagesPath" GET="getSystemImagesPath" PUT="setSystemImagesPath" /><public:method name="queueEvent" /><public:method name="getTreeNode" /><public:method name="addAt" /><public:method name="createTreeNode" /><public:method name="getTreeNodeType" /><public:method name="createTreeNodeType" /><public:method name="addTreeNodeType" /><public:method name="add" /><public:method name="databind" /><public:method name="databindTypes" /><public:method name="getChildren" /></public:component> javascript xml小程序修改 onload="bodyOnLoad()" onresize="ReDraw()"冲突怎么弄啊 ? 未设置宽度的DIV,如何得到宽度值? JS取标签值为题,请帮我解答 ajax后台处理参数问题 如何不出现 关闭对话框? 关于window.showModalDialog()的又一问题。(获取父窗口某个控件的value!) 关于框架的简单问题,大家帮帮忙 如何在一个frame里定时刷新另一个frame里的页面? JScript+asp怎么样写呢??? 在firefox下实现如下功能的javascript的写法 html select(在线等)
<OBJECT ID="theTreeView" WIDTH="500" HEIGHT="600" CLASSID="CLSID:C74190B6-8589-11D1-B16A-00C0F0283628"></OBJECT>
<script language=javascript>
theTreeView.Nodes.Add(null,0,"R" + 0, "ROOT" + 0);
for (var i=1;i<5;i++)
{
theTreeView.Nodes.Add("R" + (i-1), 4, "R" + i, "ROOT" +i);
}
</script>
{
alert(TreeView1.Nodes(i).Text);
}
都是错的,我查回他引用的那个 htc,发现就这么多<public:component tagname=treeview literalcontent=true>
<public:attach event=oncontentready onevent="oncontentready()" />
<public:attach event=ondocumentready onevent="ondocumentready()" />
<public:attach event="onscroll" onevent="onScroll()" />
<public:event name="onexpand" id="_tvevtExpand" />
<public:event name="oncollapse" id="_tvevtCollapse" />
<public:event name="onselectedindexchange" id="_tvevtSelect" />
<public:event name="oncheck" id="_tvevtCheck" />
<public:event name="onfirequeuedevents" id="_tvevtFireQueuedEvents" />
<public:event name="onnodebound" id="_tvevtNodeBound" />
<public:event name="onnodetypesbound" id="_tvevtNodeTypesBound" />
<public:event name="onhover" id="_tvevtHover" />
<public:event name="onunhover" id="_tvevtUnhover" />
<public:property name="clickedNodeIndex" GET="getClickedNodeIndex" />
<public:property name="defaultStyle" id="_tvpropDefaultStyle" GET="getDefaultStyle" PUT="setDefaultStyle" />
<public:property name="hoverStyle" id="_tvpropHoverStyle" GET="getHoverStyle" PUT="setHoverStyle" />
<public:property name="selectedStyle" id="_tvpropSelectedStyle" GET="getSelectedStyle" PUT="setSelectedStyle" />
<public:property name="childType" id="_tvpropChildType" GET="getChildType" PUT="setChildType" />
<public:property name="imageUrl" id="_tvpropImageUrl" GET="getImageUrl" PUT="setImageUrl" />
<public:property name="expandedImageUrl" id="_tvpropExpandedImageUrl" GET="getExpandedImageUrl" PUT="setExpandedImageUrl" />
<public:property name="selectedImageUrl" id="_tvpropSelectedImageUrl" GET="getSelectedImageUrl" PUT="setSelectedImageUrl" />
<public:property name="target" id="_tvpropTarget" GET="getTarget" PUT="setTarget" />
<public:property name="treeNodeSrc" id="_tvpropTreeNodeSrc" GET="getTreeNodeSrc" PUT="setTreeNodeSrc" />
<public:property name="treeNodeXsltSrc" id="_tvpropTreeNodeXsltSrc" GET="getTreeNodeXsltSrc" PUT="setTreeNodeXsltSrc" />
<public:property name="selectExpands" id="_tvpropSelectExpands" GET="getSelectExpands" PUT="setSelectExpands" />
<public:property name="expandLevel" id="_tvpropExpandLevel" GET="getExpandLevel" PUT="setExpandLevel" />
<public:property name="autoSelect" id="_tvpropAutoSelect" GET="getAutoSelect" PUT="setAutoSelect" />
<public:property name="treeNodeTypeSrc" id="_tvpropTreeNodeTypeSrc" GET="getTreeNodeTypeSrc" PUT="setTreeNodeTypeSrc" />
<public:property name="showLines" id="_tvpropShowLines" GET="getShowLines" PUT="setShowLines" />
<public:property name="showPlus" id="_tvpropShowPlus" GET="getShowPlus" PUT="setShowPlus" />
<public:property name="showToolTip" id="_tvpropShowToolTip" GET="getShowToolTip" PUT="setShowToolTip" />
<public:property name="indent" id="_tvpropIndent" GET="getIndent" PUT="setIndent" />
<public:property name="selectedNodeIndex" id="_tvpropSelectedNodeIndex" GET="getSelectedNodeIndex" PUT="setSelectedNodeIndex" />
<public:property name="systemImagesPath" id="_tvpropSystemImagesPath" GET="getSystemImagesPath" PUT="setSystemImagesPath" />
<public:method name="queueEvent" />
<public:method name="getTreeNode" />
<public:method name="addAt" />
<public:method name="createTreeNode" />
<public:method name="getTreeNodeType" />
<public:method name="createTreeNodeType" />
<public:method name="addTreeNodeType" />
<public:method name="add" />
<public:method name="databind" />
<public:method name="databindTypes" />
<public:method name="getChildren" />
</public:component>