js & enter
js & enter
keycode
function (e) {
if (e.which === 13 || e.keyCode === 13) {
//code to execute here
return false;
}
return true;
};
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/10260944.html
未经授权禁止转载,违者必究!