jQuery 相關
秉持著由於時常會用到!!
避免....哪天又不小心忘記了
所以再來補吧!!
$.ajax({
url: '@Url.Action("Action")',
data: JSON.stringify({ Param: "Param" }),
type: "POST",
cache: false,
async: false,
dataType: "json",
contentType: "application/json;charset=utf-8"
}).success(function (result) {
if (result.ReturnMsgNo == 1) {
}
});
OR
$.ajax({
url: '@Url.Action("Action")',
data: JSON.stringify({ Param: "Param" }),
type: "POST",
cache: false,
async: false,
dataType: "html",
contentType: "application/json;charset=utf-8"
}).success(function (result) {
$("[id$=element]").html(result);
});
We all change, when you think about it, we're all different people; all through our lives, and that's okay, that's good, you've gotta keep moving, so long as you remember all the people that you used to be. I will not forget one line of this, not one day, I swear.