<!DOCTYPE html>
<html>
<body>
<p id="demo">请在点击下面的按钮之前和之后将鼠标悬停在该文本上!</p>
<button type="button" onclick="myFunction()">改变光标</button>
<script>
function myFunction() {
document.getElementById("demo").style.cursor = "pointer";
}
</script>
</body>
</html>