Closed cos800 closed 5 years ago
本想换成 zepto 的 ajax,但是 Mobilebone 的 菊花图 并没有相关控制接口。。。 莫非要做成一个页面,两朵菊花。。。
而且 Mobilebone 的菊花并不是很美啊, 其实 我想换成 Frozen 的菊花,但好像也没有相关接口。
关于菊花 能不能做成这样调用:
Mobilebone.showLoading();
Mobilebone.hideLoading();
然后有些人 想要调用自己的菊花,像我想用Frozen
的,只要这样配置一下:
var Loading = {
times: 0,
obj: null,
show: function() {
if (this.times<1) {
this.obj = $.loading({
content:'加载中...'
});
}
this.times++;
},
hide: function() {
this.times--;
if (this.times<1) {
this.obj.loading('hide');
}
}
};
Mobilebone.showLoading = Loading.show();
Mobilebone.hideLoading = Loading.hide();
这样子感觉比较科学一些~
我服务器端已经加了:
我用
zepto
和Mobilebone
一起发起请求,zepto
成功了,而Mobilebone
出错了, 而且设置了POST
结果变成OPTIONS
提交,怎么回事?截图等会传~