1.最基础的ModelCopy using System; using System.Collections.Generic; using System.ComponentModel; public static class ModelCopier { public static void CopyCollection<T>(IEnumerable<T> from, ICollection<T> to) { if (from == null || to == null…
var str1 ='[{"name":"kevin","age":18},{"name":"rose","age":16}]'; String.prototype.transArray=function(){ var str =this.replace(/\[/,''); var newstr = str.replace(/\]/,''); var arr1 = n…