摘要: Flex布局 相对定位和绝对定位 弹性盒模型 display flex-direction flex-wrap :nowrap(不换行)/ wrap(换行,第一行在上方)/ wrap-reverse(换行,第一行在下方) justify-content align-items flex-flow: 阅读全文
posted @ 2018-09-27 15:18 红尘陌上,独自行走 阅读(558) 评论(0) 推荐(0) 编辑
摘要: navigateTo({ url: '/page/indexDetails/indexDetails/?a=1&b=2' }) navigateTo无法跳到tarBar上面已有的页面,只有跳到tarBar上没有的页面 redirectTo({ url: '/page/login/login/?a=1 阅读全文
posted @ 2018-09-27 14:09 红尘陌上,独自行走 阅读(124) 评论(0) 推荐(0) 编辑
摘要: APP的生命周期 onLaunch: function(){ //小程序初始化完成时(全局只触发一次)--生命周期回调—监听小程序初始化 console.log(" onLaunch ") } onShow: function(){ //小程序启动,或从后台进入前台显示时 -- 生命周期回调—监听小 阅读全文
posted @ 2018-09-27 12:33 红尘陌上,独自行走 阅读(130) 评论(0) 推荐(0) 编辑