0
我想開始寫我自己的插件 我的問題是調用其他函數,但他們都在一個plguin 我怎麼能在這個函數內調用其他函數?調用jquery插件裏面的其他函數
and this is this code true? ---->
(function($) {
$.fn.hello = function() {
this.each(function() {
alert("Hello");
});
}
$.fn.callHello = function() {
this.each(function() {
hello();
});
}
}(jQuery));
TNX
你嘗試'$ .fn.hello()'? –
$ .fn.callHello = function(){this.if(function(){ $ .fn.hello(); }); } 這個? –