js
dom
1. script内写document.write
2.body中: <button type ="button" onclick = "alert('welcome')">click here </button>
3.改变值: <p id ="demo">javascript change the text</p>
<script>
function myFuncton () {
x= document.getElementById("demo");
x.innerHTML="HELLO JAVASCRIPT";
}
</script>
<button type ="button" onclick = "myFuncton()">click here </button>
4. NaN:not a number isNaN()判断输入的值不是一个数值