如下,假Xpath为隐藏列,单击某一行时获取
$('#MessPropGrid tbody').on('click', 'tr', function () {
tXpath=$("#MessPropGrid").dataTable().fnGetData(this).Xpath;
});
如下,假Xpath为隐藏列,单击某一行时获取
$('#MessPropGrid tbody').on('click', 'tr', function () {
tXpath=$("#MessPropGrid").dataTable().fnGetData(this).Xpath;
});
转载于:https://www.cnblogs.com/xohg/p/5157801.html