<!DOCTYPE html>
<html>
<body>
<p id="demo">这是示例段落。</p>
<button type="button" onclick="myFunction()">装饰文本</button>
<script>
function myFunction() {
document.getElementById("demo").style.textDecoration = "underline overline";
}
</script>
</body>
</html>