摘要: 1.原生写法:function(){}; var a = function(){console.log('wl')}; 2.es6(箭头函数) 1).不传参:()=>{}; var a = ()=>{ console.log('wl)}; 2)传一个参:item=>{}; 在传一个参时括号可省略 l 阅读全文
posted @ 2021-10-27 09:53 是小王呀 阅读(33) 评论(0) 推荐(0)