jQuery Mobile引用在页面底部出现loading字样如何去除?
1 回答
蝴蝶不菲
TA贡献1810条经验 获得超4个赞
覆盖默认设置即可,默认设置为:
| 123456 | $( document ).bind( 'mobileinit', function(){$.mobile.loader.prototype.options.text = "loading";$.mobile.loader.prototype.options.textVisible = false;$.mobile.loader.prototype.options.theme = "a";$.mobile.loader.prototype.options.html = "";}); |
后续的设置会覆盖掉默认的设置,一旦后续的设置被删除掉了, 那么默认的设置就能会被 $.mobile.loading中对象的描述的所覆盖。代码实例如下:
| 1234 | $.mobile.loading( 'show', {text: 'foo',textVisible: false,theme: 'z',html: ""}); |
textVissible:false就是不显示文字!
- 1 回答
- 0 关注
- 553 浏览
添加回答
举报
0/150
提交
取消
