els.forEach(function(changepic){//代送数组,每个元素都执行一次
changepic.onmouseover = function(){
cha.src = xxx
}
})
var ifor(i=0i<10000i++){
console.log('CK'+'1804'+("0000" + i).substr(-4))
}
<!doctype html><html><head><meta charset="utf-8"><title>test</title><script type="text/javascript">function test(arr,i){if(i==0){return "yes" }else{if(arr[i]>arr[i-1]){return test(arr,i-1) }else{return "no" }}}window.onload=function(){var a=[1,2,3,4,5] var b=[2,1,4,3,5] document.write(test(a,4)+'<br />'+test(b,4)) } </script></head><body></body></html>