js通过getElementsByName获得控件值为一个数组,怎么判断数组中某个值不等于0function test() {var txts = document.getElementsByName("txt")for(i = 0i <txts.lengthi++) {if(txts[i].val2023-02-21JavaScript130