上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页

2022年9月9日

以逗号分隔的字符串是否交集

摘要: delimiter $$ use `tzjob`$$ drop function if exists `is_mixed`$$ create definer=`root`@`localhost` function `is_mixed`(str1 text,str2 text) returns tin 阅读全文

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

php函数返回当前季度

摘要: function current_quarter(){ return ceil((date('n'))/3); } 阅读全文

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

ThinkPHP模板select年份

摘要: <select name="s_deduct_year"> <option value="">年度</option> <for start="2019" end="date('Y')" comparison="elt"> <option value="{$i}" <if condition="$i= 阅读全文

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

php 强制跳转到https

摘要: if(!isset($_SERVER['HTTPS'])||$_SERVER['HTTPS']=='off'){ header("HTTP/1.1 301 Moved Permanently"); header('Location:https://'.$_SERVER['HTTP_HOST'].$_ 阅读全文

posted @ 2022-09-09 11:07 小馬過河﹎ 阅读(116) 评论(0) 推荐(0)

去掉layui table tr hover 效果

摘要: .layui-table tbody tr:hover { background-color: white; } 阅读全文

posted @ 2022-09-09 11:07 小馬過河﹎ 阅读(246) 评论(0) 推荐(0)

ThinkPHP3图片加文字水印

摘要: (new \Think\Image) ->open('./cert/static/base.jpg') ->text($name.$phone,'./cert/static/font.ttf',22,'#111111',[123,312]) ->text($date,'./cert/static/f 阅读全文

posted @ 2022-09-09 11:06 小馬過河﹎ 阅读(59) 评论(0) 推荐(0)

mysql查询增加表头

摘要: select '微信支付流水号' as juan_orderno ,'捐赠人' ,'手机号码' ,'捐赠金额' ,'捐赠时间' ,'捐赠项目' ,'捐赠人备注' ) union all ( select juan_orderno ,juan_name ,juan_phone ,juan_price 阅读全文

posted @ 2022-09-09 11:05 小馬過河﹎ 阅读(46) 评论(0) 推荐(0)

IIS强制HTTPS&ThinkPHP隐藏index.html

摘要: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <clear /> <rule name="ssl" stopProcessing="true"> <match u 阅读全文

posted @ 2022-09-09 11:04 小馬過河﹎ 阅读(19) 评论(0) 推荐(0)

IIS vue-history配置

摘要: <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="vue-history" patternSyntax="Wildcard"> <match 阅读全文

posted @ 2022-09-09 11:03 小馬過河﹎ 阅读(15) 评论(0) 推荐(0)

php 过滤数组的null值

摘要: function unset_null($arr){ foreach($arr as $k=>$v){ $arr[$k]=($v==null||is_null($v)||$v=='null')?'':$v; } return $arr; } 阅读全文

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

上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页

导航