大家帮忙看看ajax的问题,小妹感激不尽。。。
我刚接触ajax 谢谢大家:
$.ajax({ type: 'post', cache: false, typeData: 'json', url: 'ImportantRecordAdd.aspx', data: [{ name: "RecordData", value: RecordData}], success: function (result) { if (result== "0") { alert("添加成功!"); window.returnValue = 1; window.close(); } else if (result=="1") { alert("添加失败!"); }else{ alert("主题不能重复!"); } }, error: function (e) { debugger; alert('发送系统错误,请与系统管理员联系!'); } });