Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

【jQueryの基礎(2)】

More than 1 year has passed since last update.

1.$.each()

第一引数に配列、第二引数に処理

$.each(fruits, function(i, fruit) {
      if (input === fruit) {
        $("#result").text(input);
        return false;
      } else {
        $("#result").text("一致する果物はありませんでした。");
      }
    });

2.正規表現 + 前方一致

var reg = new RegExp("^" + input);

3.join()

配列のすべての要素をつないだ文字列を作成

4.インクリメンタルサーチ

入力のたびに即座に候補を表示させる検索方法

5.filter()

引数に渡された関数の条件に合致した要素で配列を作成

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away