04 2012 档案

摘要:MatchCollection mc = Regex.Matches("id=5||name=text||item=0||selected=true", @"\w+=(?<value>[^\||]*)"); foreach (Match m in mc) { GroupCollection gc = m.Groups; switch (i) { ... 阅读全文
posted @ 2012-04-19 14:24 小川丶 阅读(261) 评论(0) 推荐(0)
摘要:分割js 数组:function test() {}test.prototype = { parseValuesFromArray: function (array) { if (array && array.length && array.length > 0) { for (var x = 0, xlen = array.length; x < xlen; x++) { var value = array[x].split('='); if (value.length > 1) { if (value.length > 阅读全文
posted @ 2012-04-13 16:08 小川丶 阅读(3061) 评论(0) 推荐(0)