标签:
$("#form-search").find(‘#search-query‘).bind(‘keypress‘, function(e) {
var keycode;
if(window.event){
keycode = e.keyCode; //IE
}
else if(e.which){
keycode = e.which;
}
if (keycode != 13) {
return;
}
that.search();
e.stopPropagation();
return false;
});
标签:
原文地址:http://www.cnblogs.com/zhdc/p/4533275.html