1,HTML,CSS不區分大小寫,JS區分大小寫,這個要牢記:如下面代碼
<html>
<head>
<script type="text/javascript" >
function hello(){
alert("hello");
}
function Hello(){
alert("Hello");
}
</script>
</head>
<body>
<button οnclick="hello()"> 點擊</button>
</body>
</html>
這個彈出的是“hello”,而不是“Hello”,在你使用Ctrl+F搜索時要注意,這個真的很坑。