标签:
1、jQuery([sel,[context]]):相当于$(‘‘),可以添加一个范围。
2、jQuery(html,[ownerDoc]):创建一个 <input> 元素必须同时设定 type 属性。这方法好像用不上,一般会用.html()
$("<div>", { "class": "test", text: "Click me!", click: function(){ $(this).toggleClass("test"); } }).appendTo("body");
3、$(function(){ /.../ }) 是 $(document).ready()的简写,
标签:
原文地址:http://www.cnblogs.com/wang-jing/p/4780342.html