var a = [{x:1}, {y:1}, {z:3}]; var b = a.concat(['gg', 'ff']); var c = []; c.push(a[1]); console.log(a[1] === b[1]); console.log('--------'); console.log( c[0]=== a[1] ); 可以看到,数组的concat方法并没有在内存中重新开辟区域存数组a的三个对象,仅仅是指向a里三个对象的指针,数组的大多数原生方法都是如此,操作地址指针.…
内连接查询 内连接与SqL中inner join一样,即找出两个序列的交集 Model1Container model = new Model1Container(); //内连接 var query = from s in model.Student join c in model.Course on s.CourseCno equals c.Cno select new { ClassID = s.CourseCno, ClassName = c.Cname, Student = new {…