摘要: function add(a,b){ return a+b } 箭头函数的写法: (a,b)=>{ return a+b } 如用箭头函数进行数组的升序和降序 let arr = [10, 20, 1, 2]; arr.sort((x,y)=>{ return (y-x) }) Console.lo 阅读全文
posted @ 2018-12-27 16:45 realman? 阅读(1134) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-12-27 09:15 realman? 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-12-27 09:14 realman? 阅读(106) 评论(0) 推荐(0) 编辑