1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

3/13インプット

Last updated at Posted at 2019-03-13

jQuery

.on()
・ click \ クリックされた時
・ dblclick \ ダブルクリックされた時
・ mouseover \ マウスが要素の上に乗った時
・ mouseout \ マウスが要素から離れた時
・keyup \ キーが離されたとき

RegExp()
正規表現オブジェクトを作成

.split("区切り")
区切りの部分でデータを配列化

.map()
配列を一つずつ取り出し引数に代入そしてreturnを再度配列化

.join("区切り")
引数の配列の隙間に区切りを追加し結合そしてreturn

.filter(function(e) { return e; })
各文字ブロック(?)を一つずつ取り出し存在するならtrue,しないならfalseをreturn

.append() / .remove()
引数で指定したhtmlタグを挿入可能

.prop
*prop()とattr()の違い
attr() => 'undefined'
→属性が付与されているかどうか
prop() => 'false'
現在の状態の確認

.val()
value

$(this)
イベントの発生元となった要素

:contains(" ")
引数で渡した文字を抽出することができる

$('A':first)
はじめに合致したセレクタの値を対象にできる

(window).scroll(function()
スクロールをイベントにできる
.scrollTop()は0でそこから移動した距離を算出可

.parent() / .siblings() / .next()
.preventDefault()
.find()
.hide() / .show()
.fadeout()/ .fadein()
.addClass() / .removeClass()

1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?