鍍金池/ 問答/HTML5  網(wǎng)絡(luò)安全  HTML/ input type設(shè)置為number 出現(xiàn)兩個小數(shù)點時輸出value為空

input type設(shè)置為number 出現(xiàn)兩個小數(shù)點時輸出value為空

回答
編輯回答
夢一場

input tupe="number"要求輸入內(nèi)容為數(shù)字,你見過數(shù)字有兩個小數(shù)點的嗎?輸入兩個小數(shù)點轉(zhuǎn)換出錯,肯定為空啦

2018年5月10日 03:38