正規表現オブジェクトを生成します。正規表現オブジェクトは、文字列のパターンマッチングを行う際に用いられます。次の例は、match() を用いて文字列 str が "DEF" という文字列を含んでいるかどうかを検査します。flags の詳細は フラグ を参照してください。
正規表現オブジェクトを生成します。正規表現オブジェクトは、文字列のパターンマッチングを行う際に用いられます。次の例は、match() を用いて文字列 str が "DEF" という文字列を含んでいるかどうかを検査します。flags の詳細は フラグ を参照してください。
Ajaxによるフォーム入力作業のサポート|Web Designing 5月号 フォーム入力に関するJavaScriptはいろいろありますが、Web Designing5月号「Ajaxハジメマシタ」に載っていたスクリプトもなかなか便利そうなので紹介してみます。 サンプルでは3つのライブラリが盛り込まれ、ユーザーに親切なフォーム入力が作れます。どんな機能があるかというと…、 1)空欄と入力データ形式をチェック(JSVallidareライブラリ) 2)郵便番号から住所を自動入力(AjaxZip2.0ライブラリ) 3)日付の入力時にカレンダーを表示(protocalenderライブラリ) …以上の3つです。 早速、サンプルはこちらです。 ↑このサンプルはこちらからダウンロードできます。 設定は難しくありません。本を買っていただくのが一番早いですが、簡単に説明すると… 1)JSVallidareライ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く