谁能说一下js中flag做标识变量的用法么从数组中搜寻元素1var arr = [1,2,3,4]var flag = falsefor(var i=0i<arr.lengthi++){ if(arr[i]==1){flag = truebreak }}if2023-02-18JavaScript470