http://techorange.com/2014/03/27/best-resources-to-learn-code/[……]
字型設計欣賞、下載
字型設計
網頁前端技術網站
月熊志
http://dataveyes.com/#!/en
美式漫畫風格動態網頁
jQuery get all form values 取表單所有的值
// 方法1
var datastring = $("#form").serialize();
$.ajax({
type: "POST",
url: "test.php",
data: datastring,
success: function(data) {
alert('Data send');
}
});
//方法2
var form = $(this).closest('form');
var data = form.serializeArray();
data.push({name: "fun", value: 'img_edit'}); //增加自訂的值
data.push({name: "time", value: $.now()}); //增加自訂的值
data = $.param(data);
$.ajax({
type: "POST",
url: "test.php",
data: data,
success: function(data) {
alert('Data send');
}
});
test.php 測試
<?php
print_r($_POST);
exit;
?>
結果
Array (
[mail] => [email protected]
[password] => asdfasdf
[name] => test
[sex] => 1
)
https://api.jquery.com/serialize/
[……]