IOS 複製粘貼號碼到input,點擊後獲取不了值

 

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

IOS環境下,複製號碼,粘貼到input,而後點擊一個按鈕,獲取不到裏面的值。code

安卓環境能夠blog

解決方法:input

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

 

將number改爲  text.。。。由於粘貼進來的是文本。因此獲取不到class

相關文章
相關標籤/搜索