摘要: 对象方法的几种写法 const obj={ init() { }, init2: () => { }, init3: function() { }, } 和普通函数/箭头函数的区别 本来我以为简写方法相当于xxx:function()这种,但在研究jQuery源码时,发现简写不能创建实例.就是说不能 阅读全文
posted @ 2020-11-08 16:51 salvatorewang 阅读(181) 评论(0) 推荐(0)