Jquery 掌上电脑不';不能使用IE和Chrome
我是新来的,非常新,抱歉 我必须修复一个bug,但我不知道怎么做 我使用以下代码:Jquery 掌上电脑不';不能使用IE和Chrome,jquery,cross-browser,handsontable,Jquery,Cross Browser,Handsontable,我是新来的,非常新,抱歉 我必须修复一个bug,但我不知道怎么做 我使用以下代码: $('#tableDiv').on('click', 'td input.htCheckboxRendererInput', function (event) { console.log("chosen a row"); var selection = $("#tableDiv").handsontable('getInstance').getSelected(); $.each($(
$('#tableDiv').on('click', 'td input.htCheckboxRendererInput', function (event) {
console.log("chosen a row");
var selection = $("#tableDiv").handsontable('getInstance').getSelected();
$.each($( this ).closest('td').siblings('td'), function(){
console.log($(this).text());
});
var indice=$( this ).closest('td').siblings('th').text();
console.log("indice della riga:"+indice);
console.log(TABLE_DATA[indice-1]);
TABLE_DATA_PROMOTE.push(TABLE_DATA[indice-1]);
});
这适用于Firefox,但不适用于IE和Chrome
有人能帮我解决吗?无论问题是什么,我建议使用。特别是,您正在寻找:
afterSelection (r: Number, c: Number, r2: Number, c2: Number)
在选择一个或多个单元格(鼠标移动时)时触发回调。参数:
r selection start row
c selection start column
r2 selection end row
c2 selection end column
您可以很容易地看到,这可以用来复制您的代码。请注意,
r2
和c2
与r
和c
不同,如果您一次选择多个单元格,则我认为与您的情况无关。添加一些问题的示例代码,例如添加一个带有示例代码的JSFIDLE链接。