<html>
<body>
<h1>Element 对象</h1>
<h2>contentEditable 属性</h2>
<p id="myP" contenteditable="true">我可以编辑吗?</p>
<p id="demo"></p>
<script>
let answer = document.getElementById("myP").contentEditable;
document.getElementById("demo").innerHTML = answer;
</script>
</body>
</html>