Created
July 31, 2017 23:50
-
-
Save lxmfly123/0121a563c142e642430957fc4f4308b0 to your computer and use it in GitHub Desktop.
Error Object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var err = new Error('A test message.'); | |
err.hasOwnProperty('message'); // true | |
JSON.stringify(err); // {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
按说应该会返回一个至少包含
message
属性的 json 对象吧。