var height = $(window).height()-120
stView_layout = $('#stView_layout').layout({
width: width,
height: height
})
station_view = $('#stationView').window({
title: '测站导航',
left:50,
top:80,
width: width,
modal: false,
shadow: false,
closed: true,
height: height,
onResize:function(w,h){
if(stView_treegrid){
stView_treegrid.treegrid({
width:w-20,
height:h-260
})
}
}
})
<head><meta name="generator" content="HTML Tidy, see ">
<meta http-equiv="Content-Type" content= "text/htmlcharset=UTF-8">
<title>jQuery EasyUI</title>
<link rel="stylesheet" type="text/css" href= "../themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href= "../themes/icon.css">
<script type="text/javascript" src="../jquery-1.4.4.min.js">
</script>
<script type="text/javascript" src="../jquery.easyui.min.js">
</script>
<script type="text/javascript">
$(function(){
$('#tt2').tree({
checkbox: true,
url: 'tree_data.json',
onClick: function(node){
$(this).tree('toggle', node.target)
//alert('you dbclick '+node.text)
},
onContextMenu: function(e, node){
e.preventDefault()
$('#tt2').tree('select', node.target)
$('#mm').menu('show', {
left: e.pageX,
top: e.pageY
})
}
})
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)