Http://www.cnblogs.com/kissdodog/archive/2012/11/20/2779964.html
/** * Created by Administrator on 2015/4/4 0004. *//*$ (function () {$ (' input '). Click (function () {alert (' Jqcode ')}) *//*$ (function () {alert (1);}) $ (function () {alert (2)}) */$ (function () {Alert ($ (' #div1 '). Get (0));//Returns the object $ (' #div1 '). CSS (' Color ', ' red ');//Set some C Ssattr Alert (document.getElementById (' #div1 '). CSS (' Color ', ' Blue ')))//JQ and Dom Interchange}); /* Method 1:* when multiple JQ libraries appear in an HTML file (possibly third-party, may be built-in) The workaround is as follows (JQ library before other libraries, $ 's ownership is other library) var $$=jquery; $ (fuction () {alert (obj) alert ($$ (OBJ)}) */* If the JQ library is behind another library, the ownership of $ is the JQ library */* solution jquery.noconflict () move out of ownership of the $*/
"Http://www.w3.org/TR/html4/loose.dtd" >
JQ Basic Learning