如题,在treegrid里,按照api里getEditor方法的说明, getEditoroptionsGet the specified editor, the options contains two properties:index: the row index.field: the field name. var nameEditor=$('#menuTable').treegrid('getEditor', {id:editingId,field:"name"}); 这样应该
今天遇到一个问题,那就是当使用for循环批量注册事件处理函数,然后最后通过事件处理函数获取当前元素的索引值的时候会失败,先看一段代码实例: <script type="text/javascript"> window.onload=function(){ var oLis=document.getElementsByTagName("li"); var oshow=document.getElementById("show"); fo