如何判断一个变量是不是数组rt[解决办法]typeof a== "object '&&a.constructor=Array http://hi.baidu.com/simonrobins/blog/item/16ff91014a97bc02738da5e2.html