wangEditor编辑器控件里textarea的id不要用content
头引用 <script type = "text/javascript" src = "js/jquery-1.10.2.min.js" ></script> <script type = "text/javascript" src = "js/wangEditor.js" ></script> <script type = "text/javascript" src = "js/base.js" ></script> <script src = "https://cdn.bootcss.com/layer/1.8.5/layer.min.js" ></script> <link href = "https://cdn.bootcss.com/layer/1.8.5/skin/layer.css" rel = "stylesheet" > 出错症状 正确 <textarea id = "textarea" name = "content" style = " height : 300px ; max - height : 1000px ; " > 错误 <textarea id = "content" name = "content" style = " height : 300px ; max - height : 1000px ; " > 我也不懂为什么 来源:博客园 作者: