日期:2014-05-16 浏览次数:20436 次
<script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction(2,'http://img.shangshangw.com/upload/commodity/20120406/201204061740421341.jpg', '');</script>并没有执行。
<pre><script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction(2,'http://img.shangshangw.com/upload/commodity/20120406/201204061740421341.jpg', '');</script></pre>
HttpServletResponse response = ServletActionContext.getResponse(); // 设置headers参数 String fullContentType = "text/html;charset=UTF-8"; response.setContentType(fullContentType); out = response.getWriter(); out.write("<script type='text/javascript'>window.parent.CKEDITOR.tools.callFunction(" + this.CKEditorFuncNum + ",'" + getUploadRootPath() + path + "/" + this.newImageFileNames[0] + "');</script>");