<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.js">
</script>
<script>
//原生js的固定写法
window.onload=function (ev) {
alert("原生的")
}
//jQuery的固定写法
$(document).ready(function () {
alert("jquery的")
})
</script>
</head>
<body>
</body>
</html>
jquery和js的初识
最新推荐文章于 2023-04-16 17:08:12 发布