什么是JavaScript window.stop相反的() [英] What is the opposite of javascript window.stop()
问题描述
在我执行 window.stop()
,我怎么可以恢复默认操作?
Once I've executed window.stop()
, how can I resume default actions?
我需要切换/开关机功能,一旦发射将运行 window.stop()
,并与第二轮将收回<$ C $禁用窗口中的操作C> window.stop()。
I need to make toggle/switch function, that once fired will run window.stop()
, and with second run will recover window actions disabled by window.stop()
.
推荐答案
我window.stop()是如何工作的误解之前
I misunderstood before how window.stop() works.
我错了,没有任何直接内置的JavaScript方法来重新加载)由window.stop(停止只有这些元素,让这个意味着它是不可能的。
I was wrong, there are no any "direct inbuilt" javascript method to reload ONLY THESE ELEMENTS stopped by window.stop(), so by this meaning it's impossible.
但是,如果它的需要,我们可以:
However, if it's needed, we can:
- 通过网站上的每一个元素循环由我们自己的函数
- 切网站节,并加载它们逐个与阿贾克斯,所以我们必须重新加载只有特定的章节
- 但我认为这些任何一个它太复杂,难以实施要对得起
所以,停顿片刻网站window.stop()这不是很好的选择。
So, to "pause website for moment" window.stop() it's not good choice.
这篇关于什么是JavaScript window.stop相反的()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!