09 2018 档案

摘要:wxml <!--pages/scroll.wxml--> <scroll-view scroll-y="true" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll" scroll-top="{{ scro 阅读全文
posted @ 2018-09-29 18:21 红尘陌上,独自行走 阅读(369) 评论(0) 推荐(0)
摘要:wx.request({ url: 'https://hanwslh5.qcloud.la/weapp/HelloWorld', 对于 GET 方法的数据,会将数据转换成 query string(encodeURIComponent(k)=encodeURIComponent(v)&encodeU 阅读全文
posted @ 2018-09-28 14:00 红尘陌上,独自行走 阅读(215) 评论(0) 推荐(0)
摘要:Flex布局 相对定位和绝对定位 弹性盒模型 display flex-direction flex-wrap :nowrap(不换行)/ wrap(换行,第一行在上方)/ wrap-reverse(换行,第一行在下方) justify-content align-items flex-flow: 阅读全文
posted @ 2018-09-27 15:18 红尘陌上,独自行走 阅读(590) 评论(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 红尘陌上,独自行走 阅读(131) 评论(0) 推荐(0)
摘要:APP的生命周期 onLaunch: function(){ //小程序初始化完成时(全局只触发一次)--生命周期回调—监听小程序初始化 console.log(" onLaunch ") } onShow: function(){ //小程序启动,或从后台进入前台显示时 -- 生命周期回调—监听小 阅读全文
posted @ 2018-09-27 12:33 红尘陌上,独自行走 阅读(137) 评论(0) 推荐(0)
摘要:小程序: 一种新的应用形态 一种不要安装下载即可使用的应用 触手可及: 通过扫一扫,或者搜索,或者通过公众好跳转。 用完即走: 用户不关心是否安装太多应用的问题,应用无处不在,随时可用,无需安装,也无需卸载。 <!-- rpx: 微信把每个手机屏幕的宽度为750px --> <!-- iphone 阅读全文
posted @ 2018-09-21 18:43 红尘陌上,独自行走 阅读(341) 评论(0) 推荐(0)
摘要:Flow 是 facebook 出品的 JavaScript 静态类型检查工具。Vue.js 的源码利用了 Flow 做了静态类型检查,所以了解 Flow 有助于我们阅读源码。 flow的工作方式? 通常类型检查分成 2 种方式: 安装flow npm install -g flow-bin flo 阅读全文
posted @ 2018-09-17 10:45 红尘陌上,独自行走 阅读(172) 评论(0) 推荐(0)
摘要:select sheng.id as sid,sheng.title as stitle,shi.id as shiid,shi.title as shi,xian.id as xianid,xian.title as xiantitlefrom areas as sheng inner join 阅读全文
posted @ 2018-09-03 18:44 红尘陌上,独自行走 阅读(137) 评论(0) 推荐(0)