如果我有這樣的代碼在一個名爲custom.js:jQuery的 - 調用外部的js文件的功能
var kennel = function(){this._init();};
kennel.prototype = {
_init: function() {
this.setListeners();
},
setListeners: function(){
...
},
getCats: function(){
alert("Get cats");
}
};
如何調用getCats()
一些任意的HTML文件?