对象数组
list: [{
icount: "61"
keyword_rank: "1"
keywords: "冷启动和热启动的区别"},
{
icount: "62"
keyword_rank: "1"
keywords: "冷启动和热启动的区别"},
{
icount: "63"
keyword_rank: "1"
keywords: "冷启动和热启动的区别"},
{
icount: "64"
keyword_rank: "1"
keywords: "冷启动和热启动的区别"}
]
// 最大值
Math.max.apply(null, list.map(function (item) {return item.icount}))
// 最小值
Math.min.apply(null, list.map(function (item) {return item.icount}))
提示 map is not function 查百度 说是 vue1.0 有 map 2.0 没有map, 那2.0 要怎么取值?