次の jQuery プラグイン内の関数作成方法は正しいですか?
(function($){
$.fn.sample = function() {
test();
}
function test() {
alert('Inside jQuery plugin');
}
}(jQuery));
次の jQuery プラグイン内の関数作成方法は正しいですか?
(function($){
$.fn.sample = function() {
test();
}
function test() {
alert('Inside jQuery plugin');
}
}(jQuery));