是的你可以
Object.getOwnPropertyDescriptor(JSON, 'parse')
> {writable: true, enumerable: false, configurable: true}
Run Code Online (Sandbox Code Playgroud)
像这样
(function(JSON) {
var oldParse = JSON.parse;
JSON.parse = function newParse() {
}
}(JSON))
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3794 次 |
| 最近记录: |