function btnSubmit() {
//获取文本框的文本值
var chinese_name = $("#chinese_name").val();
var html_name = $("#html_name").val();
var html_begin = $("#html_begin").val();
var type = $("#type").val();
var html_content = $("#html_content").val();
var html_end = $("#html_end").val();
var page_num = $("#page_num").val();
var row_num = $("#row_num").val();
var remark_num = $("#remark_num").val();
alert($.post);
$.post("AddReceipts.aspx", { tp: "axja", type: "Deail", chinese_name: chinese_name, html_name: html_name, html_begin: html_begin, type: type, html_content: html_content, html_end: html_end, page_num: page_num, row_num:row_num, remark_num: remark_num },
function (data) {
if (data == "Ok") {
parent.location.reload();
} else {
alert("no");
}
});
}
你post到本页面AddReceipts.aspx,要指定哪个方法吧?而且要在方法加上Method标记
浏览器开发人员工具调试,看请求和响应的信息
用IE试过没报错 就是跳不到后台
cookie
Chrome F12。。看状态码是啥?
目测服务器地址错了……