<script> window.document.designMode = "on"//off on:瀏覽器上的任何元素都可以進行編輯 </script> 建議不要使用全局屬js屬性進行編輯,還是用html5標籤自帶的contenteditable屬性比較好,只針對需要修改的內容進行編輯
<script> window.document.designMode = "on"//off on:瀏覽器上的任何元素都可以進行編輯 </script> 建議不要使用全局屬js屬性進行編輯,還是用html5標籤自帶的contenteditable屬性比較好,只針對需要修改的內容進行編輯