function GetCity(n){$("#City").empty();$("---请选择工作地点---<\/option>").appendTo($("#City"));$.ajax({url:"/api/Districts/request",type:"POST",contentType:"application/json",data:JSON.stringify({Id:n}),dataType:"json",success:function(n){n.code==200&&n.data.length>0&&$.each(n.data,function(n,t){city==t.Id?$("<\/option>").val(t.Id).text(t.Name).prop("selected",!0).appendTo($("#City")):$("<\/option>").val(t.Id).text(t.Name).appendTo($("#City"))})}})}$(document).ready(function(){$.ajax({url:"/api/Districts",type:"POST",dataType:"JSON",success:function(n){n.code==200&&n.data.length>0&&$.each(n.data,function(n,t){province==t.Id?$("<\/option>").val(t.Id).text(t.Name).prop("selected",!0).appendTo($("#Province")):$("<\/option>").val(t.Id).text(t.Name).appendTo($("#Province"))})}});$("#Province").on("change",function(){var n=$(this).val();GetCity(n)});province!=""&&GetCity(province);keyword!=""&&$("#Keyword").val(keyword)});$(document).ready(function(){$.ajax({url:"/api/JobType",type:"POST",contentType:"application/json",dataType:"json",data:JSON.stringify({recruimentType:"campus"}),success:function(n){n.code==200&&n.data.length>0&&$.each(n.data,function(n,t){category==t.Id?$("<\/option>").val(t.Id).text(t.Title).prop("selected",!0).appendTo($("#Category")):$("<\/option>").val(t.Id).text(t.Title).appendTo($("#Category"))})}})})