会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
糖糖Y
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
下一页
2020年8月14日
PHP 获取当月的第一天和最后一天
摘要: // 第一天$start = date('Y-m-01', time()); echo $start; // 最后一天 $end = date('Y-m-d',strtotime("$start +1 months-1 day")); echo $end;
阅读全文
posted @ 2020-08-14 11:40 糖糖Y
阅读(207)
评论(0)
推荐(0)
2020年8月13日
微信小程序 弹窗组件
摘要: 效果图 文件夹列表 popup.wxml <view class="wx-popup" hidden="{{flag}}"> <view class='popup-container'> <view class="wx-popup-title">{{title}}</view> <view clas
阅读全文
posted @ 2020-08-13 10:58 糖糖Y
阅读(1324)
评论(0)
推荐(0)
微信小程序 图片等比例 适应屏幕尺寸
摘要: index.wxml <view class="container"> <view class="matter"> <image wx:for="{{info}}" src="{{item.pic}}" style="width: {{imagewidth}}px; height: {{imageh
阅读全文
posted @ 2020-08-13 10:41 糖糖Y
阅读(2000)
评论(0)
推荐(0)
微信小程序图片预览
摘要: wxml <image wx:for="{{info}}" src="{{item.pic}}" bindtap="preview" data-list="{{item.pic}}" data-src="{{item.pic}}"></image> js Page({ //图片预览 preview:
阅读全文
posted @ 2020-08-13 09:06 糖糖Y
阅读(238)
评论(0)
推荐(0)
div背景图占满
摘要: <div class="mobile"></div> 1 .mobile{ 2 width: 360px; 3 height: 710px; 4 background: url(/static/backend/image/bgiphone2.jpg); 5 background-repeat: no
阅读全文
posted @ 2020-08-13 08:52 糖糖Y
阅读(255)
评论(0)
推荐(0)
2020年8月11日
layui 弹窗一闪而过就消失的问题解决
摘要: 页面使用form表单,button放在form表单中,没有设置type类型,默认为submit提交,所有打开弹窗的时候就会出现一闪而过就消失的问题。 解决方法:给button添加 type='button'
阅读全文
posted @ 2020-08-11 15:52 糖糖Y
阅读(845)
评论(0)
推荐(0)
laravel 带条件的分页查询
摘要: 1 <?php 2 3 class IndexController extends Controller 4 { 5 public function index(Request $request){ 6 $course_id = $request->input("course_id"); 7 $li
阅读全文
posted @ 2020-08-11 15:48 糖糖Y
阅读(628)
评论(0)
推荐(0)
2020年8月7日
PHP 数组根据某个字段分组
摘要: 1 <?php 2 3 $arr = [ 4 [ 5 'id'=>1, 6 'name'=>'Tom' 7 ], 8 [ 9 'id'=>2, 10 'name'=>'Tom' 11 ], 12 [ 13 'id'=>3, 14 'name'=>'Tom' 15 ], 16 [ 17 'id'=>4
阅读全文
posted @ 2020-08-07 13:29 糖糖Y
阅读(2453)
评论(0)
推荐(0)
微信小程序 卡片动画 for循环
摘要: wxml页面: 1 <view class="container"> 2 <view wx:for="{{info}}" data-index="{{index}}" class="card" id="{{item.id}}" style="position: absolute; left:{{it
阅读全文
posted @ 2020-08-07 09:40 糖糖Y
阅读(1490)
评论(0)
推荐(0)
layui 省市区三级联动 ajax调接口
摘要: 效果图: HTML页面代码 1 <div class="layui-form-item"> 2 <label class="layui-form-label">收货地址</label> 3 <div class="layui-input-inline" style="width: 20%;"> 4
阅读全文
posted @ 2020-08-07 09:16 糖糖Y
阅读(656)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
下一页
公告