解决ueditor跨域上传文件失败的问题,
修改 ueditor.all.js第24507行的domUtils方法 https://gitee.com/cnbattle/codes/qlka2rozmutdf413n9c6j74 domUtils.on(input, 'change', function () { if (!input.value) return; var loadingId = 'loading_' + (+new Date()).toString(36); var params = utils.serializeParam(me.queryCommandValue('serverparam')) || ''; var imageActionUrl = me.getActionUrl(me.getOpt('imageActionName')); var allowFiles = me.getOpt('imageAllowFiles'); me.focus(); me.execCommand('inserthtml', '<img class="loadingclass" id="' + loadingId + '" src="' + me.options.themePath + me.options.theme + '/images/spacer.gif" title="' + (me.getLang('simpleupload.loading') || '') + '" >'); function callback(responseData) { try { if (responseData.state == 'SUCCESS' && responseData.url) { loader = me.document.getElementById(loadingId); loader.setAttribute('src', responseData.url); loader.setAttribute('_src', responseData.url); loader.setAttribute('title', responseData.title || ''); loader.setAttribute('alt', responseData.original || ''); loader.removeAttribute('id'); domUtils.removeClasses(loader, 'loadingclass'); } else { showErrorLoader && showErrorLoader(responseData.state); } } catch (er) { showErrorLoader && showErrorLoader(me.getLang('simpleupload.loadError')); } form.reset(); domUtils.un(iframe, 'load', callback); } function showErrorLoader(title)……