<!DOCTYPE html> <html> <body> <h1>Document 对象</h1> <h2>designMode 属性</h2> <p>如果此文档可编辑,则 designMode 属性返回:</p> <p id="demo"></p> <script> document.getElementById("demo").innerHTML = document.designMode; </script> </body> </html>