0
我有2個變量,我想添加到後期功能。我該怎麼做呢?如何將變量從jquery中的post函數傳遞給claim控制器?
$.post('/Home/AddContent/', function (response) {
alert("success");
}, 'json');
我有2個變量,我想添加到後期功能。我該怎麼做呢?如何將變量從jquery中的post函數傳遞給claim控制器?
$.post('/Home/AddContent/', function (response) {
alert("success");
}, 'json');
jQuery.post(
url,
[ data ],
[ success(data, textStatus, XMLHttpRequest) ],
[ dataType ]
)
這是jQuery的post的使用。採取 「數據」 選項
嘗試
$.post(
'/Home/AddContent/', //URL
'variable1=' + uriEncodeComponent(value1), //Data
function(jsonObject, t, j)){ //Success
alert('success');
},
'json' //Datatype
);