js Uncaught TypeError: undefined is not a function

如下代码:

var columns={};

var column={};

column.name='张三';

columns.push(column);

会出现Uncaught TypeError: undefined is not a function 此错误,改成var columns=[]便可。

posted on 2014-05-28 11:09  学无止境2023  阅读(741)  评论(0编辑  收藏  举报

导航