在一个我创建的jQuery插件中,我已经创建了一些辅助函数,例如:
(function($) {
var someHelperFunction = function(s, d) {
return s*d;
}
var someOtherHelperFunction = function(s) {
return s*2;
}
// here goes the normal plugin code
})(jQuery);
现在我想从外部调用someHelperFunction,以便能够对其进行单元测试,有什么办法可以实现吗?