Blogger Information
Blog 17
fans 0
comment 0
visits 11696
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
第13章 jquery的二种引入方式及$(document).ready()简写
薛光举的博客
Original
664 people have browsed it

1.jQuery是一个js函数库,可以极大的简化js代码编写

2.jQuery有二种引入方式

可以选择本地文件,也可以使用cdn在线版本,国内建议使用baidu静态资源库,访问速度快

3.$(document).ready()使用方式与简写

$(document).ready(function () {

$('#list > li').addClass('horiz')

})

简写:

$(function(){

$('#list > li').addClass('horiz')

})

4.jquery对象是将一个或组一组DOM对象进行打包,统一进行处理,默认自带循环迭代



Correction status:Uncorrected

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post