Javascript惯用收集

Javascript常用收集1.?javascript的with?if(obj.constructor??Array)?{?????????????alert(这是一个数

Javascript常用收集

1.?javascript的with

?

    if(obj.constructor?==?Array)?{?????????????alert('这是一个数组');????????}????????//主要类型如下:Object?/?Array?/?Function?/?String?/?Number?/?Boolean?

?

转自:http://comeonbabye.iteye.com/blog/1167731