超使いやすいJQuery(極速まとめ、最もよく使われる知識点集合)
4674 ワード
一、常用方法
二、イベントバインド及び解縛
バインド、2種類あります
三、JQueryの中のAjax
$("#box").addClass()//
.removeClass()
.toggleClass()//
.html()
.css()
.text()
.each((index,item)=>{})//
.attr()//
.prop()// attr , true false prop
.removeAttr( )//
二、イベントバインド及び解縛
バインド、2種類あります
$("#box").mouserover(function)
$("#box").on({"click" : function})
三、JQueryの中のAjax
$ajax({
type: "GET"
url : ""
data:{}
success:function(result){}
})
//
$get("url",data,function(result){})