SSH +Jquery
jsTree.v.1.0rc2
<style type="text/css">
html, body { margin:0; padding:0; }
body, td, th, pre, code, select, option, input, textarea { font-family:verdana,arial,sans-serif; font-size:10px; }
.demo, .demo input, .jstree-dnd-helper, #vakata-contextmenu { font-size:10px; font-family:Verdana; }
#container { width:780px; margin:10px auto; overflow:hidden; position:relative; }
#demo { width:auto; height:400px; overflow:auto; border:1px solid gray; }
#text { margin-top:1px; }
#alog { font-size:9px !important; margin:5px; border:1px solid silver; }
</style>
</head>
<body>
<div id="demo" class="demo"></div>
<input type="hidden" id="path" value="<s:property value="#attr['contentPath']"/>"/>
<script type="text/javascript">
$(function () {
$.jstree._themes = $("#path").val()+"/js/jstree/themes/";
$("#demo").jstree({
"json_data" : {
data : <s:property value="#request.json" escape="false"/>
},
"plugins" : [ "themes", "json_data", "checkbox"]
});
});
</script>
var nodes=$("#demo").jstree("get_checked");
if(nodes.length > 0){
$.each(nodes, function(i, n) {
guids += $(n).attr("id")+"@"+$(n).attr("nodetype")+"#";
});
$.getJSON('memberJSON!addTemplateUser.action',{'guids' : guids,'tempId' : $("#tempnum").val()},function(json){
if(json.result){
openTo('sl-tab-content','frame.action?templateId=' + $("#tempnum").val());
}
});
}
[{'attr':{'id':'5','nodetype':'g'},'data':'还要测试','children':[{'attr':{'id':'1','nodetype':'u'},'data':'刘喜杰','icon':'/BDMOP3_MMS/js/jstree/leaf.png'},{'attr':{'id':'3','nodetype':'u'},'data':'wch','icon':'/BDMOP3_MMS/js/jstree/leaf.png'},{'attr':{'id':'4','nodetype':'u'},'data':'test','icon':'/BDMOP3_MMS/js/jstree/leaf.png'},{'attr':{'id':'5','nodetype':'u'},'data':'魏春辉','icon':'/BDMOP3_MMS/js/jstree/leaf.png'},{'attr':{'id':'2','nodetype':'u'},'data':'weichunhui','icon':'/BDMOP3_MMS/js/jstree/leaf.png'}],'icon':'/BDMOP3_MMS/js/jstree/folder.png'}]
/*if(!m.icon && js.icon) { m.icon = js.icon; }
if(m.icon) {
if(m.icon.indexOf("/") === -1) { tmp.children("ins").addClass(m.icon); }
else { tmp.children("ins").css("background","url('" + m.icon + "') center center no-repeat"); }
}*/
tmp.children("ins").css("background","url('" + js.icon + "') center center no-repeat");
分享到:
相关推荐
jquery.jstree.rar jquery.jstree.rar jquery.jstree.rar jquery.jstree.rar jquery.jstree.rar jquery.jstree.rar jquery.jstree.rar
jsontree (jquery.treeview.js) jQuery插件版 treeview1.0jsontree (jquery.treeview.js) jQuery插件版 treeview1.0jsontree (jquery.treeview.js) jQuery插件版 treeview1.0jsontree (jquery.treeview.js) jQuery...
jquery-1.4.4.min.js jquery.ztree.exhide.min.js jquery.ztree.exedit.min.js jquery.ztree.excheck.min.js jquery.ztree.core.min.js jquery.ztree.all.min.js jquery-1.4.4.js jquery.ztree.exhide.js jquery....
jquery.jstree.faster.js
jquery.cookie.js,jquery-1.11.0.min.js,respond.min.js, bootstrap.min.js,html5shiv.js
单页后退前进刷新 jquery.hash.min.js 和 jquery.ba-hashchange.min.js
jquery.json-2.3.min.js和jquery.json-2.3.js jQuery为开发插件提拱了两个方法,分别是:jQuery.extend(object); 为扩展jQuery类本身 jQuery.fn.extend(object);给jQuery对象添加方法。
jquery.tools.min.js 最新的1.2.7版本 jquery.min.js是压缩版的jquery库,...而jquery.js是完整的未压缩的jQuery库,带有注释和空格,方便阅读源码,文件比较大;一般用于阅读学习源码或修改源码,一般不用于线上项目
jquery.treegrid.min.js jquery.treegrid.min.jsjquery.treegrid.min.jsjquery.treegrid.min.js
jquery.checktree.js的资源jquery.checktree.js的资源jquery.checktree.js的资源
jquery.media.js
jquery.form.js jquery.form.js
在官网上一直下载不下来 然后共享在这 jquery.json-2.3.min.js和jquery.json-2.3.js
jquery-3.7.0.min.js(jQuery下载)jquery-3.7.0.min.js(jQuery下载)jquery-3.7.0.min.js(jQuery下载)jquery-3.7.0.min.js(jQuery下载)jquery-3.7.0.min.js(jQuery下载)jquery-3.7.0.min.js(jQuery下载)...
jquery.slimscroll.min.js下载 jquery.slimscroll.min.js下载
jquery.js和jquery.cookie.js前端开发工具,亲测可用。
jquery.pagination.js 下载,优秀的jquery分页插件,使用IP代理国外网站下载而来
jquery.cookie.js下载 jquery.cookie.js下载
jquery.marquee.js官方下载jquery.marquee.js官方下载
个人把常用的一些jquery插件做了一个demo,里面有jquery.dropkick-1.0.0.js、slider.js、fullcalendar-1.5.2、jquery.grumble.js、jcarousellite_1.0.1.js(已修改)、jquery.jqzoom.js、jquery.thickbox.js、jquery...