tree
<a href="javascript:void(0)" onclick="saveChecked()()" class="easyui-linkbutton" iconcls="icon-save">@webmodel.GetLableLanguageName("EPS_LAB_Save")</a>
<a href="javascript:void(0)" onclick="initializeMenu()()" class="easyui-linkbutton" iconcls="iconCls:'icon-undo'">@webmodel.GetLableLanguageName("EPS_LAB_Cancel")</a>
<a href="javascript:void(0)" onclick="back()()" class="easyui-linkbutton" data-options="iconCls:'icon-back'">@webmodel.GetLableLanguageName("EPS_LAB_Back")</a>
<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-save" plain="true"
onclick="save()">@webmodel.GetLableLanguageName("EPS_LAB_Save")</a>
以前是ViewData
MVC3中 ViewBag使用类似属性访问的语法检索字典中的值 ViewBag.Message等同于ViewData
["Message"]
<img src="@Url.Content("~/Content/Base/Images/Manpower.gif")" alt="" title=""
onclick="operation_permitedit(\''+rec.RoleID+'\')"/>';
1 //获取所有树叶子节点 注册添加事件 if ($(node).tree('isLeaf', node.target)) 是否叶子
节点
2 $(function () {
3 $('.easyui-tree').tree({
4 onClick: function (node) {
5 if ($(node).tree('isLeaf', node.target)) {
6 alert(node.text);
7 }
8 }
9 })
10
11 })
easyui获取树实心节点数据方式
2013-09-16 10:09 66人阅读 评论(0) 收藏 举报
var nodes3 = $('#Tree').tree('getChecked', 'indeterminate'); //获取模糊不清的
/*获取树节点数据*/
function getChecked(p){
var nodes = p.find('form #functionlist').tree('getChecked');
var s = '';
for(var i=0; i<nodes.length; i++){
if (s != '') s += ',';
s += nodes[i].id;
}
var fatherNodes = p.find('form #functionlist').tree('getChecked', 'indeterminate'); //
获取模糊不清的父亲节点即实心节点
for(var i=0; i<fatherNodes.length; i++){
if (s != '') s += ',';
s += fatherNodes[i].id;
}
return s;//包括所有的节点
}
更多 0
上一篇:mybatis多对多关
<a href="javascript:;" onclick="document.form.submit();"><img src="login_08.gif" width="50" height="35" /></a>
1 |
var nodes = []; |
2 |
$( "#Tree" ).find( '.tree-checkbox2' ).each( function (){ |
3 |
var node = $( this ).parent(); |
4 |
nodes.push($.extend({}, $.data(node[0], 'tree-node' ), { |
5 |
target: node[0], |
6 |
checked: node.find( '.tree-checkbox' ).hasClass( 'tree-checkbox2' ) |
7 |
})); |
8 |
}); |
1 |
|