随笔分类 -  微信小程序

我啥也不是
摘要:主要是ES6模块化 一句话就是:把一段代码封装起来,便于重复使用 1、es5之前没有模块化,使用commonJs的规范,使用module.exports导出,用require+path引入 module.exports = { name:"冬冬的随笔", funA:function(){ retur 阅读全文
posted @ 2021-02-19 11:47 冬冬先生 阅读(368) 评论(0) 推荐(1)
摘要:组件 <template> <div class="amap-page-container" style="height: 400px; margin-bottom: 200px; background: #ccc" > <el-amap-search-box class="search-box" 阅读全文
posted @ 2020-12-21 16:04 冬冬先生 阅读(8870) 评论(1) 推荐(0)
摘要:推荐参考网址:https://100px.net/document/uni-app.html 阅读全文
posted @ 2020-12-17 13:48 冬冬先生 阅读(343) 评论(0) 推荐(0)
摘要:1、例如:iPhoneX的底部小黑条 2、解决方案 (1)获取手机型号,单独处理样式(底部小黑条大约为68rpx) (2)实现铺满全屏效果 (3)具体代码 3、具体的实现方法 原生的放在app.js/uniapp放在app.vue wx.getSystemInfo({ success: res => 阅读全文
posted @ 2020-12-10 15:37 冬冬先生 阅读(314) 评论(0) 推荐(0)
摘要:主要是使用到canvas画布的知识 代码如下: wxml <view> <image src="{{img}}" class='bgImg'></image> <text class='mine'>我的邀请码</text> <text class='code'>{{code}}</text> <te 阅读全文
posted @ 2020-07-16 10:41 冬冬先生 阅读(947) 评论(0) 推荐(0)