会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
盘思动
三思而后折腾!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
93
94
95
96
97
98
99
100
101
···
133
下一页
2019年9月4日
正则匹配中文
摘要: $str = '中'; if (preg_match('/^[\x{4e00}-\x{9fa5}]+$/u',$str)){ echo '中文'; } else { echo 'no'; }
阅读全文
posted @ 2019-09-04 11:25 盘思动
阅读(400)
评论(0)
推荐(0)
2019年9月3日
小程序生成带有多参数的太阳码
摘要: <pre>array(3) { ["errno"] => string(1) "0" ["errmsg"] => string(2) "ok" ["save_name"] => st
阅读全文
posted @ 2019-09-03 16:53 盘思动
阅读(2974)
评论(0)
推荐(0)
2019年8月27日
php 3.2 生成压缩文件,并下载
摘要: public function zip_download() { $array = array( 'http://local.qki.com/site_upload/erweima/20190826/1566809174292_100063_865373044010119.png', 'http://local.q...
阅读全文
posted @ 2019-08-27 18:18 盘思动
阅读(444)
评论(0)
推荐(0)
2019年8月21日
layer confirm 三种选择按钮
摘要: layer.confirm('请选择是否通过提现?(tips:同意直接打款,驳回不可恢复)', { btn : ['通过-打款','不通过','通过-已打款'], btn1:function(){ ...
阅读全文
posted @ 2019-08-21 15:21 盘思动
阅读(19547)
评论(0)
推荐(1)
无限级分类,抓取某元素的所有下级id
摘要: <pre> array(8) { [0] => string(1) 2 [1] => string(2) 19 [2] => string(2) 18 [3] => string(2) 17 [4] => string(2) 16 [5] => string(2) 14 [6] => string(
阅读全文
posted @ 2019-08-21 11:54 盘思动
阅读(639)
评论(0)
推荐(0)
2019年8月20日
bootstrap 自带字体颜色
摘要: 无标题文档 这个是text-muted属性的强调色! 这个是text-primary属性的强调色! 这个是text-success属性的强调色! 这个是text-info属性的强调色! 这个是text-warning属性的强调色! 这个是te...
阅读全文
posted @ 2019-08-20 16:01 盘思动
阅读(6573)
评论(0)
推荐(1)
2019年8月17日
ajaxSubmit 页面生成的html 中含有表单提交表单方式
摘要: $("#form_title").ajaxSubmit({ //页面生成的html 中含有表单提交表单方式 dataType: "json", success : function(obj){ lock_flag = false; if(obj.errno == 0){ lock_flag = fa
阅读全文
posted @ 2019-08-17 13:34 盘思动
阅读(426)
评论(1)
推荐(0)
php 保留2位小数
摘要: $num = 10.4567; //第一种:利用round()对浮点数进行四舍五入 echo round($num,2); //10.46 //第二种:利用sprintf格式化字符串 $format_num = sprintf("%.2f",$num); echo $format_num; //10.46 /...
阅读全文
posted @ 2019-08-17 00:30 盘思动
阅读(3915)
评论(0)
推荐(0)
日期范围
摘要: switch ($date_type){ case 'yesterday': $res_data = [ 'start_time' => strtotime(date('Y-m-d',time())) - 24 * 3600, 'end_time' => strtotime(date('Y-m-d',time())) ]; break; case 'today': $res_data = [ 's
阅读全文
posted @ 2019-08-17 00:29 盘思动
阅读(180)
评论(0)
推荐(0)
2019年8月16日
抓取二维数组某值出来,到一维数组---array_column
摘要:
阅读全文
posted @ 2019-08-16 21:44 盘思动
阅读(246)
评论(0)
推荐(0)
上一页
1
···
93
94
95
96
97
98
99
100
101
···
133
下一页
公告