jQuery框架 的四个入口函数
2024-08-27 14:13:21
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title> <script src="jquery-3.3.1.min.js"></script>
<script type="text/javascript">
//第一种写法
$(document).ready(function () {
//alert("hello 第一种写法");
}) //第二种写法
jQuery(document).ready(function () {
//alert("hello 第二种写法")
})
//第三种写法
$(function () {
alert("hello 第三种写法");
})
jQuery(function(){
alert("第四种写法")
})
</script>
</head>
<body> </body>
</html>
欢迎关注小编的公众号,更多学习视频、模板、工具(wind激活工具)!!!
最新文章
- 嵌入式:J-link刷固件(坑)
- VB.NET操作Excel
- C#,委托,匿名委托,Lambda表达式
- 自动化工作之自动更新SVN
- Mac Pro 修改主机名
- AppStore 相关
- Collectl基础
- MSSQLSERVER数据库- 字符串分割函数返回类型表
- Android Loader详解三:重启与回调
- Android Studio:You need to use a Theme.AppCompat theme (or descendant) with this activity. AlertDialog
- ceph伦理概念
- boostrap-非常好用但是容易让人忽略的地方------row
- VIP站长大会(北京站)常见问题解答
- chrome与pdf的事情
- Oracle存储过程 一个具体实例
- HUST 1583 长度单位
- html5+css基础
- Confluence 6 下载和安装 MySQL 驱动
- 一轮冲刺(NABCD)和需求分析
- Java设计模式六大原则之场景应用分析