将默认值返回到预定义的javascript对象 [英] Return the default value to a predefined javascript object

查看:87
本文介绍了将默认值返回到预定义的javascript对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何恢复预定义JavaScript对象或函数的默认值(如对象 window.console ,或函数 document.getElementById )一旦改变了吗?

How can you restore the default value of a predefined JavaScript object or function (like the object window.console, or the function document.getElementById) once it has been changed?

推荐答案

@FelixKling的答案解决了我制定的问题。 此处就是一个例子。
谢谢@FelixKling。
另一方面,我已经制定了另一个问题,更简洁,这里

The answer of @FelixKling solves the question I formuled. Here is an example. Thank you, @FelixKling. On the other hand, I have formuled another question, more concise, here

这篇关于将默认值返回到预定义的javascript对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆