先看newFrame.window.editor这个方法,存在吗?再看,newFrame.window.editor.html这个方法存在吗?这个错误提示,应该只能是你的方法,没有调用正确。

解决方案 »

  1.   

    newFrame.window.document.editor.html('newsContent');这样试试  。你要调用子页面的元素 ,你的获取到子页面的document对象才可以。
    调用方法获取window对象就可以了
      

  2.   

    editor.html();这个绝对是有的newFrame.window.document.editor.html('newsContent');
    也不行
    感觉就运行到newFrame.window.document.editor就不运行了。
      

  3.   

    editor 显然是一个在线编辑器
    newFrame.document.getElementById('editor').html('newsContent');
      

  4.   

     $(newFrame.window.document).find("#editor").html("ddddddd");editor 是id  。 要引jquery包。
      

  5.   

    $(newFrame.window.document.editor).html('newsContent');editor 应该是name ,觉得应该也没问题。不加$是element对象 ,没有jquery的 html()方法,所以报错。