05 2020 档案

摘要:react中如何使用swiper react中怎么使用基本swiper 第一步:安装包 1 npm i swiper -S 第二步:引包 1 2 import Swiper from 'swiper/dist/js/swiper.js' import 'swiper/dist/css/swiper. 阅读全文
posted @ 2020-05-16 10:37 竹子up 阅读(3226) 评论(0) 推荐(0)
摘要:1.首先把安装amfe-flexible,这里使用npm install npm i -S amfe-flexible 2.在入口文件main.js中引入 import 'amfe-flexible/index.js' 3.在根目录的index.html 的头部加入手机端适配的meta代码 <met 阅读全文
posted @ 2020-05-15 22:53 竹子up 阅读(5184) 评论(0) 推荐(0)
摘要:第一步:新建my-component.js文件导出 module.exports = Behavior({ data:{ title:"张三" }, methods:{ fn(){ wx.showToast({ title:"我来了,你在哪?" }) } } )需要共享的数据下在data里面,需要共 阅读全文
posted @ 2020-05-14 09:12 竹子up 阅读(1607) 评论(0) 推荐(0)
摘要:1、底部tabBar设置 当然可以设置在顶部 在全局app.json中配置 "tabBar":{ position:"bottom" // 在这里设置tabBar的位置 可以选择顶部和底部 "list":[ { "text":"首页" ,//在这里可以写底部tabBar中内容 什么页面 pagePa 阅读全文
posted @ 2020-05-12 09:16 竹子up 阅读(1243) 评论(0) 推荐(0)
摘要:1、设置 data-x ="y" 在事件处理函数中有个参数 e e.currentevent.dataset.x可以得到y 2、设置id属性 id = “y” 在事件处理函数中有个参数 e e.currentevent.id可以得到y 阅读全文
posted @ 2020-05-11 09:27 竹子up 阅读(788) 评论(0) 推荐(0)
摘要:一、跳转页面 1、通过 navigator标签 <navigator url="../index/index?a=1&b=2"></navigator> 2、通过事件 在当前页面的js文件内添加事件处理函数 通过 wx.navigatorTo({ url:"../index/index?a=1&b= 阅读全文
posted @ 2020-05-11 09:23 竹子up 阅读(613) 评论(0) 推荐(0)