【问题标题】:How to change the default index.html file in titanium mobile web?钛移动网如何更改默认index.html文件?
【发布时间】:2015-10-09 08:44:08
【问题描述】:

我想知道如何更改默认的index.html 文件。我创建了一个经典项目(用于移动网络)。其中我创建了一个.css 文件,其中包含我的自定义样式。现在我想将此文件包含在 index.html 中,以便这些样式将应用于我的应用程序。但是还没有看到index.html 文件。构建后,我可以在构建文件夹中看到这个文件。我可以知道如何更新index.html 文件吗?

提前致谢,

斯瓦西语。

【问题讨论】:

    标签: titanium titanium-mobile appcelerator appcelerator-mobile


    【解决方案1】:

    Appcelerator 使用 XML 作为视图,使用 TSS 作为样式,使用 JS 作为控制器。然后 Titanium 将您的源代码编译成原生 API(用于移动 Web 的 HTML)。因为您还可以针对 iOS、Android 和 Windows 进行编译,所以您的输出将被适当地转换到您的构建目录。当你创建一个新的 Alloy 项目时,你会在 app views、styles 和 controllers 目录中分别找到默认的 index.xml、index.tss 和 index.js。所以要控制 index.html,编辑这 3 个 index.* 文件。

    【讨论】:

      猜你喜欢
      • 2018-06-18
      • 2012-12-20
      • 2016-12-07
      • 1970-01-01
      • 2023-03-23
      • 1970-01-01
      • 2018-02-28
      • 1970-01-01
      • 2011-01-23
      相关资源
      最近更新 更多