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

2022年9月9日

设置不打印区域

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

posted @ 2022-09-09 10:47 小馬過河﹎ 阅读(28) 评论(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 小馬過河﹎ 阅读(141) 评论(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 小馬過河﹎ 阅读(45) 评论(0) 推荐(0)

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

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

posted @ 2022-09-09 10:37 小馬過河﹎ 阅读(277) 评论(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 小馬過河﹎ 阅读(24) 评论(0) 推荐(0)

mysql 判断时间间隔

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

posted @ 2022-09-09 10:32 小馬過河﹎ 阅读(21) 评论(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 小馬過河﹎ 阅读(99) 评论(0) 推荐(0)

将$emit写在template代码中

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

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

vue computed v-model 结合使用

摘要: data() { return { vcodeBtnName: "获取验证码", countNum: 120, countDownTimer: null, ent: {} } }, computed: { mobile: { get() { console.log('我被调用了') return t 阅读全文

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

H5新标签datalist实现可以输入的select

摘要: HTML <input name="s_key" list="s_key_list"/> <datalist id="s_key_list"> <option value="Internet Explorer"> <option value="Firefox"> <option value="Chr 阅读全文

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

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

导航