jQuery学习笔记--jQuery的ajax方法调用实例
$.ajax({
url: 'saveEmergencyInfoFirstExe.action?users='+temp,
data: {
'reportType':$("input[name='reportType']:checked").val(),
'eventId':$("#eventName").val(),
'treeArSelected':checked_arIds.toString(),
'treeBusSelected':checked_busIds.toString(),
'emergency.occurtime':$("#occurTime").val(),
'emergency.address':$("#address").val(),
'emergency.content':$("#contents").val(),
'emergency.itRange':$("#itRange").val(),
'emergency.emergencyMeasure':$("#emergencyMeasure").val(),
'emergency.casualties':$("#casualties").val(),
'emergency.damage':$("#damage").val(),
'emergency.processId':$("#processId").val(),
'emergency.recovery':$("#recovery").val(),
'emergency.level':$("#level").val()
}, www.2cto.com
type:'POST',
dataType:'json',
success: function(json) {
alert('保存成功。');
window.returnValue = {result:'success'};
window.close();
},
error: function() {
window.close();
}
});
- 发表评论
-
- 最新评论 更多>>