0
如何在該方法內調用test()?這是可能的?如何在匿名javascript內調用該函數? (TinyMce示例)
(function() {
tinymce.create('tinymce.plugins.WrImagerPlugin', {
init : function(editor, url) {
editor.addCommand('mceWrImagerLink', function() {
//--> how can i refer to test() here?
});
},
test: function() {alert('test');}
}
});
tinymce.PluginManager.add('wr_imager', tinymce.plugins.WrImagerPlugin);
})();
+1我喜歡你的答案,很不錯的選擇! Alsciende的解決方案有點接近我的需求,所以獲得公認的標誌(對我來說) – apelliciari 2010-03-25 16:41:28