上一页 1 2 3 4 5 6 ··· 22 下一页
摘要: 无论是对待工作还是生活我们都需要有一个度。过度的追求可能会导致我们的身心疲惫甚至可能会带来无法挽回的后果。所以,我们应该学会适度,既要有追求,又要懂得满足只有这样,我们的生活才能更加和谐我们的心灵才能更加平静记住,凡事有度过则为灾,这是生活的智慧也是我们应该牢记的生活准则。 阅读全文
posted @ 2023-11-08 09:45 luckylou 阅读(6) 评论(0) 推荐(0) 编辑
摘要: let ua = uni.getSystemInfoSync().ua; // 判断是否在微信内 if (ua.match(/MicroMessenger/i) == "MicroMessenger") { wx.miniProgram.getEnv((res) => { if (res.minip 阅读全文
posted @ 2023-10-19 14:20 luckylou 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Html5原生的就能够支持拍照选择图片,不需要JS调用。 下面的是单一调用的方式: <!-- 调用照相机,拍照 --> <input type="file" accept="image/*" capture="camera"> <!-- 调用摄像机,视频 --> <input type="file" 阅读全文
posted @ 2023-09-19 11:15 luckylou 阅读(196) 评论(0) 推荐(0) 编辑
摘要: html2canvas(that.$app, { 'width' : that.$app.get(0).offsetWidth, 'height' : that.$app.get(0).scrollHeight, 'background' : '#fff', 'scale': window.devi 阅读全文
posted @ 2022-12-07 14:31 luckylou 阅读(245) 评论(0) 推荐(0) 编辑
摘要: var base64Data = canvas.toDataURL("image/png"); var iframe = "<iframe width='100%' height='100%' src='" + base64Data + "'></iframe>"; var x = window.o 阅读全文
posted @ 2022-12-07 14:03 luckylou 阅读(163) 评论(0) 推荐(0) 编辑
摘要: $(".canebdvix").append($(this).clone(true)); clone() 方法,调用clone()方法可以生成一个被选元素的副本,复制了一个被选元素 阅读全文
posted @ 2022-09-02 16:24 luckylou 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 使用正则表达式,拆分url中的请求参数。 demo code:var pId = getQueryStringByName("p") || 0; function getQueryString() { var result = location.search.match(new RegExp("[\ 阅读全文
posted @ 2022-07-28 11:11 luckylou 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-06-23 14:14 luckylou 阅读(488) 评论(0) 推荐(0) 编辑
摘要: //检查微信小程序是否最新版本 checkForUpdate: function () { const updateManager = wx.getUpdateManager() updateManager.onUpdateReady(function () { wx.showModal({ tit 阅读全文
posted @ 2022-06-23 14:02 luckylou 阅读(318) 评论(0) 推荐(0) 编辑
摘要: // img 文件夹下 obj.file.name 文件的名字 obj.file文件对象 client.multipartUpload('img/' + obj.file.name, obj.file, { // 进度条的配置项 progress: function(percentage) { // 阅读全文
posted @ 2022-06-08 16:59 luckylou 阅读(553) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 22 下一页