2021/1/24

微信小程序版本检测

在app.js onlaunch中加入以下代码 if (wx.canIUse('getUpdateManager')) {       const updateManager = wx.getUpdateManager()   &n…

  • 微信小程序
  • 2021/1/24
  • helei
  • 1,372
  • 2021/1/7

    thinkphp随机排序

    ->orderRaw("rand()")

  • thinkphp
  • 2021/1/7
  • helei
  • 1,436
  • 2021/1/7

    uniapp富文本编辑器、支持音频视屏uParse

    插件地址https://ext.dcloud.net.cn/plugin?id=364

  • uni-app 未分类
  • 2021/1/7
  • helei
  • 1,599
  • 2021/1/7

    thinkphp一对多关联查询排序/随机排序

    一对多关联 关联定义 一对多关联的情况也比较常见,使用hasMany方法定义,参数包括: hasMany('关联模型名','外键名','主键名',['模型别名定义']); 例如一篇文章可以有多个评论 …

  • fastadmin thinkphp
  • 2021/1/7
  • helei
  • 1,994
  • 2020/12/30

    php日期加一天

    cho   date("Y-m-d",strtotime("+1 month",strtotime("2012-02-04"))); 结果为:2011-03-04 echo   date("Y-m-d",strtotime("+1 week",str…

  • php
  • 2020/12/30
  • helei
  • 1,443
  • 2020/12/28

    linux centos7 yum安装mysql 8.2

    从mysql官网下载yum源 https://dev.mysql.com/downloads/repo/yum/ 或者直接用wget下载 wget  https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm 安装yum文件 rpm -ivh mysql80…

  • mysql
  • 2020/12/28
  • helei
  • 1,272
  • 2020/12/24

    微信小程序/js 日期加减一天

     var dateday = this.data.dateselect;   dateday=dateday.setDate(dateday.getDate()+1);   dateday=new Date(dateday);

  • JavaScript 微信小程序
  • 2020/12/24
  • helei
  • 1,442