JavaScript中判断为整数的多种方式
摘要:之前记录过JavaScript中判断为数字类型的多种方式,这篇看看如何判断为整数类型(Integer)。JavaScript中不区分整数和浮点数,所有数字内部都采用64位浮点格式表示,和Java的double类型一样。但实际操作中比如数组索引、位操作则是基于32位整数。方式一、使用取余运算符判断任何...
阅读全文
posted @ 2014-07-07 07:46
If you cannot hear the sound of the genuine in you, you will all of your life spend your days on the ends of strings that somebody else pulls.
posted @ 2014-07-07 07:46