推荐一种学习jquery的方法

新手学习方法 会jQuery已经成为WEB前端编程甚至WEB编程工作里面的必备技能,那么对于想从事WEB编程工作的程序员,在面对jQuery众多的文档或知识时,有没有一种好的学习方…

推荐一种学习jquery的方法

新手学习方法

会jQuery已经成为WEB前端编程甚至WEB编程工作里面的必备技能,那么对于想从事WEB编程工作的程序员,在面对jQuery众多的文档或知识时,有没有一种好的学习方法呢?

会基本的HTML和CSS知识

不管你在什么地方看jQuery的例子,基本上都有CSS或HTML知识,所以需要了解一些关于HTML和CSS的知识,知道一个大概就可以了,不需要精通,当然如果你有时间的话,可以深入学习CSS的选择器,因为会了CSS的选择器,包括CSS3的部分选择器,非常有利于你理解jQuery的选择器。

因为HTML元素很多,CSS属性很多,所以不要心急,慢慢的分工的学习一下就可以了,比如今天学习h1到h6元素,明天学习css里面的和字体相关的属性,然后将学习的都记录下来,以后有时间反反复复的看多遍,就自然而然的记住了很多关于这两个方面的知识。

从选择器开始

推荐一种学习jquery的方法

选择器例子

选择器在jQuery里面是非常重要的,很多方法都是围绕着选择器使用的,所以在选择器这一块,你一定要花大量精力弄清每一个选择器是怎么样使用的。

jQuery里面的选择器包括了基本的选择器,比如和CSS一样的ID、CLASS选择器,还有更高级的:nth-child、:first-child和:last-child子节点相关选择器,同时jQuery自己还扩展了一些选择器,比如:header选择器,能够选择h1、h2、h3等等标题元素,:image元素能够选择所有的 input type=”image” 的表单元素。

总而言之,学完选择器之后,你会发现你差不多已经非常熟悉jQuery了。

攻克ajax请求

推荐一种学习jquery的方法

ajax请求例子

在现在的web应用里面,AJAX请求随处可见,比如QQ空间里面的下拉加载数据,其原理就是下拉刷新的时候,发送一个请求到服务器,获取后面的数据,然后将这些数据赋予HTML,然后通过CSS进行显示美化,最后得到我们看到的结果,当然AJAX请求现在非常流行,所以jQuery封装了很多种AJAX请求方法,让你不需要用原生的JavaScript就可以实现所有的ajax请求方法。

用动画来提高你的兴趣

推荐一种学习jquery的方法

动画例子

动画始终给人以美妙的享受,当你学会了上面的枯燥知识后,可以学习jQuery提供的动画方法,比如show、hide、slideUp等,用简单的几行代码就可以实现一些基本的动画。

高级篇-会自己写插件

推荐一种学习jquery的方法

插件

当你非常熟悉jQuery了之后,在项目实践中,很多功能需要你自己去封装成jQuery的插件,以实现代码的最大复用。

但是不建议一开始就去写jQuery插件,而是需要对jQuery相当熟悉的时候最为合适。

多动手才是王道

不管是看HTML、CSS还是学习jQuery,记住一个重要的地方,就是边看边敲代码,不需要太多书,中文只需要W3SCHOOL网站、英文只需要MDN就足够了。

上面是一个学习jQuery的步骤,在学习jQuery的时候,尽可能的参照上面的步骤去做为了鼓励我们创造更多的文章,请动动你的小手指,分享、赞或评论一下,谢谢。

本文为头条号作者发布,不代表今日头条立场。

HACKED BY SudoX — HACK A NICE DAY.

louis as season remains in jeopardyLloyd will help stretch the field, taking away all those pesky safeties to leave Gronk all alone in the middle against linebackers.. Ruffian (Reviewer x Shenanigans; b. The hallmark symptoms of ADD are short attention span, distractibility, disorganization, and poor internal supervision. If a flag is not used, you will usually see the colors of their country within the eagle tattoo. President elect Donald Trump has chosen retired Marine General James Mattis to head the Department of Defense, making the announcement during a post election victory rally in Cincinnati. “He said, ‘You Cheap Jerseys should meet with Eva because she’s great, I think she’s got a lot to offer that maybe people haven’t seen, which would be great,'” Derek explained to Moviefone. In 2012, 1. I was in a smaller one with 30ish men for most of my time on the ship,” Nick explains, omitting that an average bunk is maybe the cheap jerseys size of a coffin.. During the first few weeks of the season, a number of key starters on offense, defense, and special teams suffered season ending injuries. That summer, the Patriots signed Hernandez to a five year $40m contract extension, cheap football jerseys including a $12.5m signing bonus, a record for a tight end. The Silver Arrows’ dominance has enabled him to cheap ray bans challenge for the title for the last three years but he cheap football jerseys is yet to become a world champion.Perhaps this is the year that changes for Rosberg, who goes into this weekend’s showdown with a narrow 12 point lead of his British rival.Hamilton emerged on the Formula One circuit a year after his current team mate, making his debut for McLaren in Australia. Microglial cells show complicated morphologies and are therefore difficult to quantify. Day before, a father came looking for his son and found his body in the fridge. The economy of Maryland is quite diverse, leading the way in the advancement of life sciences with its more than 350 biotechnology firms scattered about the state. The soccer program provides a high level of training, facilities and coaches. The resulting punt, however, was dropped by Jaguars returner Ace Sanders on the 14 yard line with the Cowboys quick to cheap oakleys recover the loose ball. Not just body, but as we’re now learning, mind and emotions,” Costas said on CNN’s “Piers Morgan Tonight” on Monday.. In reality, most sailors never have a reason to go topside, or are otherwise too busy to do so. SummaryNeedless to cheap China Jerseys say, professional athletes have an excellent shot at living a very comfortable life even if they don’t have a sports career that lasts very long by typical standards.

为您推荐

发表评论

电子邮件地址不会被公开。 必填项已用*标注

返回顶部
本页面加载共:43 次查询 | 用时 0.735 秒 | 消耗 53.55MB 内存