对, 程序属于“硬”编码,if (currentNum==0&&listLength!=1 ){
if (currentNum==1&&listLength!=2 ){
if (currentNum==2&&listLength!=3 ){
你可以照着往上加记住同时修改下面的部分
if (currentNum==3 ){
if (currentNum==1&&listLength==2 ){
if (currentNum==2&&listLength==3 ){
if (currentNum==1&&listLength!=2 ){
if (currentNum==2&&listLength!=3 ){
你可以照着往上加记住同时修改下面的部分
if (currentNum==3 ){
if (currentNum==1&&listLength==2 ){
if (currentNum==2&&listLength==3 ){
for(var i=0;i<6;i++){
if(currentNum==i&&listLength!=i+1){
moveElement('ifocus_piclist',0,-225*(i+1),5);
classNormal('ifocus_btn','ifocus_tx');
classCurrent('ifocus_btn','ifocus_tx',i+1);
}
if(currentNum==i&&listLength=i+1){
moveElement('ifocus_piclist',0,0,5);
classNormal('ifocus_btn','ifocus_tx');
classCurrent('ifocus_btn','ifocus_tx',0); }
}