Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/75.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 掌上电脑不';不能使用IE和Chrome_Jquery_Cross Browser_Handsontable - Fatal编程技术网

Jquery 掌上电脑不';不能使用IE和Chrome

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($(

我是新来的,非常新,抱歉

我必须修复一个bug,但我不知道怎么做

我使用以下代码:

$('#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链接。