上一页 1 ··· 3 4 5 6 7
摘要: $grid->paginate(100000000)->applyFilter(); 阅读全文
posted @ 2021-07-01 17:24 _迷途 阅读(373) 评论(0) 推荐(0) 编辑
摘要: /** * @param $keywords string * @param $field string * @return array|string */ public function advance_where_or($field,$keywords) { $keywords = trim($ 阅读全文
posted @ 2021-06-22 16:55 _迷途 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 创建控制器: // Windows php artisan admin:make UserController --model=App\User app\Admin\routes.php <?php use App\Admin\Controllers\UserController; use Enco 阅读全文
posted @ 2021-06-10 11:41 _迷途 阅读(1029) 评论(0) 推荐(0) 编辑
摘要: String.prototype.trim = function (char, type) { if (char) { if (type == 'left') { return this.replace(new RegExp('^\\'+char+'+', 'g'), ''); } else if 阅读全文
posted @ 2021-06-07 12:01 _迷途 阅读(551) 评论(0) 推荐(0) 编辑
摘要: function is_ip(ip){ let re = /^([0-9]|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.([0-9]|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.([0-9]|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\ 阅读全文
posted @ 2021-06-07 11:54 _迷途 阅读(227) 评论(0) 推荐(0) 编辑
摘要: function clearDomScriptTag(s) { var reg=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi; //生成相关正则信息 s = s.replace(reg, "");//忽略大小写的正则 return s; 阅读全文
posted @ 2021-06-07 11:52 _迷途 阅读(695) 评论(0) 推荐(0) 编辑
摘要: layer.open({ type: 1, content: $("在当前页面上要打开的元素"), shadeClose: true , scrollbar: true, success: function (layero, index) { //弹出层打开后回调代码 }, cancel: func 阅读全文
posted @ 2021-05-04 16:55 _迷途 阅读(1037) 评论(0) 推荐(0) 编辑
摘要: 如何实现? 1.)首先实现全屏 第一种:继承主题特定主题 在Android API 19以上可以使用****.TranslucentDecor***有关的主题,自带相应半透明效果,Theme.Holo.NoActionBar.TranslucentDecor和Theme.Holo.Light.NoA 阅读全文
posted @ 2020-11-20 19:37 _迷途 阅读(1281) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7