摘要: Db::startTrans(); try { Db::commit(); $this->success(''); } catch (\think\Exception\DbException $e) { Db::rollback(); $this->error(''); } 阅读全文
posted @ 2024-02-21 11:25 一颗糊涂淡 阅读(4) 评论(0) 推荐(0) 编辑
摘要: <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script> <script> // VConsole 默认会挂载到 `window.VConsole` 上 var vConsole = new wind 阅读全文
posted @ 2023-12-02 00:39 一颗糊涂淡 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 引入js库 <script src="https://res.zvo.cn/translate/translate.js"></script> 在页面最底部加入js代码 //translate.ignore.tag.push('span'); //翻译时追加上自己想指定忽略的tag标签,凡是在这里面 阅读全文
posted @ 2023-09-01 11:42 一颗糊涂淡 阅读(533) 评论(0) 推荐(0) 编辑
摘要: { field: 'switch', title: __('Switch'), table: table, // formatter: Table.api.formatter.toggle formatter:function (value, row, index) { if (row.status 阅读全文
posted @ 2023-06-26 22:19 一颗糊涂淡 阅读(701) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-04-24 15:40 一颗糊涂淡 阅读(108) 评论(0) 推荐(0) 编辑
摘要: F:index/ 为本机F盘下的index文件夹 阅读全文
posted @ 2022-04-20 09:26 一颗糊涂淡 阅读(453) 评论(0) 推荐(0) 编辑
摘要: $newList = $this->cate1Model->with(["cate2"=>function($query){ $query->where('switch','1')->order('weigh asc'); }])->where('switch','1')->order('weigh 阅读全文
posted @ 2022-04-16 08:53 一颗糊涂淡 阅读(341) 评论(0) 推荐(0) 编辑
摘要: { field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: function (value, row, index) { var that = $.exten 阅读全文
posted @ 2021-12-30 15:12 一颗糊涂淡 阅读(1076) 评论(0) 推荐(0) 编辑
摘要: public function getDistance($lng1, $lat1, $lng2, $lat2) { $EARTH_RADIUS = 6378.137; $radLat1 = $this->rad($lat1); $radLat2 = $this->rad($lat2); $a = $ 阅读全文
posted @ 2021-12-28 16:37 一颗糊涂淡 阅读(160) 评论(0) 推荐(0) 编辑
摘要: table.on("pre-body.bs.table",function(){ var bt=table.data("bootstrap.table"); if (bt){ bt.$toolbar.find(".export").find(".icon-share").text("导出"); } 阅读全文
posted @ 2021-12-23 15:34 一颗糊涂淡 阅读(382) 评论(0) 推荐(0) 编辑