MUI 下拉刷新 浏览器正常但是手机端不显示下拉的等待文字
下拉刷新不显示等待文字:PC浏览器打开正常,但是手机端却没有。检查后发现手机上运行时,没有进到下面的_initPocket方法中,但是为什么PC和手机端会表现不一致。不知道该如何解决,请高人指点。
浏览器端可以正常显示:
手机端顶部是空的了:
----------------------------------mui.js 代码如下----------------------------------
_init: function() {
this._super();
alert("pocket---in");
this._initPocket();
alert("pocket---out");
},
.......
_initPocket: function() {
var options = this.options;
if (options.down && options.down.hasOwnProperty('callback')) {
alert("-----1-----");
this.topPocket = this.scroller.querySelector('.' + CLASS_PULL_TOP_POCKET);
if (!this.topPocket) {
this.topPocket = this._createPocket(CLASS_PULL_TOP_POCKET, options.down, CLASS_LOADING_DOWN);
this.wrapper.insertBefore(this.topPocket, this.wrapper.firstChild);
}
this.topLoading = this.topPocket.querySelector('.' + CLASS_PULL_LOADING);
this.topCaption = this.topPocket.querySelector('.' + CLASS_PULL_CAPTION);
console.log("-----2-----");
console.log(mui(".mui-pull-top-pocket")[0]);
}
if (options.up && options.up.hasOwnProperty('callback')) {
console.log("-----1-up-----");
this.bottomPocket = this.scroller.querySelector('.' + CLASS_PULL_BOTTOM_POCKET);
if (!this.bottomPocket) {
this.bottomPocket = this._createPocket(CLASS_PULL_BOTTOM_POCKET, options.up, CLASS_LOADING);
this.scroller.appendChild(this.bottomPocket);
}
this.bottomLoading = this.bottomPocket.querySelector('.' + CLASS_PULL_LOADING);
this.bottomCaption = this.bottomPocket.querySelector('.' + CLASS_PULL_CAPTION);
//TODO only for h5
this.wrapper.addEventListener('scrollbottom', this);
}
},
相关阅读:
axios.js post application/x-www-form-urlencoded参数问题
C语言函数实际声明类型为int,接受返回值类型为float,最终返回结果以什么为准?
关于jquery中html方法的使用,有返回信息的页面一闪而过,回到最初的登录页面。
在闭包中,无法使用数组的length属性?
bluebird的populateAsync怎么使用呢?
vue-router 2 全局钩子 next()出错
一个关于html布局的问题?
请问有没有微信公众号的安全键盘?
用python bottle搭建的http服务post请求405怎么解决啊?
为什么postfix 无需密码就可以发送邮件?
PHP有没有类似的快速开发平台
web项目下的项目图片要怎么同步到本地提供给nginx作为静态资源访问
修改laravel的Eager Loading结构
在学AJaX的时候需要在服务器上做什么?
Ubuntu装完lnmp之后没有gd库,而且安装不上?
copy 叫 replace 是不是更贴切一点
PHP环境部署,Linux真的比Windows好吗?
关于es6 编译过后代码上线的问题
请问各位大神这个题目怎么解,万分感谢;
js中关于undefined的一个问题