the company needs me to write a query page with static data to show people. My problem now is that there is no problem with a single conditional query. If my first input is correct, the second input error should not be queried. There are multiple conditions, how to achieve this
let msg = $.trim($(".searchText").val());
let qwe = $.trim($(".search_one").val());
let asd = $.trim($(".search_two").val());
let erType=$.trim($("-sharpyichang option:selected").val());
let searchTarget = [];
arr1.map(e=>{
if(e.batteryCode == msg | e.battreyV == qwe | e.circleLine == asd | e.batteryType == erType){
searchTarget.push(e)
}
})