摘要:
1、验证是否为浮点数2、验证整数functionisInteger(obj) {returntypeofobj ==='number'&& obj%1 === 0 } functionisInteger(obj) {returnMath.floor(obj) === obj } function... 阅读全文
posted @ 2015-07-20 21:05
keep_fighting
阅读(180)
评论(0)
推荐(0)
摘要:
1、验证是否为浮点数2、验证整数functionisInteger(obj) {returntypeofobj ==='number'&& obj%1 === 0 } functionisInteger(obj) {returnMath.floor(obj) === obj } function... 阅读全文
posted @ 2015-07-20 21:01
keep_fighting
阅读(58)
评论(0)
推荐(0)
浙公网安备 33010602011771号