转换前是这样的:
var articles = [{
title: 'hello',
content: 'hello world',
created_at:'2017-08-30 13:45:15'
},{
title: 'foo',
content: 'foo bar',
created_at:'2017-08-30 13:45:15'
}];
我想把它转成这样:
var articles2 = [
[ 'hello', 'hello world', '2017-08-30 13:45:15' ],
[ 'foo', 'foo bar','2017-08-30 13:46:06' ]
];
用js应该怎么做呢?
白板的微信
相关分类