当前位置:网站首页>[object array A and object array B take out different elements of ID and assign them to the new array]
[object array A and object array B take out different elements of ID and assign them to the new array]
2022-07-05 09:28:00 【Guodong pudding】
An array of objects a And object array b Take out id Assign different elements to the new array
var result = [];
for(var i = 0; i < this.flowLoanForm.alreadyFlowLoanPiao.length; i++){
var obj = this.flowLoanForm.alreadyFlowLoanPiao[i];
var num = obj.id;
var isExist = false;
for(var j = 0; j < list.length; j++){
var aj = list[j];
var n = aj.id;
if(n == num){
isExist = true;
break;
}
}
if(!isExist){
result.push(obj);
}
}
// console.log(result);
this.oldList = result
边栏推荐
- OpenGL - Coordinate Systems
- [ctfhub] Title cookie:hello guest only admin can get flag. (cookie spoofing, authentication, forgery)
- 图神经网络+对比学习,下一步去哪?
- Multiple solutions to one problem, asp Net core application startup initialization n schemes [Part 1]
- C语言-从键盘输入数组二维数组a,将a中3×5矩阵中第3列的元素左移到第0列,第3列以后的每列元素行依次左移,原来左边的各列依次绕到右边
- Editor use of VI and VIM
- Rebuild my 3D world [open source] [serialization-2]
- fs. Path module
- SMT32H7系列DMA和DMAMUX的一点理解
- uni-app---uni.navigateTo跳转传参使用
猜你喜欢
Project practice | excel export function
Unity skframework framework (XXIII), minimap small map tool
Node collaboration and publishing
Nodejs modularization
nodejs_ 01_ fs. readFile
Unity skframework framework (XXII), runtime console runtime debugging tool
Priority queue (heap)
一篇文章带你走进cookie,session,Token的世界
[technical school] spatial accuracy of binocular stereo vision system: accurate quantitative analysis
Rebuild my 3D world [open source] [serialization-3] [comparison between colmap and openmvg]
随机推荐
Unity skframework framework (XXII), runtime console runtime debugging tool
使用el-upload封装得组件怎么清空已上传附件
一篇文章带你走进cookie,session,Token的世界
Alibaba's ten-year test brings you into the world of APP testing
一次 Keepalived 高可用的事故,让我重学了一遍它
2309. The best English letters with both upper and lower case
【愚公系列】2022年7月 Go教学课程 003-IDE的安装和基本使用
Introduction Guide to stereo vision (4): DLT direct linear transformation of camera calibration [recommended collection]
LeetCode 556. 下一个更大元素 III
Talking about the difference between unittest and pytest
2310. The number of bits is the sum of integers of K
微信小程序获取住户地区信息
Generate confrontation network
Newton iterative method (solving nonlinear equations)
Talking about label smoothing technology
L'information et l'entropie, tout ce que vous voulez savoir est ici.
Introduction Guide to stereo vision (7): stereo matching
Greendao reported an error in qigsaw, could not init daoconfig
OpenGL - Model Loading
Kotlin introductory notes (V) classes and objects, inheritance, constructors