EasyUI,点击开启编辑框,并且编辑框获得焦点

onClickRow : function(rowIndex, rowData){
     var editor = $('#datagrid').datagrid('getEditor', {index:rowIndex,field:"buyNum"});
     editor.target.focus();
 }

点击一行,开启编辑框的同时,将光标放在编辑框中。

rowIndex:是开启编辑框这行当前页的行索引,从0开始;

buyNum:是开启编辑框的字段的名字。

你可能感兴趣的:(easyui,焦点,编辑框)