在Clouda中使用jQuery Mobile问题解决方案
生活随笔
收集整理的這篇文章主要介紹了
在Clouda中使用jQuery Mobile问题解决方案
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
在Clouda集成jQuery Mobile方法跟jQuery一樣,在集成后開發(fā)者在Clouda中使用jQuery Mobile時(shí)會(huì)遇到屏幕閃一下就白屏了,這個(gè)不是Clouda的問(wèn)題,而是jQuery Mobile在body中加一層自己的class導(dǎo)致的,可以使用下面的方法來(lái)解決這個(gè)問(wèn)題:
在Clouda的index.html和debug.html中引入jQuery Mobile的語(yǔ)句下面加入下面的代碼:
詳細(xì)示例如下(以index.html為例):
<!DOCTYPE html> <html manifest="bin/cache.manifest"><head><title>Sumeru App F/W</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta content="target-densitydpi=high-dpi,width=device-width,initial-scale=1" name="viewport" /><meta name="apple-mobile-web-app-capable" content="yes" /><link href="bin/sumeru.css" rel="stylesheet"></link><link href="bin/app.css" rel="stylesheet"></link><script src="bin/sumeru.js"></script><script src="bin/app.js"></script><script src="http://code.jquery.com/mobile/1.4.1/jquery.mobile-1.4.1.min.js"></script><style>.ui-page{height:100%}</style></head><body></body> </html>
轉(zhuǎn)載于:https://www.cnblogs.com/lightapp/p/3607557.html
總結(jié)
以上是生活随笔為你收集整理的在Clouda中使用jQuery Mobile问题解决方案的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: MT6577/MT6589处理器参数对比
- 下一篇: CDH安全认证及使用