摘要:
Vue入门【uml类图】 {{msg}} 阅读全文
摘要:
query($count_sql)->fetch(PDO::FETCH_ASSOC); $count = $res['count(username)']; //每页显示的条数 $length = 20; //总页数 $num_page = ceil($count/$length); //偏移量 $limit = ($page-1)*$length; //查询 $sql = "select * f... 阅读全文
摘要:
<?php //获取随机英文字符串 function getNickname($length){ $strs="QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm"; $name=substr(str_shuffle($strs),mt_rand 阅读全文
摘要:
新增手机兼容,找到application下的common.php页面,新增如下方法 找到根目录下thinkphp/tpl/dispatch_jump.tpl文件,修改样式内容: 之后就可以尝试效果了: 阅读全文
摘要:
file_put_contents("test.txt", "This is another something.", FILE_APPEND); FILE_APPEND:在文件末尾以追加的方式写入数据 阅读全文
摘要:
\Illuminate\Session\Middleware\StartSession::class,\Illuminate\View\Middleware\ShareErrorsFromSession::class, 阅读全文
摘要:
user->list(); } //获取菜单 public function getMenu(){ $app = app('wechat.official_account.default'); return $app->menu->list(); } //创建临时二维码 public function creat... 阅读全文
摘要:
Validator::make($request->all(),[ 'uname'=>'required', 'sex' =>'required', 'score'=>'required' ])->validate(); 阅读全文