摘要: const center = {}; center.on = function (eventName, callback) { if (!center[eventName]) { center[eventName] = []; } //保存回调函数 center[eventName].push(ca 阅读全文
posted @ 2018-07-20 09:06 海底城 阅读(71) 评论(0) 推荐(0) 编辑
摘要: onReachBottom() { //上拉加载更多 if (!this.data.canloadMore){ return;//不可以加载更多了 } this.setData({ playingPage: this.data.playingPage+1 }) // 请求正在热映的电影数据 getP 阅读全文
posted @ 2018-07-11 22:49 海底城 阅读(103) 评论(0) 推荐(0) 编辑
摘要: const center = {}; center.on = function (eventName, callback) { if (!center[eventName]) { center[eventName] = []; } //保存回调函数 center[eventName].push(ca 阅读全文
posted @ 2018-07-11 20:52 海底城 阅读(79) 评论(0) 推荐(0) 编辑
摘要: redux 是什么框架都可以用的,使用步骤 1 cnpm install redux --save import {createStore, combineReducers} from 'redux' //引入redux 里面的方法 import UserInfo from './userInfo' 阅读全文
posted @ 2018-06-28 15:16 海底城 阅读(135) 评论(0) 推荐(0) 编辑