摘要: foo () { // ... } 等价于 foo: function () { // ... } foo: () => { // ... } 范例: // 全局 name = 'zhangsan' const a = { name: 'lisi', sayName () { console.log 阅读全文
posted @ 2017-12-01 14:37 AndreMao 阅读(1021) 评论(0) 推荐(0) 编辑