摘要: 切换验证码 document.getElementById('img_code_1').src="__URL__/verify/"+Math.random(1,9999); 生成验证码 <img src="{:U('Home/User/verify',array())}" id="img_code_ 阅读全文
posted @ 2018-04-18 16:51 phpwyl 阅读(148) 评论(0) 推荐(0) 编辑
摘要: <?php namespace Home\Model; use Think\Model; class UserModel extends Model{ protected $patchValidate = true; protected $_validate = array( ['username','require','请输入用户名'], // 在新增的时候验证name... 阅读全文
posted @ 2018-04-18 15:45 phpwyl 阅读(1102) 评论(0) 推荐(0) 编辑