我有一个脚本(下面)用3步骤过程擦除网站.一次设置为最多1页时效果很好.然而,当我把它增加到2时,事情开始变得不稳定.onFinished比我预期的更早开火,页面还没有完全加载.因此,我脚本的其余部分会中断.知道为什么会这样吗?我应该补充一点,我使用的是最新版本(1.5).
MAX_PAGES = 1
###
changing MAX_PAGES to >1 causes some pages onFinished event to fire before
the page is fully rendered. this is evident by the fact that there are >1 images
for some pages. i havent been able to reproduce using microsoft.com, but on some
pages i was working on the first onLoadFinished seemed to be called before the page
was actually fully loaded based on the look of the rendered images
###
newPage = (id) ->
context …Run Code Online (Sandbox Code Playgroud)