Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/446.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/82.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
Javascript 如何在可手持触摸屏中滚动到行?_Javascript_Html_Handsontable - Fatal编程技术网

Javascript 如何在可手持触摸屏中滚动到行?

Javascript 如何在可手持触摸屏中滚动到行?,javascript,html,handsontable,Javascript,Html,Handsontable,在初始化期间设置可见行的范围或滚动到所需的表格行 谢谢你的帮助 $('#id').handsontable('selectCell', row1, col1, row2, col2, scrollToSelection = true) $('#id').handsontable('deselectCell'); $(“#id”).handsontable('selectCell',第1行,第1列,第2行,第2列,scrollToSelection=true) $(“#id”).handsonta

在初始化期间设置可见行的范围或滚动到所需的表格行

谢谢你的帮助

$('#id').handsontable('selectCell', row1, col1, row2, col2, scrollToSelection = true) $('#id').handsontable('deselectCell'); $(“#id”).handsontable('selectCell',第1行,第1列,第2行,第2列,scrollToSelection=true) $(“#id”).handsontable('取消选择单元格');
我想做同样的事情,但我有一个类似的方法的问题,因为它模糊了当前的重点元素。在我的例子中,我在selectCell之前保存document.activeElement,然后在selectCell之后调用该保存元素的焦点。