摘要:
<wxs module="formatTime"> var formatTimeCoupon = function(times){ var date = getDate((times*1000)); var year = date.getFullYear() var month = date.get 阅读全文
摘要:
const elequery = wx.createSelectorQuery().in(this);elequery.selectAll('.goods-info').boundingClientRect((res)=>{ console.log(res)}).exec(); goods-info 阅读全文
摘要:
div::after{ content: "";display: block;position: absolute;top: 50%;right: 50rpx;margin-top: -8rpx;width: 14rpx;height: 14rpx;border-width: 2rpx 2rpx 0 阅读全文
摘要:
父组件 var info = { message: "Hello Son!" }; //现有模板的数值 let templatelistvalue //发送跨域信息 function sendInfo(){ var sonIframe= document.getElementById("ifra2" 阅读全文
摘要:
1、方法一 /** * 设置粘贴板数据 * @param {String} text 要设置的字符串 * 如果未设置参数,则清空数据 */ function setClipboardText(text){ try{ var os = plus.os.name; text = text||''; if 阅读全文
摘要:
使用 页面生命周期 onReachBottom ,滚动条滚动到底部的时候就会触发 , 还可以设置 滚动条跟 底部 之间 触发函数的距离 详情:https://uniapp.dcloud.io/collocation/frame/lifecycle?id=%e9%a1%b5%e9%9d%a2%e7%9 阅读全文
摘要:
获取滚动轴距离页面顶部距离:onPageScroll生命周期函数 设置滚动轴距离页面顶部的距离uni.pageScrollTo()方法 uni.pageScrollTo({ scrollTop: 0, //距离页面顶部的距离 duration: 300 }); 阅读全文
摘要:
uni.downloadFile({ url: 'https://ehcumh.oss-cn-hongkong.aliyuncs.com/met/logo2.png', success: (res) => { console.log('练市图片路径') console.log(res.tempFil 阅读全文