本文主要是介绍数组对象拼接及合燕数组对象(含单字段数组拼接成对象),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
/**两个一维数组合并成数组对象--控制器 */transformObjectControler(nameArr_new,CodeArr_new) {let controllerObj = [];nameArr_new.map( (childItem) => {let new_ele = {'controlName' : childItem}controllerObj.push(new_ele);});CodeArr_new.map( (childItem,index) => {controllerObj[index].controlCode = childItem;});return controllerObj;},that.controlerSelectParams = [];let controlNamesArr = [];let controlCodesArr = [];let objMemberPerson = [];let objProvinceNameArr = [];let objCityNameArr = [];let objAreaNameArr = [];if(item.groupName){that.operatingPropList.map( (childItem) => {if(item.groupName == childItem.groupName){if(childItem.controlCode){controlCodesArr.push(childItem.controlCode);controlNamesArr.pus
这篇关于数组对象拼接及合燕数组对象(含单字段数组拼接成对象)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!