摘要: 根据文件的File ID 删除文件: wx.cloud.deleteFile( { fileList:[e.currentTarget.dataset.url], success(){ wx.showToast({title: '删除成功',}) }, fail(){ wx.showToast({t 阅读全文
posted @ 2021-03-17 17:15 _情书 阅读(1538) 评论(0) 推荐(0) 编辑
摘要: //初始化云端数据库 const db = wx.cloud.database() // 引用云端集合 const Users = db.collection('Users') //Users为云端集合的名称 查询所有数据: Users.get().then(res=>{ console.log(r 阅读全文
posted @ 2021-03-17 17:09 _情书 阅读(153) 评论(0) 推荐(0) 编辑
摘要: /** * 微信支付结果通知 */ @Component @RequestMapping("/地址1/") public class WechatPayNativeResultAction { protected transient Logger logger = Logger.getLogger( 阅读全文
posted @ 2021-03-15 16:03 _情书 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 右侧和底部阴影: box-shadow:2px 2px 5px #999999; 四周阴影: box-shadow: #0F9BE3 0px 0px 10px; div盒子悬浮于其他div之上: position: absolute; 将div固定在页面顶部并始终在页面最上层: position:f 阅读全文
posted @ 2021-03-09 17:21 _情书 阅读(863) 评论(0) 推荐(0) 编辑
摘要: 在字段上面加上注解 返回的数据就是格式化之后的数据 如下: @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date replydate; yml 配置文件配置 spring: jackson: time-zone: GMT+8 da 阅读全文
posted @ 2021-02-25 16:40 _情书 阅读(1288) 评论(0) 推荐(0) 编辑
摘要: 前端get请求: function() { var href = "/platform_wechat/MedicalHome/update.do?id=" + id; //地址以及传递的参数 $.get(href, function(res) { //res为接口返回数据 if (res.succe 阅读全文
posted @ 2020-10-27 10:08 _情书 阅读(2580) 评论(0) 推荐(0) 编辑
摘要: 1.新建 utils.wxs 文件 2.wxs页面代码如下 var filters = { /** * 参数1: 要截取的字符串 * 参数2: 开始截取的index * 参数3: 结束截取的index */ substring:function(val,start,end){ if (val.len 阅读全文
posted @ 2020-10-21 13:42 _情书 阅读(518) 评论(0) 推荐(0) 编辑
摘要: //对数组中的多个对象对某一个字段按照字母先后顺序排序 var array = [ {"id":"111","user":"D"}, {"id":"222","user":"B"}, {"id":"111","user":"A"}, {"id":"333","user":"C"} 阅读全文
posted @ 2020-09-29 11:28 _情书 阅读(1692) 评论(0) 推荐(0) 编辑
摘要: 一、消息中间件相关知识 1、概述 消息队列已经逐渐成为企业IT系统内部通信的核心手段。它具有低耦合、可靠投递、广播、流量控制、最终一致性等一系列功能,成为异步RPC的主要手段之一。当今市面上有很多主流的消息中间件,如老牌的ActiveMQ、RabbitMQ,炙手可热的Kafka,阿里巴巴自主开发Ro 阅读全文
posted @ 2020-09-04 11:22 _情书 阅读(135) 评论(0) 推荐(0) 编辑
摘要: var now = new Date(); var year = now.getFullYear(); //得到年份 var month = now.getMonth();//得到月份 var date = now.getDate();//得到日期 month = month + 1; if (mo 阅读全文
posted @ 2020-09-01 15:37 _情书 阅读(7874) 评论(0) 推荐(0) 编辑