json.net

aspx

 

 var Tbody = $("#PartTable")[0];        
            var data = [];
            for (var i = 0; i < Tbody.rows.length; i++) {
                var TempRow = Tbody.rows[i];
                data.push({
                    "OMPKid": TempRow.id,
                    "Price": $(TempRow).find("div")[0].innerHTML,
                    "Remark": $(TempRow).find("div")[1].innerHTML == "&nbsp;" ? "" : $(TempRow).find("div")[1].innerHTML
                });
            }
            $("#JsonValue").val(JSON.stringify(data));

 

cs

   var r = JsonConvert.DeserializeObject<List<OutwardProcessingOrderBs>>(JsonValue.Value);

 

    public class OutwardProcessingOrderBs
    {
          public int OMPKid  { get; set; }
           public Nullable<double> Price { get; set; }
           public string Remark { get; set; }
       
    }

json.net,布布扣,bubuko.com

json.net

上一篇:node.js实用小模块


下一篇:jquery 扩展和插件的写法