Jquery

  • 核心
    1. Jquery 核心函数
    2. 查找:
      1. $("div>p")
      2.   $("input:radio",document.forms[0]), 在问的那个的第一个表单查找 type=radio 的表单元素
      3.   $("div",xml.ResponseXML), 在返回的Xml 文档中查找 所有的Div 元素
    3. 创建html:
      1.  $("<div>Helloe </div>").append("body")
      2.  $("<input>").attr("type","checkebox");
    4. 创建html 并且赋属性,事件
      1.  $("<div>",{" class":"test", text:"Click Me",click:function(){ $(this).toggleclass("test")}}).appendTo("body")
    5. $(document.body).css("backgroundclor","red")
    6. 可见性:$().hide()
    7. $(document).ready(function(){})
    8. jQuery 对象访问
    9. $("img").each(function(i){ this.src="test"+i+".jpg"})
    10. $("img").size(),
    11. i
    12.  
  • 选择器
  • 属性
  • 筛选
  • 文档处理
  • Css
  • 事件
  • 效果
  • Ajax
posted on 2018-10-28 20:55  Tivoli  阅读(101)  评论(0编辑  收藏  举报