Daily Archives: January 30, 2019

Object.defineProperty

Object.defineProperty(obj, prop, descriptor) descriptor分成data descriptor和access descriptor,兩者不能混用。 If a descriptor has neither of value, writable, get and set keys, it is treated as a data descriptor. If a descriptor has both value or writable and get or set keys, an exception … Continue reading

Posted in nodejs | Leave a comment