标签:
HttpCookie cookie = new HttpCookie("pageInfo");
cookie["page_index"] = page_index.ToString();
cookie["page_count"] = page_count.ToString();
- Response.AppendCookie(cookie);
$("#ui_input_btn02").click(function () {
var page_data = getCookie("pageInfo").toString();
page_index = String(page_data).substr(11, 1);
var new_page = Number(page_index) - 1;
$.post("/Order/Page", { data: new_page }, function (data) {
var page_data = getCookie("pageInfo").toString();
page_index = String(page_data).substr(11, 1);
$("#page_now").text(page_index);
$("#test").html(data);
ASP.NET-后台cookie与前台JQUERY解析cookie
标签:
原文地址:http://www.cnblogs.com/weloveshare/p/5314041.html