ie 迭代 form elements

bad:

for(keyinform.elements){

varelement=form.elements[key];

...

}

good:

for(vari=0;i<form.elements.length;i++){

varelement=form.elements[i];

...

}

相关推荐