好像没有什么问题建议楼主写代码留意一下,重复使用的可以定义一个函数来用,节省代码。还有重复判断的也是。比如:function $(id){return document.getElementById(id);}
比如:if (valueUser == "") {......