web 常用jquery

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章