开发者

jQuery getscript callback not come when i call them in jQuery

开发者 https://www.devze.com 2023-03-19 21:17 出处:网络
in a function i call the script at runtime function ShowMeYourFace() { $.getScript(\"/scripts/jtimers.js\", function (data) {

in a function i call the script at runtime

function ShowMeYourFace() {
    $.getScript("/scripts/jtimers.js", function (data) {
 });
};

in the block inside of g开发者_如何学Cetscript i can see in firebug that they call them everytime function called but i never found that jtimer works. when i see in chrome dev tool i found a problem that Uncaught TypeError: Object # has no method 'everyTime' everyTime is a function in jtimer plugins.

can someone tell me how i can do this work.


In the js file where you call the script you can only use the functions of the script in the callback.

Maybe you can post some code where you call the everyTime function?

0

精彩评论

暂无评论...
验证码 换一张
取 消