jQuery.getScript() fails to load function
问题 I am trying to load a script with a function like: $.getScript('/js/mymy.js').done(function(){ if(readCookie('my_cookie', 'yes')){ /* do sth here */ } }); or $.getScript('/js/mymy.js',function(){ if(readCookie('my_cookie', 'yes')){ /* do sth here */ } }); where "readCookie" is defined in mymy.js but i get an error "readCookie" is not defined... Here 1 & 2 is where i have got help how to do, but it does not work... Any Ideas? i do use jQuery 1.8.0 mymy.js does contain a function: jQuery