摘要:
Db::startTrans(); try { Db::commit(); $this->success(''); } catch (\think\Exception\DbException $e) { Db::rollback(); $this->error(''); } 阅读全文
摘要:
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script> <script> // VConsole 默认会挂载到 `window.VConsole` 上 var vConsole = new wind 阅读全文
摘要:
引入js库 <script src="https://res.zvo.cn/translate/translate.js"></script> 在页面最底部加入js代码 //translate.ignore.tag.push('span'); //翻译时追加上自己想指定忽略的tag标签,凡是在这里面 阅读全文
摘要:
{ field: 'switch', title: __('Switch'), table: table, // formatter: Table.api.formatter.toggle formatter:function (value, row, index) { if (row.status 阅读全文
摘要:
F:index/ 为本机F盘下的index文件夹 阅读全文
摘要:
$newList = $this->cate1Model->with(["cate2"=>function($query){ $query->where('switch','1')->order('weigh asc'); }])->where('switch','1')->order('weigh 阅读全文
摘要:
{ field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: function (value, row, index) { var that = $.exten 阅读全文
摘要:
public function getDistance($lng1, $lat1, $lng2, $lat2) { $EARTH_RADIUS = 6378.137; $radLat1 = $this->rad($lat1); $radLat2 = $this->rad($lat2); $a = $ 阅读全文
摘要:
table.on("pre-body.bs.table",function(){ var bt=table.data("bootstrap.table"); if (bt){ bt.$toolbar.find(".export").find(".icon-share").text("导出"); } 阅读全文