实现原理:
源码:
test(imgLength) {
if (imgLength>10) {
let fourgeone = (imgLength % 10 == 0) || (imgLength % 10 == 4) || (imgLength % 10 == 8)
let fourshione = parseInt((imgLength / 10)) % 2 == 0
let fourgetwo=(imgLength % 10 == 2) || (imgLength % 10 == 6)
let fourshitwo = parseInt((imgLength / 10)) % 2
let bigshi = (fourgeone && fourshione)||(fourgetwo && fourshitwo)
console.log(bigshi)
}else{
let smallshi=(imgLength==4||imgLength==8)
console.log(smallshi)
}
},