Extjs 取消backspace事件
2021-05-17 13:27
标签:== only readonly get ace text type cti prevent Ext.getDoc().on(‘keydown‘,function(e){ }else if(e.getKey() == 8 && e.getTarget().type ==‘textarea‘ && !e.getTarget().readOnly){ }else if(e.getKey() == 8){ Extjs 取消backspace事件 标签:== only readonly get ace text type cti prevent 原文地址:http://www.cnblogs.com/myknow/p/7742651.html
if(e.getKey() == 8 && e.getTarget().type ==‘text‘ && !e.getTarget().readOnly){
e.preventDefault();
}
});
下一篇:保存单文件为mhtml