解决js函数replace禁止输入框输入非法字符,光标回到文字最后问题

来源:互联网 发布:淘宝的收入来源 编辑:程序博客网 时间:2024/06/01 07:28
<input  type='text' onkeyup="var titleText = value.replace('+', ''); if (titleText != value) { value = titleText; }"  />
阅读全文
0 0
原创粉丝点击