Jquery.Ajax的使用方法(自己已经实践过可行)
2021-06-23 10:03
标签:delete ajax res cat min mod admin end erp 1.Get 2.Post 3.Get的优雅用法 4.post的另一种用法 5.load Jquery.Ajax的使用方法(自己已经实践过可行) 标签:delete ajax res cat min mod admin end erp 原文地址:http://www.cnblogs.com/qulianqing/p/7162661.html $(‘.manager_republish.notVIP‘).click(function () {
$.ajax({
async: false,
type: "get",
url: ‘@Url.Action("NeedVipPermisson", "MessageDialog", new { area = "Default", Title = "非VIP企业", Content = "此职位不属于VIP企业,不能重新发布" })‘,
success: function (data) { ShowMessageModelDialog(data)},
error: function (jqXHR, textStatus, errorThrown) {
alert("出错了" + textStatus + " " + errorThrown);
}
});
});
$.ajax({
async: false,
dataType: "JSON",
contentType: "Application/json",
type: "post",
url: "../../Control/Webservice/changeInfo.asmx/Insertdata",
data: "{‘user_Name‘:‘"+user_name+"‘,‘stu_id‘:‘" + stu_id.val() + "‘,‘stu_name‘:‘" + stu_name.val() + "‘,‘stu_major‘:‘" + stu_major.val()
+ "‘,‘stu_dept‘:‘"+stu_dept.val()+"‘}",
suceess: function(data) {
alert(data.d);
},
error: function() {
alert("chucuole");
}
});
$.getJSON(‘/Enterprise/Default/DeleteJob?id=‘ + key,
function (data) {
if (data.isSuccess) { $(‘.Jobkey‘ + key).remove(); }
else {
alert(data.msg);
}
});
function ReloadCities() {
var $ddlCity = $("#ddlCity");
var selec = $("#ddlProvince").val();
if (selec) {
$ddlCity.find("option").remove();
var url = "@(Url.Action("CityListByProvinceId", "Enterprise", new { area = "Admin" }))";
$.post(url, { ‘id‘: selec }, function (data) {
for (var i = 1; i data.length; i++) {
$($ddlCity).append($("
$(‘#tabs-2‘).load(‘Temp_login.html‘, function (responseText, textStatus) {
if (textStatus === "success") {
$(‘#tabs-2 .form-actions .primary‘).attr("id", "tea_login");
$("#tea_login").click(tea);
}
文章标题:Jquery.Ajax的使用方法(自己已经实践过可行)
文章链接:http://soscw.com/index.php/essay/97750.html