<a href 不跳转执行自定义的函数功能

需求描述:在ligerUI 的框架中中的grid 中点击某一列的数据链接到新的明细资料中。

解决方法: 在grid的columns的渲染事件中调用 " render: function (item) { return "<a href='' target='maingrid' style='text-decoration: none;'  onclick='DKRecord();return false'>" + item.姓名 + "</a>" } }," 执行自定义的方法DKRecord(),这样页面就不会跳转。

posted @ 2016-12-05 18:57  hzf08  阅读(416)  评论(0编辑  收藏  举报