答案 0 :(得分:1)
尝试稍微更改您的功能和通话。
function CheckTwo(event){
var tKey = (event.which) ? event.which : event.keyCode;
if (tKey == 13){
AddToList();
document.getElementById("two").value = "";
GiveFocus("two");
}
}
<input type = 'text' name = 'bonregel' id = 'two' onkeyup = 'CheckTwo(event)' />