摘要:
var str1 = '{ "name": "xiaol", "sex": "man" }'; formatJson(str1) { "name": "xiaol", "sex": "man"} 阅读全文
posted @ 2017-04-26 21:40
413Xiaol
阅读(877)
评论(0)
推荐(0)
摘要:
var arr=[1,2,3,4,5,6]; res = arr.map(function(x){return x*x}) [1, 4, 9, 16, 25, 36] res = arr.filter(function(x){return x<3}) [1, 2] res = arr.reduce( 阅读全文
posted @ 2017-04-26 00:04
413Xiaol
阅读(216)
评论(0)
推荐(0)