alert($ === jQuery); //相等、恒等
alert($); //jQuery对象的内部
alert($()); //返回的jQuery对象
alert($('#box')); //返回的也是jQuery对象
alert($('#box').css('color', 'red')); //还是返回的jQuery对象
$('#box').css('color', 'red').css('font-size', '200px').css('font-weight', 'bold'); // JQuery连缀使用
$(document).ready(function () {});的简写为$(function(){});
alert($('#box').get(0)); //返回原生[object HTMLDivElement]
转载于:https://my.oschina.net/myzhanghua/blog/280223