.Tang

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

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

// UEditor
$(function () {
    window.ue = UE.getEditor('editor', {    // ue即可成为全局的
        'initialFrameHeight': 400,
        'serverUrl': '/ueditor/upload/'
    });
});

 

posted on 2018-07-11 16:03  .Tang  阅读(12192)  评论(0编辑  收藏  举报