实现只能输入数字的input不用replace方法_javascript技巧