jQuery 入口函数主要有4种写法
生活随笔
收集整理的這篇文章主要介紹了
jQuery 入口函数主要有4种写法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
jqery ?入口函數主要有4種寫法,其中以第3種方法最為方便。
<!DOCTYPE html> <html lang="en"> <head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta http-equiv="X-UA-Compatible" content="ie=edge"><title>Document</title><script src='js/jquery-1.12.4.js'></script><script>//1. $(document).ready(function(){alert('1111');})//2. jQuery().ready(function(){alert('222');})//3. $(function(){alert('gogo');})jQuery(function(){alert('hoho');})</script> </head> <body></body> </html>?
更多專業前端知識,請上 【猿2048】www.mk2048.com
總結
以上是生活随笔為你收集整理的jQuery 入口函数主要有4种写法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: http协议组成(请求状态码)
- 下一篇: Jsの练习-数组常用方法