执行完问什么不是输出属性标签,而是[object.object]
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script> var person={}; Object.defineProperties(person,{ one:{value:30,}, two:{value:303,enumerable:true,configurable:true} }); var s=Object.getOwnPropertyDescriptor(person,'two'); document.write(s); </script> </body> </html>