上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页

2022年9月9日

uniapp 获取视窗高度

摘要: , onReady: function() { uni.getSystemInfo({ success: function(res) { pageHeight = res.windowHeight console.log('pageHeight',pageHeight) } }) setTimeou 阅读全文

posted @ 2022-09-09 10:49 小馬過河﹎ 阅读(28) 评论(0) 推荐(0)

css 分隔竖线

摘要: .fly-mid { display: inline-block; height: 10px; width: 1px; margin: 0 10px; vertical-align: middle; background-color: #e2e2e2; } 阅读全文

posted @ 2022-09-09 10:48 小馬過河﹎ 阅读(144) 评论(0) 推荐(0)

设置不打印区域

摘要: @media Print { .noprint { DISPLAY: none } } 阅读全文

posted @ 2022-09-09 10:47 小馬過河﹎ 阅读(29) 评论(0) 推荐(0)

thinkphp3 count `*` 的问题

摘要: // /ThinkPHP/Library/Think/Model.class.php // 统计查询的实现 // $field = isset($args[0]) ? $args[0] : '*'; // return $this->getField(strtoupper($method) . '( 阅读全文

posted @ 2022-09-09 10:41 小馬過河﹎ 阅读(144) 评论(0) 推荐(0)

nginx 正则 rewrite 301

摘要: if ($request_uri ~* "^/detail.asp\?id=(\d+)$") { set $id $1; rewrite .* https://$host/detail/$id? permanent; } # 一定有参数 rewrite ^/news/view.asp /news/i 阅读全文

posted @ 2022-09-09 10:40 小馬過河﹎ 阅读(49) 评论(0) 推荐(0)

layui 数据表格 单元格展开时的内容自动换行

摘要: .layui-table-tips-main { white-space: pre-wrap; } 阅读全文

posted @ 2022-09-09 10:37 小馬過河﹎ 阅读(282) 评论(0) 推荐(0)

js禁用右键/选中/键盘

摘要: 禁用右键、select document.body.onselectstart = document.body.oncontextmenu = function () { return false } 禁用键盘 $(document).off().on("keydown", function (e) 阅读全文

posted @ 2022-09-09 10:35 小馬過河﹎ 阅读(28) 评论(0) 推荐(0)

mysql 判断时间间隔

摘要: Examples timestampdiff(minute,smscode_addtime,now())<=3 阅读全文

posted @ 2022-09-09 10:32 小馬過河﹎ 阅读(26) 评论(0) 推荐(0)

MYSQL使用rand()函数生成一定范围的随机数

摘要: 生成≥a且≤b的随机数 x=a y=(b-a)+1 select floor(x+rand()*y); 例如生成≥2且≤10的随机数 select floor(2+rand()*9); 阅读全文

posted @ 2022-09-09 10:30 小馬過河﹎ 阅读(102) 评论(0) 推荐(0)

将$emit写在template代码中

摘要: <input type="search" @keyup.enter="$emit('search',$event.target.value)" /> 阅读全文

posted @ 2022-09-09 10:27 小馬過河﹎ 阅读(44) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 19 下一页

导航