请教如何获取dhtmlXTree的节点id_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:08:01
Original
1515 people have browsed it

RT,我打算实现一个网页填表功能,通过查看网页源文件我发现网页上有个dhtmlXTree控件,函数

function tonclick(id){		    if (id =="cztz") return;		    path = tree.getUserData(id,"path");		    document.all.main.src=path;		    setLocal(id);		}function rollback(){			var id = tree.getSelectedItemId();			path = tree.getUserData(id,"path");			document.all.main.src=path;			setLocal(id);		} 
Copy after login

源文件中每个节点的id是通过getSelectItemId获取的,我没法知道,现在想请教如何通过其他方式获取id好方便我直接VC中调用rollback函数。谢谢


回复讨论(解决方案)

我不是太懂html,一般元素我在源文件中都能找到ID号之类,这个找不到。

自己解决了。呵呵。通过浏览器地址栏输入jsp文件地址即可。

有没有人来支持下,结贴了。

恩 自己解决了就好 还是不错的

恩 自己解决了就好 还是不错的 貌似没人了分全给你了。嘿嘿,主要是不太懂这方面,所以有点摸不着头脑的忙乎。


恩 自己解决了就好 还是不错的 貌似没人了分全给你了。嘿嘿,主要是不太懂这方面,所以有点摸不着头脑的忙乎。

恩 谢谢 多看看手册就差不多了

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!