摘要:
const center = {}; center.on = function (eventName, callback) { if (!center[eventName]) { center[eventName] = []; } //保存回调函数 center[eventName].push(ca 阅读全文
摘要:
onReachBottom() { //上拉加载更多 if (!this.data.canloadMore){ return;//不可以加载更多了 } this.setData({ playingPage: this.data.playingPage+1 }) // 请求正在热映的电影数据 getP 阅读全文
摘要:
const center = {}; center.on = function (eventName, callback) { if (!center[eventName]) { center[eventName] = []; } //保存回调函数 center[eventName].push(ca 阅读全文
摘要:
redux 是什么框架都可以用的,使用步骤 1 cnpm install redux --save import {createStore, combineReducers} from 'redux' //引入redux 里面的方法 import UserInfo from './userInfo' 阅读全文