摘要:
function isArray(obj){ return Object.prototype.toString.call(obj) == "[object Array]";} 不能用instanceof 和 constructor来判断,原因参考:http://perfectionkills.com/instanceof-considered-harmful-or-how-to-write-a-robust-isarray/ 阅读全文
posted @ 2013-02-13 12:02
GM_Lv
阅读(1143)
评论(0)
推荐(0)

浙公网安备 33010602011771号