utils class v1.0:The common methods used in our JS are included. * by sarah on 2016/01/28var utils = { //listToArray:将类数组转换为数组 listToArray: function l Read More
posted @ 2016-01-28 11:33 __sarah Views(994) Comments(0) Diggs(0) Edit
1、typeof 用来检测数据类型的运算符->typeof value->返回值首先是一个字符串,其次里面包含了对应的数据类型,例如:"number"、"string"、"boolean"、"undefined"、"object"、"function"->局限性:1)typeof null ->"o Read More
posted @ 2016-01-28 10:33 __sarah Views(8603) Comments(1) Diggs(0) Edit