标签:数据结构 split arp fir update contains date method trim
一、截取
method: ykcloud.wm.reverse.ship.pick.update.and.finish code: -23009 message: 商品:107274短拣,需求数量:2.0,录入数量:0.0 var ss = error.Split(‘\r‘, ‘\n‘).ToList().First(ee => ee.Contains("code")); var sss = ss.Split(‘:‘); var ssss = sss[1]; MessageHelper.InfoMsg(error);
或者简写 var ss = error.Split(‘\r‘, ‘\n‘).ToList().First(ee => ee.Contains("code")).Split(‘:‘)[1].Trim();
标签:数据结构 split arp fir update contains date method trim
原文地址:https://www.cnblogs.com/fger/p/10417448.html