ES6 Json 以及字符串相關新特性(字符串模板)

json 省略 functionjavascript 在 json 中,咱們能夠這樣寫一個方法java let json = { a:1, b:100, add: function() { console.log(this.a+this.b); } } json.add(); // 101 如今,咱們能夠把 function 省略了,效果是同樣的web let a = 1;
相關文章
相關標籤/搜索