<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>04-jQuery入口函数的其它写法</title>
<script src="JS_file/jquery-1.12.4.js"></script>
<script>
//第一种写法
$(document).ready(function () {
alert("hello world")
});
//第二种写法
jQuery(document).ready(function () {
alert("hello world");
});
//第三种写法
$(function () {
alert("hello world");
});
//第四种写法
jQuery(function () {
alert("hello world");
});
</script>
</head>
<body>
</body>
</html>
04-jQuery入口函数的其它写法
猜你喜欢
转载自blog.csdn.net/yangyalun/article/details/82950044
今日推荐
周排行