直接上代码:
console.log("temp:"+document.getElementById("eWebEditor1").contentWindow.getHTML());
console.log("temp:"+document.getElementById("eWebEditor1").contentWindow.getText());
输出效果:
在网上找了一些方法,但许多方法在控制台上都报错了。最后找到了这个,终于解决了
直接上代码:
console.log("temp:"+document.getElementById("eWebEditor1").contentWindow.getHTML());
console.log("temp:"+document.getElementById("eWebEditor1").contentWindow.getText());
输出效果:
在网上找了一些方法,但许多方法在控制台上都报错了。最后找到了这个,终于解决了