关于Jquery datagrid formatter 有思想的进来看看 jquerydatagrid 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 把bind 改为 on 试试看,好像是jquery的高版本中,都是用on来绑定事件了。 formatter只能返回字符串不能返回dom对象,span增加onclick事件,将需要的参数数据传递进行就好了SetTop = function (value, row, index) {return "<span style='cursor:pointer' onclick='func(\""+value+"\","+index+")'></span>";//row要转为字符串后传递,没必要,可能回导致字符串不闭合,可以通过datagrid的selectRow+getSelected方法组合获取到}function func(value,index){var row=$('#xxx').datagrid('selectRow',index).datagrid('getSelected')} js控制页面转向,怎么样隐藏转向后的链接 急需答复 javascript function里面的值外面怎么读取? 图片特效容量问题 ff没有onselectstart怎么解决 求助 关于frame的清空问题 如何控制用form提交新打开的窗口的各项属性 如果得到某个td的屏幕坐标? 在内框架中如何取得外部网址?后边的参数值 可不可以只reset某一个input或select等 Javascript分隔字符串处理 下载文件时显示loading 为什么会出错,Uncaught ReferenceError: text is not defined ,求路过的大神指导
return "<span style='cursor:pointer' onclick='func(\""+value+"\","+index+")'></span>";//row要转为字符串后传递,没必要,可能回导致字符串不闭合,可以通过datagrid的selectRow+getSelected方法组合获取到
}function func(value,index){
var row=$('#xxx').datagrid('selectRow',index).datagrid('getSelected')
}