ES6 简化对象写法
#简化对象写法1. 常规书写var eleAll={ name:'', age:'', fn:function(){ console.log('我是方法') }} eleAll.name='野猪' eleAll.age=18 console.log(eleAll)2. ES6语法书写 //ES6语法书写 let name='野猪' let fnct=function(){ console.log('我是方法1') } const school={ name