上一页 1 ··· 9 10 11 12 13 14 下一页
摘要: 格式化时间 Date.prototype.formatDate = function (fmt) { var o = { "M+": this.getMonth() + 1, "d+": this.getDate(), "h+": this.getHours(), "m+": this.getMin 阅读全文
posted @ 2020-05-28 09:54 小泽沐优声 阅读(124) 评论(0) 推荐(0)
摘要: uni-app分享 uniapp官网地址:https://uniapp.dcloud.io/api/plugins/share?id=sharewithsystem 调用系统分享组件发送分享消息,不需要配置分享SDK 当中出现了图片,图片的优先级会大于文字。 uni.shareWithSystem( 阅读全文
posted @ 2020-05-27 14:39 小泽沐优声 阅读(7120) 评论(0) 推荐(0)
摘要: 换行 原地址:https://www.cnblogs.com/meowcool/p/10130103.html //强制不换行 div{ white-space:nowrap; } //自动换行 div{ word-wrap: break-word; word-break: normal; } // 阅读全文
posted @ 2020-05-26 15:53 小泽沐优声 阅读(286) 评论(0) 推荐(0)
摘要: 原素材地址:http://www.htmlsucai.com/demo-9782.html <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width 阅读全文
posted @ 2020-05-26 14:29 小泽沐优声 阅读(146) 评论(0) 推荐(0)
摘要: pointer-events: none; 大致意思是让鼠标失去事件, 就比如我的‘血小板’看板上的那个提示, 可以按F12来查看。 阅读全文
posted @ 2020-05-26 09:35 小泽沐优声 阅读(702) 评论(0) 推荐(0)
摘要: function minuteFormat(min){ if(!min){ return '-'; } var result=''; if(min%(60*24*30*12)!=min){ result=parseInt(min/(60*24*30*12))+"年"; min=min-(parseI 阅读全文
posted @ 2020-05-25 15:06 小泽沐优声 阅读(436) 评论(0) 推荐(0)
摘要: HTML 我是把canvas嵌套在view里并被view设置id <view id="canvas"> <canvas style="width: 350px; height: 530px;" canvas-id="firstCanvas"></canvas> </view> CSS 把它给顶出去 阅读全文
posted @ 2020-05-25 14:21 小泽沐优声 阅读(1522) 评论(0) 推荐(0)
摘要: 先在HTML中创建 img和canvas并设置id属性 <canvas id="canvas" width="500" height="500" style="border: 1px solid red;"></canvas> <img src="./dialog.png" id="img" /> 阅读全文
posted @ 2020-05-25 11:36 小泽沐优声 阅读(480) 评论(0) 推荐(0)
摘要: 网络图片缓存 在uni中wx可以用uni代替 无区别; 先把要插入的网络图片缓存(getImageInfo); let context = uni.createCanvasContext('firstCanvas'); //canvas-id='firstCanvas' uni.getImageIn 阅读全文
posted @ 2020-05-25 11:01 小泽沐优声 阅读(4689) 评论(4) 推荐(1)
摘要: 触发代码 如: <button open-type="share">分享</button> 在JS中 分享进入页面传参,和微信小程序路由传参的思路是一样的。 如果return里的path为空,分享的则是当前页面。 onShareAppMessage可不是写在生命周期里的,是和生命周期同一级的。 如: 阅读全文
posted @ 2020-05-22 09:45 小泽沐优声 阅读(6147) 评论(7) 推荐(1)
上一页 1 ··· 9 10 11 12 13 14 下一页