上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页

2020年7月30日

uniapp瀑布流

摘要: <view class="goodsContent"> <view class="goodsLeftList" > <view class="goodsItem" v-for="item in goodsLeftList"> <image :src="item.image_url" @load="o 阅读全文

posted @ 2020-07-30 09:43 Just丶随心 阅读(1859) 评论(0) 推荐(0) 编辑

2020年7月7日

uniapp保存网络图片到相册

摘要: //下载网络图片 saveHttpImg(url){ let _t = this; uni.downloadFile({ url:url, //仅为示例,并非真实的资源 success: (res) => { if (res.statusCode 200) { let file = res.temp 阅读全文

posted @ 2020-07-07 16:28 Just丶随心 阅读(4606) 评论(0) 推荐(0) 编辑

2020年6月19日

uniapp转时间戳

摘要: timeStamp: function(value) { var date = new Date(value*1000); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 var year = date.getFullYear(); var month = ("0" + (date 阅读全文

posted @ 2020-06-19 15:56 Just丶随心 阅读(3890) 评论(0) 推荐(0) 编辑

2020年6月16日

uniapp跨域

摘要: 用HbuilderX内置浏览器直接预览 https://ask.dcloud.net.cn/article/35267 阅读全文

posted @ 2020-06-16 09:25 Just丶随心 阅读(327) 评论(0) 推荐(0) 编辑

2020年6月10日

uniapp图片文件转base64

摘要: fileUpload() { let _this = this; uni.chooseImage({ count: 1, success: res => { this.urlTobase64(res.tempFilePaths[0]); } }) }, // 获取图片信息 urlTobase64(u 阅读全文

posted @ 2020-06-10 14:08 Just丶随心 阅读(3244) 评论(0) 推荐(0) 编辑

2020年4月21日

懒加载

摘要: <body> <div class="container"> <img src="jiazai.png" alt="1" data-src="http://img.jpg"> <img src="jiazai.png" alt="1" data-src="http://img0.jpg"> </di 阅读全文

posted @ 2020-04-21 11:39 Just丶随心 阅读(167) 评论(0) 推荐(0) 编辑

2020年3月11日

替换富文本样式

摘要: var richtext= res.data.data.richtext; const regex = new RegExp('<img', 'gi'); richtext= richtext.replace(regex, `<img style="max-width: 100%;"`);\ thi 阅读全文

posted @ 2020-03-11 15:56 Just丶随心 阅读(1635) 评论(0) 推荐(0) 编辑

2019年10月25日

搜集到的常用Scheme

摘要: 应用名称URL Scheme 微博 weibo:// QQ mqq:// QQ群组 mqqapi://card/show_pslcard?src_type=internal&version=1&card_type=group&uin={QQ群号} QQ联系人 mqqapi://card/show_p 阅读全文

posted @ 2019-10-25 10:32 Just丶随心 阅读(757) 评论(0) 推荐(0) 编辑

2019年9月29日

JS浏览器复制

摘要: function copyArticle() { const range = document.createRange(); range.selectNode(document.getElementById('content')); const selection = window.getSelec 阅读全文

posted @ 2019-09-29 11:35 Just丶随心 阅读(413) 评论(0) 推荐(0) 编辑

2019年9月6日

倒计时

摘要: //相差的总秒数 var totalSeconds = parseInt((endDate - nowDate) / 1000); //天数 var days = Math.floor(totalSeconds / (60 * 60 * 24)); //取模(余数) var modulo = tot 阅读全文

posted @ 2019-09-06 17:08 Just丶随心 阅读(125) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页

导航