标签:== only readonly get ace text type cti prevent
Ext.getDoc().on(‘keydown‘,function(e){
if(e.getKey() == 8 && e.getTarget().type ==‘text‘ && !e.getTarget().readOnly){
}else if(e.getKey() == 8 && e.getTarget().type ==‘textarea‘ && !e.getTarget().readOnly){
}else if(e.getKey() == 8){
e.preventDefault();
}
});
标签:== only readonly get ace text type cti prevent
原文地址:http://www.cnblogs.com/myknow/p/7742651.html