我有一个奇怪的问题,如果我在任何浏览器中加载此页面,页面显示正常,但是当浏览器 jquery mobile 未加载时,页面如下:
http://www.cuponeraclub.com/landing.html
在浏览器中打开它加载 jquery 好的,在移动 jquery 移动中不加载。
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link ref="https://www.cuponeraclub.com/themes/livingsocial_v3.1/css/jquery.mobile-1.2.0.min.css" rel="stylesheet" type="text/css"/>
<script src="https://www.cuponeraclub.com/themes/livingsocial_v3.1/scripts/jquery-1.8.3.js" type="text/javascript"></script>
<script src="https://www.cuponeraclub.com/themes/livingsocial_v3.1/scripts/jquery.mobile-1.2.0.min.js" type="text/javascript"></script>
<div data-role="page">
<div data-role="content">
<div class="ui-grid-solo">
<div class="ui-block-a"><input type="text" id="email" placeholder="Email"></div>
</div>
<div class="ui-grid-solo">
<div class="ui-block-a">
<select id="city">
<option value="22" >Ambato</option>
<option value="12" >Cuenca</option>
<option value="25" >Esmeraldas</option>
<option value="11" selected>Guayaquil</option>
<option value="26" >Ibarra</option>
<option value="27" >Loja</option>
<option value="24" >Machala</option>
<option value="28" >Manta</option>
<option value="29" >Portoviejo</option>
<option value="10" >Quito</option>
<option value="23" >Riobamba</option>
<option value="30" >Santo Domingo</option>
</select></div>
</div>
<div class="ui-grid-solo">
<div class="ui-block-a"><button type="v" data-theme="b">Suscribete</button></div>
</div>
</div><!-- /content -->
</div><!-- /page -->
<script>
if (typeof jQuery == 'undefined') {
alert('undefined');} else {alert('ok');}
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link ref="https://www.cuponeraclub.com/themes/livingsocial_v3.1/css/jquery.mobile-1.2.0.min.css" rel="stylesheet" type="text/css"/>
<script src="https://www.cuponeraclub.com/themes/livingsocial_v3.1/scripts/jquery-1.8.3.js" type="text/javascript"></script>
<script src="https://www.cuponeraclub.com/themes/livingsocial_v3.1/scripts/jquery.mobile-1.2.0.min.js" type="text/javascript"></script>
<div data-role="page">
<div data-role="content">
<div class="ui-grid-solo">
<div class="ui-block-a"><input type="text" id="email" placeholder="Email"></div>
</div>
<div class="ui-grid-solo">
<div class="ui-block-a">
<select id="city">
<option value="22" >Ambato</option>
<option value="12" >Cuenca</option>
<option value="25" >Esmeraldas</option>
<option value="11" selected>Guayaquil</option>
<option value="26" >Ibarra</option>
<option value="27" >Loja</option>
<option value="24" >Machala</option>
<option value="28" >Manta</option>
<option value="29" >Portoviejo</option>
<option value="10" >Quito</option>
<option value="23" >Riobamba</option>
<option value="30" >Santo Domingo</option>
</select></div>
</div>
<div class="ui-grid-solo">
<div class="ui-block-a"><button type="v" data-theme="b">Suscribete</button></div>
</div>
</div><!-- /content -->
</div><!-- /page -->
<script>
if (typeof jQuery == 'undefined') {
alert('undefined');} else {alert('ok');}
</script>