会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
海底城
博客园
首页
新随笔
联系
订阅
管理
2018年7月20日
自定义非父子组件传值
摘要: const center = {}; center.on = function (eventName, callback) { if (!center[eventName]) { center[eventName] = []; } //保存回调函数 center[eventName].push(ca
阅读全文
posted @ 2018-07-20 09:06 海底城
阅读(76)
评论(0)
推荐(0)
2018年7月11日
上拉加载更多
摘要: onReachBottom() { //上拉加载更多 if (!this.data.canloadMore){ return;//不可以加载更多了 } this.setData({ playingPage: this.data.playingPage+1 }) // 请求正在热映的电影数据 getP
阅读全文
posted @ 2018-07-11 22:49 海底城
阅读(104)
评论(0)
推荐(0)
自定义非父子组件传值
摘要: const center = {}; center.on = function (eventName, callback) { if (!center[eventName]) { center[eventName] = []; } //保存回调函数 center[eventName].push(ca
阅读全文
posted @ 2018-07-11 20:52 海底城
阅读(82)
评论(0)
推荐(0)
2018年6月28日
redux 快速上手,详细使用源码
摘要: redux 是什么框架都可以用的,使用步骤 1 cnpm install redux --save import {createStore, combineReducers} from 'redux' //引入redux 里面的方法 import UserInfo from './userInfo'
阅读全文
posted @ 2018-06-28 15:16 海底城
阅读(143)
评论(0)
推荐(0)
公告