标签:pre highlight bsp -- 增强 写法 html htm const
const name = ‘why‘; const age = 18; const height = 1.88 //原来的写法 const obj = { name: name, age: age, height: height } //增强后写法 const obj = { name, age, height }
//原来的写法 const obj = { run: function () { }, eat: function () { } } //增强后写法 const obj = { run() { }, eat() { } }
Vue学习------------(7)ES6对象字面量增强写法
标签:pre highlight bsp -- 增强 写法 html htm const
原文地址:https://www.cnblogs.com/tang321/p/14535502.html