what is jquery

What is jquery

  • It is a framework package that encapsulates javascript

  • Simplify the operation of javascript

  • javascript code: obtain page node object, ajax element node object implementation, event operation, event object

  • ##jquery Code: No need to consider browser compatibility issues, the code is small enough


##Purpose and Features

QQ截图20161024162028.png Features:

    Concise syntax, easy-to-understand semantics, fast learning, and rich documentation.
  • jQuery is a lightweight script with very small code
  • jQuery supports properties and selectors defined by CSS1~CSS3
  • jQuery is cross-browser, and the browsers it supports include IE 6.0+, FF 1.5+, Safari 2.0+ and Opera 9.0+.
  • Can completely separate JavaScript scripts from HTML source code, making it easier to edit and maintain later.
  • Plug-ins are abundant. In addition to some special effects provided by jQuery itself, more functions can be achieved through plug-ins


The era of emergence
jQuery is another excellent JavaScript framework after Prototype, created by John Resig in 2006 Created at the beginning of the year, the latest version is 1.11.2. The official address is: http://jquery.com/, and the Chinese address is http://jquery.org.cn/.


Continuing Learning
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php.cn</title> <script src="http://libs.baidu.com/jquery/1.10.2/jquery.min.js"> </script> <script> $(document).ready(function(){ $("#hide").click(function(){ $("p").hide(); }); $("#show").click(function(){ $("p").show(); }); }); </script> </head> <body> <p>欢迎大家来到php.cn</p> <button id="hide">隐藏</button> <button id="show">显示</button> </body> </html>
submitReset Code