ie 迭代 form elements
bad:
for(keyinform.elements){
varelement=form.elements[key];
...
}
good:
for(vari=0;i<form.elements.length;i++){
varelement=form.elements[i];
...
}
bad:
for(keyinform.elements){
varelement=form.elements[key];
...
}
good:
for(vari=0;i<form.elements.length;i++){
varelement=form.elements[i];
...
}