我可以在同一个 html 输入标签上调用多个 onkeyup 事件吗?
<input style="float: left; width: 50px;" id="PersonLength" name="PersonLength" onkeyup="checkNr(this.id)" onkeyup="fill()" type="text">
类似的东西?
<input style="float: left; width: 50px;" id="PersonLength" name="PersonLength"
onkeyup="checkNr(this.id), fill()" type="text">
还是这样?我都用了它们,但我可能有错误的语法?或者有更好的方法吗?