Js USES a for loop to query whether a value exists in the array
- 2020-03-30 03:40:24
- OfStack
Add this method to js and invoke it at the invocation point
window.onload = function(){
var arr=new Array(1,2,3,2,4,2,5,6,7,2,4,3,18,12,41,87);
alert(isCon(arr, 8));
}