我需要你的帮助。在阵列中查找匹配的字符串并重新写入阵列
我希望能够在数组中找到一个字符串,并基于是否已经找到该值,以便能够相应地获取数组。
var temp = ["BNI to John", "BNI to Smith", "BNI to Jane", "BNA to Craig", "BNA to David", "BNA to Michelle", "Media Call", "Report Paper", "Issue Paper"]
现在一些加工....
If ("BNI to" matches what is in the array temp then) {
Find the instance of "BNI to" and re-label to single name: Briefing Notes (Info)
}
If ("BNA to" matches what is in the array temp then) {
Find the instance of "BNA to" and re-label to single name: Briefing Notes (Approval)
}
重新写入和输出相同的温度阵列现在读作:
var temp = ["Briefing Notes (Info)", "Briefing Notes (Approval)", "Media Call", "Report Paper", "Issue Paper"]
而问题/问题是什么? – Andreas
完全匹配或丢失一个? – MaxZoom
问题是这对我来说似乎是微积分。我不知道如何编码。 – BobbyJones