Such as the Title Description
In JavaScript, what is the difference between var a=5. and var a=5?
typeof(5.) //return number
typeof(5) //return number
在javascript中,浮点数也被视为数字,因此typeof(5.)
等于返回数字的typeof(5.0)
。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.