var p = JSON.stringify(parameter);
console.log(p);
$.ajax({
type: 'POST',
url: 'http://abc.com/ajax.php',
data: p,
success: function(status) {
console.log(status);
}
});
console.log(p) 显示{"o_fname":"hh","o_lname":"jkhk","o_email":"uifh@bjvh.com","o_phone":"","b_name":"bmnbmbm,b","b_address":"","b_city":"","b_postal":"","b_phone":""}
,但在我的http://abc.com/ajax.php
页面print_r($_POST)
中给了我一个空数组Array()