Kothing
Author of Kothing, a Bootstrap Medium styled template available for WordPress, HTML, Ghost and Jekyll. You are currently previewing Jekyll template demo.

Object.defineProperties()用法详解

Object.defineProperties() 方法直接在一个对象上定义新的属性或修改现有属性,并返回该对象。

参考:https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties