EasyShop/Cart.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MyModels;
using System.Data;
using conn;
using Common;
using ExeSql;
using System.Text;
using System.IO;
using Newtonsoft.Json;
namespace EasyShop
{
    public partial class Cart : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                LoadData();
            }
        }
        protected void LoadData()
        {
            //string cookie = conn.MyCookie.getCookie("cart");//{cart:[{"productcode":"PN140701213238000226","buycount":"1"},{"productcode":"PN140701213818000228","buycount":"2"}]}
            //cookie="[{'productcode':'PN140701213238000226','buycount':'1'},{'productcode':'PN140701213818000228','buycount':'2'}]";
            //JsonReader reader = new JsonTextReader(new StringReader(cookie));
            //string jsonText = @"{""input"" : ""value"", ""output"" : ""result""}";
            //JsonReader reader2 = new JsonTextReader(new StringReader(jsonText));
            //string jsonArrayText1 = "[{'a':'a1','b':'b1'},{'a':'a2','b':'b2'}]";
            //JArray ja = (JArray)JsonConvert.DeserializeObject(jsonArrayText1);
            //string ja1a = ja[1]["a"].ToString();
            //while (reader2.Read())
            //{
            //    Console.WriteLine(reader2.TokenType + "\t\t" + reader2.ValueType + "\t\t" + reader2.Value); 

            //}
            
        }
        
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。