<input   name="poolcode"   type="text"   id="poolcode"   maxlength="50" onblur="if(!/^[0-9a-z]*$/i.test(this.value)){alert('输入错误');this.value=''}"/>