会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
盘思动
三思而后折腾!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
93
94
95
96
97
98
99
100
101
···
133
下一页
2019年8月20日
bootstrap 自带字体颜色
摘要: 无标题文档 这个是text-muted属性的强调色! 这个是text-primary属性的强调色! 这个是text-success属性的强调色! 这个是text-info属性的强调色! 这个是text-warning属性的强调色! 这个是te...
阅读全文
posted @ 2019-08-20 16:01 盘思动
阅读(6570)
评论(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 盘思动
阅读(3914)
评论(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 盘思动
阅读(177)
评论(0)
推荐(0)
2019年8月16日
抓取二维数组某值出来,到一维数组---array_column
摘要:
阅读全文
posted @ 2019-08-16 21:44 盘思动
阅读(245)
评论(0)
推荐(0)
2019年8月11日
array_map
摘要: <?php //对数组中的每个元素做函数处理 $arr = array(1,2,3,4,5,6); function cheng($hah){ return $hah*2; } var_dump(array_map('cheng',$arr));
阅读全文
posted @ 2019-08-11 13:01 盘思动
阅读(139)
评论(0)
推荐(0)
通过pathinfo返回扩展名
摘要: strtolower(pathinfo(abs.php,PATHINFO_EXTENSION)); 小写 通过pathinfo返回扩展名 pathinfo() 函数以数组的形式返回文件路径的信息。 pathinfo(path,options) path:规定要检查的路径。 options:可选。规定
阅读全文
posted @ 2019-08-11 10:32 盘思动
阅读(576)
评论(0)
推荐(0)
2019年8月10日
git切换到某个tag, 从tag切换回当前分支
摘要: git clone 整个仓库后使用,以下命令就可以取得该 tag 对应的代码了 git checkout tag_name 但是,这时候 git 可能会提示你当前处于一个“detached HEAD" 状态。(detached 分离的) 因为 tag 相当于是一个快照,是不能更改它的代码的。 直接使
阅读全文
posted @ 2019-08-10 14:19 盘思动
阅读(72000)
评论(0)
推荐(1)
2019年8月9日
根据 sitemap 的规则[0],当前页面 [pages/index/index] 将被索引
摘要: sitemap 的索引提示是默认开启的,如需要关闭 sitemap 的索引提示,可在小程序项目配置文件 project.config.json 的 setting 中配置字段 checkSiteMap 为 false开发工具更新后,代码有些地方需要做相应的调整"checkSiteMap": false,
阅读全文
posted @ 2019-08-09 17:02 盘思动
阅读(19188)
评论(1)
推荐(0)
2019年8月8日
小程序报错 thirdScriptError
摘要: thirdScriptError sdk uncaught third Error Unexpected token export SyntaxError: Unexpected token export开发工具 ---- 详情 ES6 转 ES5 , 需要选中,所有引入插件的都需要打钩!!!!
阅读全文
posted @ 2019-08-08 18:24 盘思动
阅读(4625)
评论(0)
推荐(0)
上一页
1
···
93
94
95
96
97
98
99
100
101
···
133
下一页
公告