jQueryMobile - 从其他页面调用 JavaScript


jQueryMobile - Call JavaScript from other Page

所以我有两个文件/页面:fileA.phpfileB.php

fileB.php通过 AJAX 从 fileA.php 调用,并通过 GET 将一些数据传递给fileB.php

fileA.php中,FlipSwitch在单击它时被禁用,单击它也会调用fileB.php,其中执行某些功能。

我现在想要的是fileA.php中的功能完成后重新启用 FlipSwitch fileB.php 执行完毕。

好的,已经知道了。我将jQuery调用放入一个变量中,并通过deferred.always运行它,然后执行我需要重新激活FlipSwitch的JavaScript代码,现在运行良好!