摘要: var value = arr.map(function (x) {return x * x}); const arr = [1,2,3,4]; const value = arr.map(x => x * x); //value = {[[1,1],[2,4],[3,9],[4,16]]} nat 阅读全文
posted @ 2018-07-02 15:27 walle1314 阅读(3712) 评论(0) 推荐(0) 编辑