IBM工作灯使用多个HTML文件多个、文件、工作灯、IBM

2023-09-06 11:13:46 作者:无处躲藏的忧伤ご

我是新来IBM工作灯。我一直在使用的Andr​​oid从过去的1年。我喜欢工作灯了很多,我觉得我可以做更多的事情吧。我想开发HTML 5应用程序/游戏使用工作灯与Eclipse IDE中。所以,我想知道如何将所有必需的HTML,JS和CSS文件,在一个工作灯项目在各种平台上链接和暗褐色它...

I am new to IBM Worklight . I have been using Android from past 1 year. I liked Worklight a lot and I feel I can do a lot more with it. I want to develop the app/game in HTML 5 using Worklight with Eclipse IDE. So I would like to know how to link all the required html,js and css files in one Worklight Project and dun it on various platforms...

推荐答案

该工作灯的应用是完全基于IFrame的概念作品即它是一个单页的应用程序。即使你的网页数n,它不会表现得像Web应用程序。只是把一个页面另一些人。在这里,在样本,他们给了有关寻呼信息。调用页面的实例,因此它释放的页面实例占用的内存删除的实例。通过7.5模块分页的概念去。有这个另一替代解决方案。如果你不具有分页安慰只是设计一个页面的HTML文件,

The worklight application is entirely works on IFrame concept i.e it is a single page application. Even though you have n number of pages it wont behave like web application. Just putting one page over another. Here in samples they gave information about paging. Calling the instance of page and removing the instance so it free up the memory occupied by the page instance. Go through 7.5 module for paging concept. There is another alternate solution for this. if you are not comfort with paging just design single page HTML file,

单页HTML文件的优点:

Advantage of Single Page HTML file:

当试图加载避免了JS文件多个呼叫的每一页。 调整和资源(CSS和JS)的排序是容易的。