代码如下
const arr = [{
factorName: "2222",
testCondition: "abc"
}, {
factorName: "11111",
testCondition: "eee"
}]
在页面渲染出来是 2222(abc) 11111(eee)
在页面上写了
var str = ''
var list = ''
list = arr.map((item,index) =>{
if (item.testCondition === "testCondition ") {
}
return item.factorName
})
大佬们这个要怎么加括号呢,请指教,请用es5语法
期望是在页面渲染出来是 2222(abc) 11111(eee)
拼接字符?
