js中在一个函数中引用另一个函数中的函数,可以这么做

在另一个函数中,将需要使用的函数绑定在window下

// UEditor
$(function () {
    window.ue = UE.getEditor('editor', {    // ue即可成为全局的
        'initialFrameHeight': 400,
        'serverUrl': '/ueditor/upload/'
    });
});
原文地址:https://www.cnblogs.com/tangpg/p/9295018.html