EasyUI获取正在编辑状态行的索引

function getRowIndex(target){

var tr = $(target).closest("tr.datagrid-row");

return paseInt(tr.attr("datagrid-row-index"));

}

然后用getRowIndex(this)即可获取当前编辑行的索引

posted @ 2017-07-17 10:32  紫薇帝星的故事  阅读(996)  评论(0编辑  收藏  举报