<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>04-jQuery入口函数的其它写法</title>
<script src="js/jquery-1.12.4.js"></script>
<script>
// 1.第一种写法
$(document).ready(function () {
// alert("hello lnj");
});
// 2.第二种写法
jQuery(document).ready(function () {
// alert("hello lnj");
});
// 3.第三种写法(推荐)
$(function () {
// alert("hello lnj");
});
// 4.第四种写法
jQuery(function () {
alert("hello lnj");
});
</script>
</head>
<body>
</body>
</html>
04-jQuery入口函数的其它写法
最新推荐文章于 2020-12-15 10:49:17 发布