jquery-mobile使用教程

2017-09-04  本文已影响0人  wangzaiplus

文章参考自:链接

两种方式将jQuery Mobile添加到你的网页中:

  1. 从 CDN 中加载 jQuery Mobile (推荐)
  2. 从jQuerymobile.com 下载 jQuery Mobile库

1. CDN方式(国内用户推荐使用百度CDN)

<head>
<!-- meta使用viewport以确保页面可自由缩放 -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 引入 jQuery Mobile 样式 -->
<link rel="stylesheet" href="http://apps.bdimg.com/libs/jquerymobile/1.4.5/jquery.mobile-1.4.5.min.css">
<!-- 引入 jQuery 库 -->
<script src="http://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
<!-- 引入 jQuery Mobile 库 -->
<script src="http://apps.bdimg.com/libs/jquerymobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
</head>

2. 下载 jQuery Mobile

下载地址:链接

使用:

<head>
<link rel="stylesheet" href="jquery.mobile-1.4.5.css">
<script src="jquery.mobile-1.4.5.js"></script>
</head>
上一篇 下一篇

猜你喜欢

热点阅读