08 2021 档案
摘要:Object.defineProperty() 方法会直接在一个对象上定义一个新属性,或者修改一个对象的现有属性,并返回此对象。 const obj1 = { age: 18, color: 'yellow', gender: 'male', work: 'true' } /* 对象里目前存在的属性
阅读全文
摘要:// 变量 @width: 10px; @height: @width + 10px; #header { width: @width; height: @height; } // .bordered { border-top: dotted 1px black; border-bottom: so
阅读全文