我在下面有一个代码,当我尝试运行时,当我调用该函数时会出现错误。我想知道,嘿,这是他发生的事情吗?帮助请...
jQuery(document).ready(function($) {
//load config file
$.getScript(baseURl+"/wsj/wconf.js", function(data, textStatus, jqxhr) {
console.log(data); // it is ok
jq(); // Uncaught TypeError: undefined is not a function
//_cusApp.ini(); //Uncaught TypeError: Cannot call method 'ini' of undefined
var _cusApp = {
ini: function (inc) {
console.log('ini');
},
};
var jq = function ( ){
$(document).height(); // jquery not availble here
}
});
});