JS代码,onkeydown="gbcount(this.form.gb_word,this.form.total,this.form.used,this.form.remain)";onkeyup="gbcount(this.form.gb_word,this.form.total,this.form.used,this.form.remain)";
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/28 14:18:09
JS代码,onkeydown="gbcount(this.form.gb_word,this.form.total,this.form.used,this.form.remain)";onkeyup="gbcount(this.form.gb_word,this.form.total,this.form.used,this.form.remain)";
JS代码,
onkeydown="gbcount(this.form.gb_word,this.form.total,this.form.used,this.form.remain)";
onkeyup="gbcount(this.form.gb_word,this.form.total,this.form.used,this.form.remain)";
JS代码,onkeydown="gbcount(this.form.gb_word,this.form.total,this.form.used,this.form.remain)";onkeyup="gbcount(this.form.gb_word,this.form.total,this.form.used,this.form.remain)";
onkeydown是键盘按下一个键时执行某个函数
onkeyup是按下一个键放开时执行某个函数
gbcount是你自己写的一个函数传了4个参数,参数用逗号分开.
this.form.gb_word
this.form.total
this.form.used
this.form.remain
this.form是当前对象下的form
this.form.total在form下找名为total的对象.