ajax提交參數
$(function () {
});
$("#submit").click(function () {
var money = $("#money").val()
alert(money)
});
$.ajax({
url: '/wallet',
type: 'POST',
dataType: 'json',
data: {
'money': money
},
success:function (res) {
},
error:function () {
}
});
重定向
location.href = '/shoplist/'+content