如何重置浏览器JavaScript功能的原始原型?

时间:2019-06-27 06:50:44

标签: javascript browser

我已经用自定义代码覆盖了浏览器JavaScript函数的本机原型,然后无法将其重置为本机函数:

//override with my code
HTMLAudioElement.prototype.play = function doSomeStuff(){}
//and then i want reset to default native function

0 个答案:

没有答案