TWI507984B - Web application versioning and loading method - Google Patents

Web application versioning and loading method Download PDF

Info

Publication number
TWI507984B
TWI507984B TW103101364A TW103101364A TWI507984B TW I507984 B TWI507984 B TW I507984B TW 103101364 A TW103101364 A TW 103101364A TW 103101364 A TW103101364 A TW 103101364A TW I507984 B TWI507984 B TW I507984B
Authority
TW
Taiwan
Prior art keywords
application
version
download location
server
text
Prior art date
Application number
TW103101364A
Other languages
Chinese (zh)
Other versions
TW201528137A (en
Inventor
Wei Ming Chen
Fang Ju Kuo
Original Assignee
Chunghwa Telecom Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chunghwa Telecom Co Ltd filed Critical Chunghwa Telecom Co Ltd
Priority to TW103101364A priority Critical patent/TWI507984B/en
Publication of TW201528137A publication Critical patent/TW201528137A/en
Application granted granted Critical
Publication of TWI507984B publication Critical patent/TWI507984B/en

Links

Description

網頁應用程式的版本管理與載入方法Version management and loading method for web applications

本發明是有關於一種網頁應用程式部署與更新的技術,特別是有關於一種可有效管理及載入應用程式之各種版本之網頁應用程式的版本管理與載入方法。The present invention relates to a web application deployment and update technology, and more particularly to a version management and loading method for a web application that can effectively manage and load various versions of an application.

網頁應用程式因為用戶端在使用時是直接存取伺服器上之資料,因此伺服器上資料可以時常更新,讓使用者永遠都接觸到最新的資訊。不過當網頁應用程式愈來愈複雜後,為了在用戶端可以快速地回應使用者操作,通常在用戶端會先保存顯示頁面,然後用非同步的方式去下載新版本的資料或頁面,待下載完畢後再更新顯示畫面。Because the web application directly accesses the data on the server during use, the data on the server can be updated frequently, so that the user can always access the latest information. However, when the web application is more and more complicated, in order to quickly respond to the user operation on the user side, the user usually saves the display page first, and then downloads the new version of the data or page in an asynchronous manner, to be downloaded. Update the display after you finish.

若用戶端在使用網頁應用程式時先下載網頁應用程式系統框架與用戶用得到的功能模組,其餘功能模組等用到時再下載,如此一來便可顯著地節省載入時間,加速使用者的操作回應。然而由於網頁應用程式易於更新的特性,於伺服器端雖然可以很方便地更新程式與資料,但在用戶端就有可能遭受因下載到不同版本之模組所造成的執行衝突。例如用戶已下載並執行了某應用程式模組A_v1,然後伺服器端將應用程式更新為v2,當用戶端使用到該應用模組B時再去下載,但此時會下載到應用程式模組B_v2,若應用模組A_v1與B_v2之間的運作方式因版本更新而不相容時,這時就會造成模組衝突並產生執行錯誤。If the client uses the web application, the web application system framework and the function module obtained by the user are first downloaded, and the remaining functional modules are used for downloading, so that the loading time can be significantly saved and the use can be accelerated. The operation response of the person. However, due to the easy-to-update nature of the web application, although the program and the data can be easily updated on the server side, the user may suffer from execution conflicts caused by downloading to different versions of the module. For example, the user has downloaded and executed an application module A_v1, and then the server updates the application to v2. When the user uses the application module B, the download is performed, but the application module is downloaded. B_v2, if the operation mode between the application modules A_v1 and B_v2 is incompatible due to the version update, then the module conflicts and an execution error occurs.

雖然此衝突可能可以藉由重新載入系統而解決,但在一些用戶不希望中斷目前網頁應用程式所提供的服務的情況下,例如因裝置運算速度較慢,重新載入系統需較長時間,用戶希望之後再進行重新載入系統的動作,或用戶不希望中斷目前網頁應用程式所提供的多媒體串流服務等情況,此時立即重新載入系統並不可行,因此需要另外一種不中斷服務的 應用程式更新方式。Although this conflict may be resolved by reloading the system, in the case where some users do not wish to interrupt the services provided by the current web application, for example, because the device is slow to operate, it takes a long time to reload the system. The user wants to reload the system later, or the user does not want to interrupt the multimedia streaming service provided by the current web application. It is not feasible to reload the system immediately, so another type of service is required. Application update method.

另外目前很多裝置都具有瀏覽器,因此幾乎都可以很容易地執行網頁應用程式。但不同的裝置其解析度、硬體、操作方式皆不相同,為了提供使用者最佳的使用體驗,同一應用程式會需要為不同裝置製作不同版本。目前技術為當裝置連線至伺服器時,伺服器會判斷裝置能使用之版本,然後再將該版本之應用程式回傳給裝置執行。然而此種方式在裝置數量變多時,伺服器會因為處理大量的判斷要求,造成處理效能低落。In addition, many devices currently have a browser, so almost all web applications can be executed easily. However, different devices have different resolutions, hardware, and operation methods. In order to provide users with the best experience, the same application will need to make different versions for different devices. The current technology is that when the device is connected to the server, the server will determine the version that the device can use, and then return the version of the application to the device for execution. However, in this way, when the number of devices increases, the server may have a low processing efficiency due to handling a large number of judgment requirements.

有鑑於上述習知技藝之問題,本發明之目的就是在提供一種網頁應用程式的版本管理與載入方法,於伺服器上可管理供不同裝置使用的多版本應用程式,使得裝置利用本方法載入網頁應用程式,可避免伺服器端程式版本更新時,造成裝置上因下載不同版本模組所造成的執行錯誤。另一方面利用靜態檔案來判斷裝置上能使用的程式版本,藉由靜態檔案可以由快取伺服器直接回應裝置要求,因此當裝置數量變多時,本方法可以很顯著地減輕伺服器負擔,增進伺服器處理效能。In view of the above problems in the prior art, the object of the present invention is to provide a version management and loading method for a web application, which can manage a multi-version application for use by different devices on a server, so that the device uses the method. The web application can avoid execution errors caused by downloading different versions of the module on the device when the server version is updated. On the other hand, the static file is used to determine the version of the program that can be used on the device. The static file can directly respond to the device request by the cache server. Therefore, when the number of devices is increased, the method can significantly reduce the server load. Improve server processing performance.

根據本發明之目的,提出一種網頁應用程式的版本管理與載入方法,其包含下列步驟:(A)透過一伺服器對每一應用程式及各應用程式之每一版本分別建立一下載位置,且對各應用程式分別設定一版本判斷文本;(B)將各版本之所有檔案放置於相對應之下載位置;(C)當一裝置欲經由伺服器載入其中一個應用程式之檔案時,係檢查裝置中是否有儲存應用程式所對應之下載位置,若有,裝置透過該下載位置載入應用程式之檔案,若無,則執行步驟(D);(D)裝置經由伺服器下載該應用程式所對應之版本判斷文本;(E)由裝置執行版本判斷文本,以依據裝置之系統參數判斷出裝置所可使用該應用程式之其中一個該版本;以及(F)裝置執行完版本判斷文本後,裝置由版本判斷文本執行結果取得可執行之應用程式版本下載位置,使裝置透過該下載位置來載入對應該版本之應用程式。According to the purpose of the present invention, a version management and loading method for a webpage application is provided, which comprises the following steps: (A) establishing a download location for each application and each version of each application through a server. And setting a version judgment text for each application; (B) placing all the files of each version in the corresponding download position; (C) when a device wants to load the file of one of the applications via the server, Checking whether there is a download location corresponding to the storage application, and if so, the device loads the application file through the download location, if not, executing step (D); (D) downloading the application via the server Corresponding version determination text; (E) executing version verification text by the device to determine that the device can use one of the versions of the application according to the system parameter of the device; and (F) after the device performs the version determination text, The device determines, by the version determination text execution result, an executable application version download location, so that the device loads the corresponding version through the download location With the program.

較佳地,當新增一個應用程式於該伺服器時,伺服器係新增一個對應該應用程式之版本判斷文本,並建立該應用程式之下載位置。Preferably, when an application is added to the server, the server adds a version judgment text corresponding to the application and establishes a download location of the application.

較佳地,當應用程式更新一個版本時,伺服器係對應修改該 應用程式之版本判斷文本,並建立一個對應該版本之下載位置。Preferably, when the application updates a version, the server correspondingly modifies the The version of the application determines the text and creates a download location for the corresponding version.

較佳地,上述(F)步驟中更包含:經由裝置儲存該下載位置,以供後續裝置欲下載該應用程式之檔案時,透過此次儲存之下載位置來進行該應用程式之載入。Preferably, the step (F) further includes: storing the download location via the device, for the subsequent device to download the application file, and loading the application through the stored download location.

根據本發明之目的,又提出一種網頁應用程式的版本管理與載入方法,其包含下列步驟:(A)透過一伺服器對每一應用程式及各應用程式之每一版本分別建立一下載位置,且對各應用程式分別設定一版本資訊檔;(B)將各版本之所有檔案放置於相對應之下載位置;(C)當一裝置欲經由伺服器載入其中一個應用程式之檔案時,係檢查裝置中是否有儲存應用程式所對應之下載位置,若有,裝置透過該下載位置載入應用程式之檔案,若無,則執行步驟(D);(D)裝置經由伺服器下載該應用程式所對應之版本資訊檔;(E)透過裝置之一裝置偵測模組偵測裝置之系統參數,並將偵測到之系統參數與版本資訊檔載入裝置之一版本判斷模組,並經由版本判斷模組依據裝置之系統參數與版本資訊判斷出裝置所可使用應用程式之其中一個版本;以及(F)裝置執行完版本判斷模組後,裝置由版本判斷模組告知可執行之應用程式版本下載位置,使裝置透過該下載位置來載入對應該版本之應用程式。According to the purpose of the present invention, a version management and loading method for a webpage application is further provided, which comprises the following steps: (A) establishing a download location for each application and each version of each application through a server. And setting a version of the information file for each application; (B) placing all files of each version in the corresponding download location; (C) when a device wants to load the file of one of the applications via the server, Checking whether there is a download location corresponding to the storage application, and if so, the device loads the application file through the download location, if not, executing step (D); (D) downloading the application via the server The version information file corresponding to the program; (E) the system parameter of the device detection module detecting device through one of the devices, and the detected system parameter and the version information file are loaded into one version of the device determining module, and The version determining module determines one version of the application that can be used by the device according to the system parameter and the version information of the device; and (F) after the device executes the version determining module, App is set to inform the executable version of the version of the download location determining module of the device through the loading position to be downloaded version of the application.

較佳地,當新增一個應用程式於伺服器時,伺服器係新增一個對應該應用程式之版本資訊檔並建立該應用程式之下載位置。Preferably, when an application is added to the server, the server adds a version information file corresponding to the application and establishes the download location of the application.

較佳地,當應用程式更新一個版本時,伺服器係對應修改該應用程式之版本資訊檔並建立一個對應該版本之下載位置。Preferably, when the application updates a version, the server correspondingly modifies the version information file of the application and establishes a download location corresponding to the version.

較佳地,上述(F)步驟中更包含:經由裝置儲存該下載位置,以供後續裝置欲下載該應用程式之檔案時,透過此次儲存之下載位置來進行該應用程式之載入。Preferably, the step (F) further includes: storing the download location via the device, for the subsequent device to download the application file, and loading the application through the stored download location.

根據本發明之目的,再提出一種網頁應用程式之版本管理方法,其包含下列步驟:透過一伺服器對每一應用程式及各應用程式之每一版本分別建立一下載位置,且對各應用程式分別設定一版本判斷文本或一版本資訊檔;以及將各版本之所有檔案放置於相對應之下載位置。其中,當新增一個應用程式於伺服器時,伺服器係新增一個對應該應用程式之版 本判斷文本或版本資訊檔,並建立該應用程式之下載位置;當應用程式更新一個版本時,伺服器係對應修改該應用程式之版本判斷文本或版本資訊檔,並建立一個對應該版本之下載位置。According to another aspect of the present invention, a method for managing a version of a web application includes the following steps: establishing a download location for each application and each version of each application through a server, and for each application Set a version judgment text or a version information file separately; and place all files of each version in the corresponding download position. Among them, when adding an application to the server, the server adds a version corresponding to the application. The judgment text or the version information file, and the download location of the application is established; when the application updates a version, the server correspondingly modifies the version judgment text or version information file of the application, and establishes a download corresponding to the version. position.

根據本發明之目的,更提出一種網頁應用程式之版本載入方法,係提供一裝置載入如上之網頁應用程式之版本管理方法中所述之某一版本之應用程式,此方法包含下列步驟:(A)當裝置欲經由伺服器載入其中一個應用程式之檔案時,係檢查裝置中是否有儲存應用程式所對應之下載位置,若有,裝置透過該下載位置載入該應用程式之檔案,若無,則執行步驟(B);(B)裝置經由伺服器下載該應用程式所對應之版本判斷文本或版本資訊檔;(C)由裝置執行版本判斷文本或呼叫版本判斷模組,以依據裝置之系統參數判斷出裝置所可使用應用程式之其中一個版本;以及(D)裝置執行完版本判斷文本或執行完版本判斷模組後,由版本判斷文本或版本判斷模組之執行結果取得裝置可執行之應用程式版本下載位置,使裝置透過該下載位置來載入對應該版本之應用程式。According to the purpose of the present invention, a version loading method of a webpage application is further provided, which is to provide a device for loading a version of the application described in the version management method of the web application as above, the method comprising the following steps: (A) when the device is to load a file of one of the applications via the server, it is checked whether there is a download location corresponding to the storage application, and if so, the device loads the file of the application through the download location. If not, executing step (B); (B) downloading, by the server, a version determination text or a version information file corresponding to the application; (C) executing, by the device, a version determination text or a call version determination module, The system parameter of the device determines one of the versions of the application that can be used by the device; and (D) the execution result obtaining device of the version determination text or version determination module after the device executes the version determination text or executes the version determination module The executable application version download location allows the device to load the corresponding version of the application through the download location.

較佳地,上述(D)步驟中更包含:經由裝置儲存該下載位置,以供後續裝置欲下載該應用程式之檔案時,透過此次儲存之該下載位置來進行該應用程式之載入。Preferably, the step (D) further includes: storing the download location via the device, for the subsequent device to download the application file, and loading the application through the stored download location.

承上所述,依本發明之網頁應用程式的版本管理與載入方法,其可具有下列一或多個特點:According to the above, the version management and loading method of the web application according to the present invention may have one or more of the following characteristics:

1、同一應用程式可為不同裝置開發不同版本,便於在各裝置上提供該應用程式之最佳使用體驗。1. The same application can develop different versions for different devices, so that the best experience of the application can be provided on each device.

2、裝置已下載應用程式部份檔案並在執行時,若此時更新該應用程式版本或更新該應用程式之系統框架,該裝置仍可繼續執行,不需重新載入,也不會因後來下載的應用程式檔案與舊版本衝突而造成執行錯誤。2. The device has downloaded the application part file and when it is executed, if the application version is updated or the application system framework is updated at this time, the device can continue to execute without reloading, and will not be later The downloaded application file conflicts with the old version and causes an execution error.

3、在裝置上利用應用程式版本資訊檔與該裝置之系統參數演算出適合該裝置使用之應用程式下載位置,減輕伺服器端運算負荷。3. Using the application version information file and the system parameters of the device on the device to calculate the download location of the application suitable for the device, thereby reducing the computing load on the server side.

4、若新版本出現問題時,只要修改文本(script)即可快速將版本導至可運作之版本,不用執行將程式檔案回復至前一版本的動作。4. If there is a problem with the new version, just modify the text to quickly import the version to the working version, without performing the action of reverting the program file to the previous version.

5、此文本(script)為靜態檔案,可被快取伺服器儲存,裝置在要求下載此檔案時可直接由快取伺服器回應,減少到達伺服器端的要求數量。5. The text (script) is a static file, which can be stored by the cache server. When the device requests to download the file, the device can directly respond to the cache server to reduce the number of requests to the server.

6、各版本之下載位置皆不同,因此不會因為在快取伺服器上到期的時間不同而導致裝置下載不同版本的檔案。6. The download locations of each version are different, so the device will not download different versions of files due to different expiration time on the cache server.

S11~S17、S21~S27、101~104、201~207‧‧‧步驟S11~S17, S21~S27, 101~104, 201~207‧‧‧ steps

301、401、404、601‧‧‧裝置301, 401, 404, 601‧‧‧ devices

302、602‧‧‧伺服器302, 602‧‧‧ server

303~305、603~605‧‧‧應用程式之目錄303~305, 603~605‧‧‧Application directory

306~309、606~609‧‧‧版本之目錄Directory of 306~309, 606~609‧‧‧

310、402、405‧‧‧版本判斷文本310, 402, 405‧‧‧ version judgment text

311、312、611、612‧‧‧檔案311, 312, 611, 612‧‧ files

313、613‧‧‧網頁應用程式系統框架313, 613‧‧‧ Web Application System Framework

314、616‧‧‧應用程式一314, 616‧‧‧Application One

315、617‧‧‧應用程式二315, 617‧‧‧Application 2

403、406‧‧‧下載位置403, 406‧‧‧ download location

610‧‧‧版本資訊檔610‧‧‧ version information file

614‧‧‧裝置偵測模組614‧‧‧Device Detection Module

615‧‧‧版本判斷模組615‧‧‧ version judgment module

第1圖 係為本發明之網頁應用程式的版本管理與載入方法之第一流程圖。Figure 1 is a first flow chart of the version management and loading method of the web application of the present invention.

第2圖 係為本發明之網頁應用程式的版本管理與載入方法之第二流程圖。Figure 2 is a second flow chart of the version management and loading method of the web application of the present invention.

第3圖 係為本發明之網頁應用程式的版本管理方法之流程圖。Figure 3 is a flow chart of the version management method of the web application of the present invention.

第4圖 係為本發明之網頁應用程式的版本載入方法之流程圖。Figure 4 is a flow chart showing the version loading method of the web application of the present invention.

第5圖 係為本發明之網頁應用程式的版本管理與載入方法之第一實施例之第一示意圖。Figure 5 is a first schematic diagram of a first embodiment of a version management and loading method for a web application of the present invention.

第6圖 係為本發明之網頁應用程式的版本管理與載入方法之第一實施例之第二示意圖。Figure 6 is a second schematic diagram of a first embodiment of a version management and loading method for a web application of the present invention.

第7圖 係為本發明之網頁應用程式的版本管理與載入方法之版本判斷文本之實施例之示意圖。Figure 7 is a schematic diagram showing an embodiment of a version judgment text of a version management and loading method of a web application of the present invention.

第8圖 係為本發明之網頁應用程式的版本管理與載入方法之第二實施例之第一示意圖。Figure 8 is a first schematic diagram of a second embodiment of a version management and loading method for a web application of the present invention.

第9圖 係為本發明之網頁應用程式的版本管理與載入方法之版本資訊檔之實施例之示意圖。Figure 9 is a schematic diagram showing an embodiment of a version information file of a version management and loading method of a web application of the present invention.

第10圖 係為本發明之網頁應用程式的版本管理與載入方法之版本判斷模組之實施例之示意圖。Figure 10 is a schematic diagram of an embodiment of a version judging module for version management and loading methods of a web application of the present invention.

為利 貴審查員瞭解本發明之技術特徵、內容與優點及其所能達成之功效,茲將本發明配合附圖,並以實施例之表達形式詳細說明如下,而其中所使用之圖式,其主旨僅為示意及輔助說明書之用,未必為本 發明實施後之真實比例與精準配置,故不應就所附之圖式的比例與配置關係解讀、侷限本發明於實際實施上的權利範圍,合先敘明。The technical features, contents, and advantages of the present invention, as well as the advantages thereof, can be understood by the present inventors, and the present invention will be described in detail with reference to the accompanying drawings. The subject matter is for illustrative purposes only and is intended to be used in the specification. The true proportions and precise configurations after the implementation of the invention are not to be construed as limiting the scope and configuration of the accompanying drawings, and limiting the scope of the invention in the actual implementation.

請參閱第1圖,其係為本發明之網頁應用程式的版本管理與載入方法之第一流程圖,其流程步驟為:步驟S11:透過一伺服器對每一應用程式及各應用程式之每一版本分別建立一下載位置,且對各應用程式分別設定一版本判斷文本。其中,當新增一個應用程式於伺服器時,伺服器係新增一個對應該應用程式之版本判斷文本並建立應用程式之下載位置。而當應用程式更新一個版本時,伺服器係對應修改該應用程式之版本判斷文本並建立一個對應該版本之下載位置。Please refer to FIG. 1 , which is a first flowchart of a version management and loading method for a web application according to the present invention. The process steps are: step S11: using a server for each application and each application. Each version establishes a download location, and a version judgment text is set for each application. Among them, when adding an application to the server, the server adds a version of the text corresponding to the version of the application and establishes the download location of the application. When the application updates a version, the server correspondingly modifies the version judgment text of the application and creates a download location corresponding to the version.

步驟S12:將各版本之所有檔案放置於相對應之下載位置。Step S12: Place all the files of each version in the corresponding download position.

步驟S13:當一裝置欲經由伺服器載入其中一個應用程式之檔案時,係檢查裝置中是否有儲存應用程式所對應之下載位置,若是,執行步驟S14,若否,則執行步驟S15。Step S13: When a device wants to load the file of one of the application programs via the server, it is checked whether there is a download location corresponding to the storage application, and if so, step S14 is performed, and if no, step S15 is performed.

步驟S14:裝置透過該下載位置載入應用程式之檔案。Step S14: The device loads the file of the application through the download location.

步驟S15:裝置經由伺服器下載該應用程式所對應之版本判斷文本。Step S15: The device downloads the version judgment text corresponding to the application via the server.

步驟S16:由裝置執行版本判斷文本,以依據裝置之系統參數判斷出裝置所可使用該應用程式的一個版本。Step S16: The version judgment text is executed by the device to determine, according to the system parameter of the device, a version of the application that can be used by the device.

步驟S17:裝置執行完版本判斷文本後,裝置由版本判斷文本執行結果取得可執行之應用程式版本下載位置,使裝置透過該下載位置來載入對應該版本之應用程式。其中,裝置將會儲存該下載位置,以供後續裝置欲下載該應用程式之檔案時,透過此次儲存之下載位置來進行該應用程式之載入。Step S17: After the device executes the version determination text, the device obtains the executable application version download location by the version determination text execution result, so that the device loads the corresponding version of the application through the download location. The device will store the download location for the subsequent device to download the application through the stored download location when the file is to be downloaded.

請參閱第2圖,其係為本發明之網頁應用程式的版本管理與載入方法之第二流程圖,其流程步驟為:步驟S21:透過一伺服器對每一應用程式及各應用程式之每一版本分別建立一下載位置,且對各應用程式分別設定一版本資訊檔。其中,當新增一個應用程式於伺服器時,伺服器係新增一個對應該應用程式 之版本資訊檔並建立該應用程式之下載位置。而當應用程式更新一個版本時,伺服器係對應修改該應用程式之版本資訊檔並建立一個對應該版本之下載位置。Please refer to FIG. 2 , which is a second flowchart of the version management and loading method of the web application of the present invention. The process steps are: step S21 : using a server for each application and each application. Each version establishes a download location, and a version information file is set for each application. Among them, when adding an application to the server, the server adds a corresponding application. The version of the information file and the download location of the application. When the application updates a version, the server correspondingly modifies the version information file of the application and creates a download location corresponding to the version.

步驟S22:將各版本之所有檔案放置於相對應之下載位置。Step S22: Place all the files of each version in the corresponding download position.

步驟S23:當一裝置欲經由伺服器載入其中一個應用程式之檔案時,係檢查裝置中是否有儲存應用程式所對應之下載位置,若是,執行步驟S24,若否,則執行步驟S25。Step S23: When a device wants to load the file of one of the applications via the server, it is checked whether there is a download location corresponding to the storage application, and if so, step S24 is performed, and if no, step S25 is performed.

步驟S24:裝置透過該下載位置載入應用程式之檔案。Step S24: The device loads the file of the application through the download location.

步驟S25:裝置經由伺服器下載該應用程式所對應之版本資訊檔。Step S25: The device downloads the version information file corresponding to the application via the server.

步驟S26:透過裝置之一裝置偵測模組偵測裝置之系統參數,並將偵測到之系統參數與版本資訊檔載入裝置之一版本判斷模組,並經由版本判斷模組依據裝置之系統參數與版本資訊判斷出裝置所可使用應用程式之其中一個版本。Step S26: detecting the system parameter of the module detecting device by using one of the devices, and loading the detected system parameter and the version information file into a version determining module of the device, and using the version determining module according to the device The system parameters and version information determine which version of the application is available to the device.

步驟S27:裝置執行完版本判斷模組後,裝置由版本判斷模組告知可執行之應用程式版本下載位置,使裝置透過該下載位置來載入對應該版本之應用程式。其中,裝置係儲存該下載位置,以供後續裝置欲下載該應用程式之檔案時,透過此次儲存之下載位置來進行該應用程式之載入。Step S27: After the device executes the version determination module, the device determines, by the version determination module, the executable application version download location, so that the device loads the application corresponding to the version through the download location. The device stores the download location for the subsequent device to download the application file through the stored download location.

請參閱第3圖,其係為本發明之網頁應用程式的版本管理方法之流程圖,其流程為:步驟101:為應用程式之一更新版本建立一下載位置。步驟102:將該版本的所有檔案放到該下載位置下。步驟103:修改該應用程式之版本判斷文本或版本資訊檔,讓可以使用此版本應用程式之裝置可在執行該版本判斷文本或版本資訊檔時取得此版本之下載位置。步驟104:完成該應用程式版本更新動作。其中,若是新增一個新的應用程式,伺服器則是新增一個對應該應用程式之版本判斷文本或版本資訊檔,並建立應用程式之下載位置。Please refer to FIG. 3, which is a flowchart of a version management method for a web application according to the present invention. The flow is: step 101: establishing a download location for one of the application updates. Step 102: Put all the files of the version under the download location. Step 103: Modify the version judgment text or version information file of the application, so that the device that can use the version application can obtain the download position of the version when executing the version judgment text or the version information file. Step 104: Complete the application version update action. Among them, if a new application is added, the server adds a version text or version information file corresponding to the application and establishes the download location of the application.

請參閱第4圖,其係為本發明之網頁應用程式的版本載入方法之流程圖,其流程為:步驟201:裝置欲載入某應用程式或其中檔案。步 驟202:檢查是否存有該應用程式的下載位置步驟,若有,執行步驟206,若無,執行步驟203。步驟203:裝置下載該應用程式之版本判斷文本或版本資訊檔,並於下載完成後執行版本判斷文本或執行版本判斷模組來讀取版本資訊檔。步驟204:版本判斷文本或版本判斷模組利用裝置傳入之參數或自行偵測裝置上的系統,演算裝置能使用之應用程式版本並回傳對應該版本之下載位置。步驟205:裝置儲存演算出的應用程式下載位置,之後裝置皆使用儲存的下載位置下載該應用程式檔案。步驟206:使用該下載位置下載應用程式檔案。步驟207:完成應用程式檔案下載。Please refer to FIG. 4, which is a flowchart of a method for loading a version of a web application according to the present invention. The flow is: step 201: the device wants to load an application or a file therein. step Step 202: Check if there is a download location step of the application, if yes, go to step 206, if no, go to step 203. Step 203: The device downloads the version judgment text or the version information file of the application, and executes the version judgment text or executes the version judgment module to read the version information file after the download is completed. Step 204: The version determination text or version determination module uses the parameters passed in by the device or the system on the self-detection device, and the calculation device can use the application version and return the download position corresponding to the version. Step 205: The device stores the calculated application download location, and then the device downloads the application file using the stored download location. Step 206: Download the application file using the download location. Step 207: Complete the application file download.

請參閱第5圖,其係為係為本發明之網頁應用程式的版本管理與載入方法之第一實施例之示意圖。圖中,裝置301為一用戶端,可為個人電腦(PC)、智慧型手機(如:iPhone),但不以此為限。伺服器302可用以放置應用程式,於圖中元件符號303、304、305係為不同應用程式之目錄,而元件符號306、307、308、309係為應用程式主選單(MainMenu)之不同版本之目錄,元件符號310為應用程式MainMenu之版本判斷文本,元件符號311、312為應用程式MainMenu之支援高畫質影像格式(full HD svg)的版本目錄下之檔案。另外,元件符號313為網頁應用程式系統框架,元件符號314、315為裝置301上已載入之應用程式一及二,並於網頁應用程式系統框架313上執行。Please refer to FIG. 5, which is a schematic diagram of a first embodiment of a version management and loading method for a web application of the present invention. In the figure, the device 301 is a user terminal, which can be a personal computer (PC) or a smart phone (eg, an iPhone), but is not limited thereto. The server 302 can be used to place an application. In the figure, the component symbols 303, 304, and 305 are directories of different applications, and the component symbols 306, 307, 308, and 309 are different versions of the main menu of the application (MainMenu). The directory, component symbol 310 is the version determination text of the application MainMenu, and the component symbols 311, 312 are the files in the version directory of the application MainMenu supporting the high-definition video format (full HD svg). In addition, the component symbol 313 is a web application system framework, and the component symbols 314 and 315 are the application programs 1 and 2 loaded on the device 301, and are executed on the web application system framework 313.

當裝置301欲下載應用程式MainMenu之檔案時,先檢查是否有儲存應用程式MainMenu之下載位置,若無,則先下載應用程式MainMenu的版本判斷文本310,下載完畢後於裝置301上執行,並傳入包含系統版本等系統參數,如第6圖所示。其中,元件符號401與404各代表不同的裝置,元件符號402、405為應用程式MainMenu的版本判斷文本,而元件符號403與406為執行後所回傳的下載位置。另外,可參閱第7圖,其為一版本判斷文本的實施例。When the device 301 wants to download the file of the application MainMenu, it first checks whether the download location of the application MainMenu is stored. If not, the version judgment text 310 of the application MainMenu is downloaded first, and then executed on the device 301 after the download is completed, and transmitted. Enter system parameters such as the system version, as shown in Figure 6. Wherein, the component symbols 401 and 404 each represent a different device, the component symbols 402, 405 are the version determination text of the application MainMenu, and the component symbols 403 and 406 are the download locations returned after execution. In addition, reference can be made to Fig. 7, which is an embodiment of a version judgment text.

假設裝置301為PC,在執行如第7圖所示之版本判斷文本時會傳入如元件符號401中所列之系統參數,而裝置301所下載的版本判斷文本依據這些系統參數,計算出裝置301可使用應用程式MainMenu之版本為20130630_svg_FHD,因此回傳此版本在伺服器上之下載位置403,也就是 "/MainMenu/20130630_svg_FHD"。爾後裝置301會將此下載位置403儲存起來,之後下載應用程式MainMenu之任何檔案時皆使用此下載位置403來進行下載。Assuming that the device 301 is a PC, the system parameters listed in the component symbol 401 are transmitted when the version determination text as shown in FIG. 7 is executed, and the version determination text downloaded by the device 301 calculates the device according to the system parameters. 301 can use the application MainMenu version is 20130630_svg_FHD, so return this version on the server to download location 403, which is "/MainMenu/20130630_svg_FHD". The download device 301 will store the download location 403, and then download the download location 403 for downloading any file of the application MainMenu.

請參閱第8圖,其係為本發明之網頁應用程式的版本管理與載入方法之第二實施例之第一示意圖。如圖所示,元件符號601為一裝置;元件符號602為放置應用程式之伺服器;元件符號603、604、605為不同應用程式之目錄;元件符號606、607、608、609為應用程式MainMenu之不同版本之目錄;元件符號610為應用程式MainMenu之版本資訊檔;元件符號611、612為應用程式MainMenu之full HD svg版本目錄下的檔案;元件符號613為網頁應用程式系統框架;元件符號614、615分別為網頁應用程式系統框架613中的裝置偵測模組與版本判斷模組;元件符號616、617為裝置上已載入之應用程式一及二,並於網頁應用程式系統框架613上執行。Please refer to FIG. 8 , which is a first schematic diagram of a second embodiment of a version management and loading method for a web application of the present invention. As shown, component symbol 601 is a device; component symbol 602 is a server for placing an application; component symbols 603, 604, 605 are directories for different applications; component symbols 606, 607, 608, 609 are applications MainMenu. The different versions of the directory; the component symbol 610 is the version information file of the application MainMenu; the component symbols 611, 612 are the files in the full HD svg version directory of the application MainMenu; the component symbol 613 is the web application system framework; the component symbol 614 615 is a device detection module and a version determination module in the web application system framework 613; the component symbols 616 and 617 are the application programs 1 and 2 loaded on the device, and are displayed on the web application system framework 613. carried out.

裝置601欲下載應用程式MainMenu之檔案時,先檢查是否有儲存應用程式MainMenu之下載位置,若無則先下載應用程式MainMenu的版本資訊檔610,裝置601下載完畢後執行裝置上的版本判斷模組615並導入由裝置偵測模組614所偵測之系統資訊與所下載的應用程式MainMenu之版本資訊檔610,計算出該裝置601能夠使用之應用程式MainMenu之版本。假設裝置601為iPhone4,下載之應用程式MainMenu之版本資訊檔610可如第9圖所示。下載完畢後,用以讀取版本資訊檔610之版本判斷模組615則如第10圖所示。當傳入系統資訊與下載的應用程式MainMenu之版本資訊檔610後,版本判斷模組615係判斷裝置601能夠使用的版本為"20130514_html5_SD",因此回傳之下載位置為"/MainMenu/20130514_html5_SD",再由裝置601將此下載位置儲存起來,之後下載應用程式MainMenu之任何檔案皆使用此下載位置下載。When the device 601 wants to download the file of the application MainMenu, it first checks whether the download location of the application MainMenu is stored. If not, the version information file 610 of the application MainMenu is downloaded first, and the version judgment module on the device is executed after the device 601 is downloaded. 615 and importing the system information detected by the device detection module 614 and the version information file 610 of the downloaded application MainMenu to calculate the version of the application MainMenu that the device 601 can use. Assuming device 601 is iPhone 4, the version information file 610 of the downloaded application MainMenu can be as shown in FIG. After the download is completed, the version judging module 615 for reading the version information file 610 is as shown in FIG. After the system information and the version information 610 of the downloaded application MainMenu are transmitted, the version determination module 615 determines that the version that the device 601 can use is "20130514_html5_SD", so the download position of the return is "/MainMenu/20130514_html5_SD". The download location is then stored by device 601, and any file downloaded from the application MainMenu is then downloaded using this download location.

綜合上述,本發明之網頁應用程式的版本管理與載入方法,可將各版本網頁應用程式用獨立下載位置區分,裝置於下載應用程式檔案時皆使用同一下載位置下載,解決可能因伺服器應用程式版本更新所造成下載之應用程式檔案版本不同所造成的錯誤。另一方面藉由版本判斷文本,使得多種裝置可使用同一應用程式之不同版本,讓使用者具有最佳的 操作體驗。最後利用靜態檔案可直接由快取伺服器回應的特性,將版本判斷運算交由裝置上執行,當有大量裝置同時存取時,此方法可有效減少伺服器所要處理的要求數量與判斷運算,增進伺服器效能。In summary, the version management and loading method of the web application of the present invention can distinguish each version of the web application by an independent download location, and the device downloads the application file using the same download location to solve the possible application problem. The program version update caused an error caused by a different version of the downloaded application file. On the other hand, by using the version to judge the text, multiple devices can use different versions of the same application, so that the user has the best Operating experience. Finally, the static file can directly respond to the characteristics of the cache server, and the version judgment operation is executed by the device. When a large number of devices access the device at the same time, the method can effectively reduce the number of requests and the judgment operation to be processed by the server. Improve server performance.

以上所述僅為舉例性,而非為限制性者。任何未脫離本發明之精神與範疇,而對其進行之等效修改或變更,均應包含於後附之申請專利範圍中。The above is intended to be illustrative only and not limiting. Any equivalent modifications or alterations to the spirit and scope of the invention are intended to be included in the scope of the appended claims.

S11~S17‧‧‧步驟S11~S17‧‧‧Steps

Claims (11)

一種網頁應用程式的版本管理與載入方法,其包含下列步驟:(A)透過一伺服器對每一應用程式及各該應用程式之每一版本分別建立一下載位置,且對各該應用程式分別設定一版本判斷文本;(B)將各該版本之所有檔案放置於相對應之該下載位置;(C)當一裝置欲經由該伺服器載入其中一個該應用程式之檔案時,係檢查該裝置中是否有儲存該應用程式所對應之該下載位置,若有,該裝置透過該下載位置載入該應用程式之檔案,若無,則執行步驟(D);(D)該裝置經由該伺服器下載該應用程式所對應之該版本判斷文本;(E)由該裝置執行該版本判斷文本,以依據該裝置之系統參數判斷出該裝置所可使用該應用程式之其中一個該版本;以及(F)該裝置執行完該版本判斷文本後,該裝置由該版本判斷文本內容取得可執行之該應用程式版本之該下載位置,使該裝置透過該下載位置來載入對應該版本之該應用程式。A version management and loading method for a web application, comprising the following steps: (A) establishing a download location for each application and each version of each application through a server, and for each application Setting a version judgment text separately; (B) placing all files of each version in the corresponding download position; (C) checking when a device wants to load one of the application files via the server Whether the device stores the download location corresponding to the application, and if so, the device loads the file of the application through the download location, if not, performs step (D); (D) the device passes the The server downloads the version determination text corresponding to the application; (E) executing, by the device, the version determination text to determine, according to the system parameter of the device, the version of the application that the device can use; (F) after the device executes the version determination text, the device determines, by the version, the text content to obtain the download location of the executable application version, so that the device transmits the Load position to load the version of the application to be. 如申請專利範圍第1項所述之網頁應用程式的版本管理與載入方法,其中當新增一個該應用程式於該伺服器時,該伺服器係新增一個對應該應用程式之該版本判斷文本並建立該應用程式之該下載位置。The version management and loading method of the web application as described in claim 1, wherein when the application is added to the server, the server adds a new version of the application corresponding to the application. Text and create the download location for the app. 如申請專利範圍第1項所述之網頁應用程式的版本管理與載入方法,其中當該應用程式更新一個該版本時,該伺服器係對應修改該應用程式之該版本判斷文本並建立一個對應該版本之該下載位置。The version management and loading method of the web application according to claim 1, wherein when the application updates a version, the server correspondingly modifies the version of the application to determine the text and establish a pair The download location should be the version. 如申請專利範圍第1項所述之網頁應用程式的版本管理與載入方法,其中(F)步驟中更包含:經由該裝置儲存該下載位置,以供後續該裝置欲下載該應用程式之檔案時,透過此次儲存之該下載位置來進行該應用程式之載入。The method for managing and loading a webpage application according to claim 1, wherein the step (F) further comprises: storing the download location via the device, for subsequent downloading of the application file by the device; The application is loaded by the download location of the store. 一種網頁應用程式的版本管理與載入方法,其包含下列步驟:(A)透過一伺服器對每一應用程式及各該應用程式之每一版本分別建立一下載位置,且對各該應用程式分別設定一版本資訊檔;(B)將各該版本之所有檔案放置於相對應之該下載位置;(C)當一裝置欲經由該伺服器載入其中一個該應用程式之檔案時,係檢查該裝置中是否有儲存該應用程式所對應之該下載位置,若有,該 裝置透過該下載位置載入該應用程式之檔案,若無,則執行步驟(D);(D)該裝置經由該伺服器下載該應用程式所對應之該版本資訊檔;(E)透過該裝置之一裝置偵測模組偵測該裝置之系統參數,並將偵測到之系統參數與該版本資訊檔載入該裝置之一版本判斷模組,並經由該版本判斷模組依據該裝置之系統參數與版本資訊判斷出該裝置所可使用該應用程式之其中一個該版本;以及(F)該裝置執行完該版本判斷模組後,該版本判斷模組告知裝置可執行之該應用程式版本之該下載位置,使該裝置透過該下載位置來載入對應該版本之該應用程式。A version management and loading method for a web application, comprising the following steps: (A) establishing a download location for each application and each version of each application through a server, and for each application Setting a version information file separately; (B) placing all files of each version in the corresponding download location; (C) checking when a device wants to load one of the application files via the server Whether the download location corresponding to the application is stored in the device, and if so, The device loads the file of the application through the download location, if not, performs step (D); (D) the device downloads the version information file corresponding to the application via the server; (E) through the device A device detection module detects system parameters of the device, and loads the detected system parameters and the version information file into a version determination module of the device, and determines, according to the device, the module according to the device The system parameter and the version information determine that the device is capable of using one of the versions of the application; and (F) after the device executes the version determination module, the version determination module informs the device that the application version is executable The download location causes the device to load the corresponding version of the application through the download location. 如申請專利範圍第5項所述之網頁應用程式的版本管理與載入方法,其中當新增一個該應用程式於該伺服器時,該伺服器係新增一個對應該應用程式之該版本資訊檔並建立該應用程式之該下載位置。The version management and loading method of the web application as described in claim 5, wherein when the application is added to the server, the server adds a version information corresponding to the application. File and create the download location for the application. 如申請專利範圍第5項所述之網頁應用程式的版本管理與載入方法,其中當該應用程式更新一個該版本時,該伺服器係對應修改該應用程式之該版本資訊檔並建立一個對應該版本之該下載位置。The version management and loading method of the web application according to claim 5, wherein when the application updates a version, the server correspondingly modifies the version information file of the application and establishes a pair The download location should be the version. 如申請專利範圍第5項所述之網頁應用程式的版本管理與載入方法,其中(F)步驟中更包含:經由該裝置儲存該下載位置,以供後續該裝置欲下載該應用程式之檔案時,透過此次儲存之該下載位置來進行該應用程式之載入。The method for managing and loading a webpage application according to claim 5, wherein the step (F) further comprises: storing the download location via the device, for subsequent downloading of the application file by the device; The application is loaded by the download location of the store. 一種網頁應用程式之版本管理方法,其包含下列步驟:透過一伺服器對每一應用程式及各該應用程式之每一版本分別建立一下載位置,且對各該應用程式分別設定一版本判斷文本或一版本資訊檔;將各該版本之所有檔案放置於相對應之該下載位置;其中,當新增一個該應用程式於該伺服器時,該伺服器係新增一個對應該應用程式之該版本判斷文本或該版本資訊檔,並建立該應用程式之該下載位置;以及當該應用程式更新一個該版本時,該伺服器係對應修改該應用程式之該版本判斷文本或該版本資訊檔,並建立一個對應該版本之該下載位置。A version management method for a web application includes the steps of: establishing a download location for each application and each version of each application through a server, and setting a version judgment text for each application; Or a version of the information file; all files of each version are placed in the corresponding download location; wherein when the application is added to the server, the server adds a corresponding application a version determination text or a version information file, and establishing the download location of the application; and when the application updates a version, the server correspondingly modifies the version judgment text or the version information file of the application, And create a download location for the corresponding version. 一種網頁應用程式之版本載入方法,係提供一裝置載入如申請專利範圍 第9項所述之某一該版本之該應用程式,該方法包含下列步驟:(A)當該裝置欲經由該伺服器載入其中一個該應用程式之檔案時,係檢查該裝置中是否有儲存該應用程式所對應之該下載位置,若有,該裝置透過該下載位置載入該應用程式之檔案,若無,則執行步驟(B);(B)該裝置經由該伺服器下載該應用程式所對應之該版本判斷文本或該版本資訊檔;(C)由該裝置執行該版本判斷文本或呼叫該版本判斷模組讀取版本資訊檔,依據該裝置之系統參數判斷出該裝置所可使用該應用程式之其中一個該版本;以及(D)裝置執行完版本判斷文本或執行完版本判斷模組後,由版本判斷文本或版本判斷模組告知裝置可執行之應用程式版本下載位置,使該裝置透過該下載位置來載入對應該版本之該應用程式。A version loading method for a web application, which provides a device loading as claimed The application of the version of the version 9 of the method, the method comprising the steps of: (A) when the device is to load a file of the application via the server, checking whether the device has Storing the download location corresponding to the application, and if so, the device loads the file of the application through the download location, if not, executing step (B); (B) the device downloads the application via the server The version judgment text or the version information file corresponding to the program; (C) executing the version judgment text by the device or calling the version judgment module to read the version information file, and determining the device according to the system parameter of the device Using one of the versions of the application; and (D) the device executing the version determination text or executing the version determination module, the version determination text or the version determination module notifying the device of the executable version of the application download location The device loads the corresponding version of the application through the download location. 如申請專利範圍第10項所述之網頁應用程式之版本載入方法,其中(D)步驟中更包含:經由該裝置儲存該下載位置,以供後續該裝置欲下載該應用程式之檔案時,透過此次儲存之該下載位置來進行該應用程式之載入。The method for loading a webpage application according to claim 10, wherein the step (D) further comprises: storing the download location via the device, for subsequent downloading of the application file by the device, The application is loaded by the download location of the store.
TW103101364A 2014-01-15 2014-01-15 Web application versioning and loading method TWI507984B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103101364A TWI507984B (en) 2014-01-15 2014-01-15 Web application versioning and loading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103101364A TWI507984B (en) 2014-01-15 2014-01-15 Web application versioning and loading method

Publications (2)

Publication Number Publication Date
TW201528137A TW201528137A (en) 2015-07-16
TWI507984B true TWI507984B (en) 2015-11-11

Family

ID=54198312

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103101364A TWI507984B (en) 2014-01-15 2014-01-15 Web application versioning and loading method

Country Status (1)

Country Link
TW (1) TWI507984B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070116036A1 (en) * 2005-02-01 2007-05-24 Moore James F Patient records using syndicated video feeds
US20070198291A1 (en) * 2002-09-30 2007-08-23 Sap Aktiengesellschaft XML instrumentation interface for tree-based monitoring architecture
TW200933412A (en) * 2008-01-25 2009-08-01 Inventec Corp Data structure, displaying method and data storage method for personalized webpage
TW201324322A (en) * 2011-09-26 2013-06-16 Intel Corp Simulation of web applications and secondary devices in a web browser, web application development tools, and methods using the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070198291A1 (en) * 2002-09-30 2007-08-23 Sap Aktiengesellschaft XML instrumentation interface for tree-based monitoring architecture
US20070116036A1 (en) * 2005-02-01 2007-05-24 Moore James F Patient records using syndicated video feeds
TW200933412A (en) * 2008-01-25 2009-08-01 Inventec Corp Data structure, displaying method and data storage method for personalized webpage
TW201324322A (en) * 2011-09-26 2013-06-16 Intel Corp Simulation of web applications and secondary devices in a web browser, web application development tools, and methods using the same

Also Published As

Publication number Publication date
TW201528137A (en) 2015-07-16

Similar Documents

Publication Publication Date Title
US8656265B1 (en) Low-latency transition into embedded web view
JP6797877B2 (en) How to implement web applications, devices, servers, and systems
CN109313661B (en) Web page acceleration for hosted web applications in native mobile applications
CN106445583B (en) Page display method, equipment and system
WO2015074467A1 (en) Data update method, apparatus, and system and storage medium
US8589862B2 (en) Application loading
US9519654B2 (en) Method, device, processing center and system for desktop synchronization
US8825817B1 (en) Using a template to update a stack of resources
AU2014207730B2 (en) Systems and methods for building and using hybrid mobile applications
WO2016177341A1 (en) Interface calling method and device, and terminal
US20150012924A1 (en) Method and Device for Loading a Plug-In
CN106569856B (en) A kind of loading method and device of application view resource file
WO2015030972A1 (en) Redirecting local storage to cloud storage
US20130311613A1 (en) Updating Web Resources
US9178746B2 (en) Browser-based fetch of external libraries
CN105138376A (en) Mixed model application, webpage resource upgrading method thereof, mobile terminal and system
CN107291481B (en) Component updating method, device and system
US20160371172A1 (en) Techniques for evaluating applications through use of an auxiliary application
CN110764805A (en) Method, device, terminal and storage medium for noninductive upgrade of client
CN106293790B (en) application program upgrading method and device based on Firefox operating system
CN105955980B (en) File downloading device and method
US10997269B1 (en) Using web application components with different web application frameworks in a web application
CN106569841B (en) File loading method and device
TWI517045B (en) JAVA cluster application system code loading and upgrading devices and methods
TWI507984B (en) Web application versioning and loading method