摘要: $("#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 盘思动 阅读(415) 评论(1) 推荐(0) 编辑
摘要: $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 盘思动 阅读(3906) 评论(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 盘思动 阅读(163) 评论(0) 推荐(0) 编辑