easyui的datagrid点击页面时怎么触发指定的URL连接

2025-05-17 21:56:48
推荐回答(2个)
回答(1):

grid1 = $('#tt1').datagrid({
nowrap: true,//设置为true,当数据长度超出列宽时将会自动截取。
striped: true,//显示条纹
loadMsg:'正在加载数据.......',//当从远程站点载入数据时,显示的一条快捷信息
rownumbers:true,//设置为true将显示行数
url:'test!page.action',
singleSelect: true
});
只需要这样写,点击下一页就会执行这个url

回答(2):

var width = $(window).width()-80;
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
});
}
}
});