摘要:
小程序的分享功能 <button open-type="share">分享</button> 点击此按钮后会触发(父组件的): //系统自带方法 onShareAppMessage: function (event) { const blog = event.target.dataset.blog; 阅读全文
posted @ 2019-12-05 14:49
baixinL
阅读(607)
评论(0)
推荐(0)
摘要:
const pages = getCurrentPages();//获取当前的页面栈 console.log("pages,", pages) const prevPage = pages[pages.length - 1];//当前的page prevPage.onPullDownRefresh( 阅读全文
posted @ 2019-12-05 13:04
baixinL
阅读(582)
评论(0)
推荐(0)
摘要:
子组件的使用 在.json中配置"usingComponents"字段,{"标签名": "子组件路径"} "usingComponents": { "x-blog-cart": "/components/blog-cart/blog-cart", "x-blog-ctrl": "/component 阅读全文
posted @ 2019-12-05 12:02
baixinL
阅读(260)
评论(0)
推荐(0)
摘要:
页面滚动 使用scroll-view标签包裹内容,可以实现页面滚动 scroll-y="true"纵向可以滚动 scroll-x="true"横向可以滚动 <scroll-view scroll-y="true"> 。。。。 </scroll-view> 阅读全文
posted @ 2019-12-05 11:50
baixinL
阅读(140)
评论(0)
推荐(0)
摘要:
tcb-router 基于koa风格的小程序·云开发云函数轻量级类路由库,主要用于优化服务端函数处理逻辑 安装 在云函数当前目录下安装:npm install --save tcb-router 使用 const tcbRouter = require('tcb-router'); exports. 阅读全文
posted @ 2019-12-05 07:58
baixinL
阅读(799)
评论(0)
推荐(0)

浙公网安备 33010602011771号