1.对对应的事件添加长度判断即可;如:(onkeyup="this.value = this.value.slice(0, 500)")(调试结果成功) 2.重新jquery maxlength(调试结果无效)