- 博客(2)
- 收藏
- 关注
原创 javaweb alert提示框
<boby> <div class="alert"></div></body><style type="text/css"> #getVerifyCode{cursor: pointer; outline: none;} .alert { display: none; position: fixed; top: 50%; left: 50%; min-width: 200px;
2021-08-11 14:01:32 1495
原创 ThinkPHP6.0数据库操作
查询数据查询单个数据查询单个数据使用find方法:// table方法必须指定完整的数据表名Db::table('think_user')->where('id', 1)->find();find方法查询结果不存在,返回 null,否则返回结果数组;如果希望在没有找到数据后抛出异常可以使用Db::table('think_user')->where('id', 1)->findOrFail();如果没有查找到数据,则会抛出一个think\db\exception\
2021-08-10 17:46:28 1090
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人