LoginSignup
0
0

More than 3 years have passed since last update.

よく使うjqueryのメソッド

Last updated at Posted at 2020-09-15

よく使うメソッド

オブジェクトを取得

var.slice(); →集合からサブ集合を取得

オブジェクトに関する動作

$("#id").remove(); DOMからオブジェクトとその上のハンドラーやデータを徹底的に削除
$("#id").show();→表示された
var.val(); →Form要素から値を取得
var.appendTo(); →内容を要素の末尾に追加
var.delegate(); →マッチしたエレメントに任意のイベントを設定
var.data(); →データを指定する要素に保存

よく使う方式

・パラメータ
・配列
・key-value
・eventProgram(function(e,args){
});
・object.attribute.attribute..
・定義⇒コール

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0