IOS 复制粘贴号码到input,点击后获取不了值

 

<input type="number" name="phone" id="phone" />

IOS环境下,复制号码,粘贴到input,而后点击一个按钮,获取不到里面的值。code

安卓环境能够blog

解决方法:input

<input type="text" name="phone" id="phone" />

 

将number改为  text.。。。由于粘贴进来的是文本。因此获取不到class

相关文章
相关标签/搜索