2014-06-05 18 views

回答

4
 
$('#id').handsontable('selectCell', row1, col1, row2, col2, scrollToSelection = true) 
$('#id').handsontable('deselectCell'); 
+0

我想要做同樣的事情,但我有類似的方法,因爲它模糊了目前的焦點元素的問題。在我的情況下,我在selectCell之前保存document.activeElement,然後在deselectCell之後將焦點調用到保存的元素上。 –