代码编辑器:
x
1
<p id="demo">单击按钮显示0.5的反正弦值</p>
2
<button onclick="myFunction()">点我</button>
3
<script>
4
function myFunction(){
5
document.getElementById("demo").innerHTML=Math.asin(0.5);
6
}
7
</script>
8
<p id="demo">单击按钮显示0.5的反正弦值</p>
<button onclick="myFunction()">点我</button>
<script>
function myFunction(){
document.getElementById("demo").innerHTML=Math.asin(0.5);
}
</script>