jQuery 技术梳理
最近无论是微信的技术平台开发,还是百度的轻应用技术框架Clouda,都围绕一个核心JavaScript的技术,之前对JavaScript的理解比较浅,知道一些大概,现在到了深入熟悉的阶段了,首先深入了解并梳理一下
jQuery官方定义:
jQuery is a fast, small, and feature-richJavaScript library. It makes things likeHTML document traversal and manipulation, event handling, animation, andAjaxmuch simpler with an easy-to-use API that works across a multitude of browsers. With a combination of versatility and extensibility, jQuery has changed the way that millions of people write JavaScript.
特点:
Lightweight Footprint Only 32kB minified and gzipped. Can also be included as an AMD module
CSS3 Compliant Supports CSS3 selectors to find elements as well as in style property manipulation
Cross-Browser IE, Firefox, Safari, Opera, Chrome, and more
jQuery能够使用户的html页面保持代码和html内容分离,不用再在html里面插入一堆js来调用命令了,只需定义id即可。
jQuery基本入门:http://learn.jquery.com/about-jquery/how-jquery-works/
如何使用jQuery:
BTW: CDN的全称是Content Delivery Network,即内容分发网络。其基本思路是尽可能避开互联网上有可能影响数据传输速度和稳定性的瓶颈和环节,使内容传输的更快、更稳定。通过在网络各处放置节点服务器所构成的在现有的互联网基础之上的一层智能虚拟网络,CDN系统能够实时地根据网络流量和各节点的连接、负载状况以及到用户的距离和响应时间等综合信息将用户的请求重新导向离用户最近的服务节点上。其目的是使用户可就近取得所需内容,解决 Internet网络拥挤的状况,提高用户访问网站的响应速度。