我在delphi应用程序中使用TWebBrowser组件,并使用JavaScript进行通信。在JavaScript中,我有以下代码: var nr = external.GetNumber(); nr = parseInt(nr); // this is where the javascript fails}
alert(nr)函数显示了我期望的数字(例如: 1517
因为这需要一些时间,我需要我的一些javascript函数调用按顺序发生,这样一个函数的动作就不会害怕另一个函数的动作。为此,我编写了一个“顺序”函数,该函数接受另一个函数,该函数仅在busyflag设置为false时才能调用(即,当没有其他函数调用被同时处理时)。action();}
function test1() {sequential(function() {<e