-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
18 lines (18 loc) · 999 Bytes
/
index.html
File metadata and controls
18 lines (18 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<title>jQuery.serializeHashArray</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="./jquery.serializeHashArray.js"></script>
</head>
<body>
<h1>jQuery.serializeHashArray</h1>
<p>jQuery.fn.serializeArray() のラッパー関数 jQuery.fn.serializeHashArray()</p>
<p>機能としては、serializeArrayで取得される配列をjQuery.ajax() で利用できる形の連想配列に起こします。</p>
<pre>var harray = $(targetForm).serializeHashArray();<br/>harray[key]=value;<br/>...<br/>$.ajax(url,harray)<br/>...</pre>
<p>みたいな使い方を想定しています。</p>
<h2>動作基準</h2>
<p>もしも同じキーの値が複数個あった場合は、キーに対する配列として値を設定します。</p>
</body>
</html>