Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58
那就要在keypress时保证文本框的光标在尾部,而文本框value赋值后其光标默认在最后,故可采用如下方式:
<input name=”” type=”text” onkeypress=”this.value=this.value” />