简体   繁体   English

jQuery mobile多个HTML

[英]jQuery mobile multiple html

I am new for jQuery mobile. 我是jQuery mobile的新手。 My project consist of 30 screen++. 我的项目包含30个屏幕++。 So I separate my screen to each single html. 因此,我将屏幕分开到每个HTML。 But now i facing one issues , because i need to include cordova.js to my project. 但是现在我面临一个问题,因为我需要在我的项目中包含cordova.js。 So did i need to include cordova.js to all html ? 那我是否需要将cordova.js包括到所有html中? It tat any better solution? 它有什么更好的解决方案吗? It quite take time to me for include cordova.js to 30++ html. 将cordova.js包含到30 ++ html中,这对我来说相当耗时。

Code

<head>
    <meta charset="utf-8">
    <title>Smart Realtor</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="apple-mobile-web-app-capable" content="yes">  
    <meta name="apple-mobile-web-app-status-bar-style" content="black"> 

    <link rel="stylesheet" href="css/smartrealtor-theme.css" />
    <link rel="stylesheet"  href="css/custom.css"> 
    <link rel="stylesheet"  href="css/themes/default/jquery.mobile.structure-1.4.2.css">
    <link rel="stylesheet"  href="css/themes/default/jquery.mobile.icons-1.4.2.css">
    <link rel="stylesheet"  href="css/jqm-icon-pack-fa.css">

    <script src="js/jquery.js"></script>
    <script src="js/globalsetting.js"></script>
    <script src="js/jquery.mobile-1.4.2.min.js"></script>
    <script src="cordova.js"></script>
    <script src="Calendar.js"></script>
    <script src="js/jquery.mobile.fastButtons.js"></script>
</head>

JQuery Mobile provides a JQuery mobile "page". JQuery Mobile提供了一个JQuery移动“页面”。 These pages can be included in the same file but can also be loaded from separate files 这些页面可以包含在同一文件中,也可以从单独的文件中加载

If you use JQuery mobile pages you will only have to include dependencies on your main page rather than all of the sub pages. 如果使用JQuery移动页面,则只需要在主页上包括依赖项,而不必在所有子页面上包括依赖项。 Please read the Page Documentation 请阅读页面文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM