<input type=text>
<span id=Msg></span>if(没有通过验证)
{
  Msg.innerHTML="错误信息";
}