标签:java io cti amp window res js jquery
//jquery
$("#input_title").keydown(function(e){
e = e||window.event;// Firefox window.event
if((e.keyCode || e.which) == 13){
return false;
}
});
//js
document.onkeypress=function(e) {
e = e||window.event;//Firefox window.event
if((e.keyCode || e.which) == 13){
return false;
}
}
javascriot&jquery 禁止enter,布布扣,bubuko.com
标签:java io cti amp window res js jquery
原文地址:http://www.cnblogs.com/yangbt/p/3875860.html