TW201947395A - Page processing method, apparatus, and device - Google Patents

Page processing method, apparatus, and device Download PDF

Info

Publication number
TW201947395A
TW201947395A TW108105618A TW108105618A TW201947395A TW 201947395 A TW201947395 A TW 201947395A TW 108105618 A TW108105618 A TW 108105618A TW 108105618 A TW108105618 A TW 108105618A TW 201947395 A TW201947395 A TW 201947395A
Authority
TW
Taiwan
Prior art keywords
page
control item
typesetting
target
target page
Prior art date
Application number
TW108105618A
Other languages
Chinese (zh)
Other versions
TWI695320B (en
Inventor
方毓偈
章海濱
翁麟
Original Assignee
香港商阿里巴巴集團服務有限公司
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 香港商阿里巴巴集團服務有限公司 filed Critical 香港商阿里巴巴集團服務有限公司
Publication of TW201947395A publication Critical patent/TW201947395A/en
Application granted granted Critical
Publication of TWI695320B publication Critical patent/TWI695320B/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

Disclosed are a page processing method, apparatus, and device. The method is applied to a target page which is developed on the basis of hypertext markup language, and comprises: obtaining the type of a first control in a target user interface and layout information of the first control in the user interface; then generating, according to the type and the layout information of the first control, a layout instruction set of a second control corresponding to the type in a target page, the second control being a control which is pre-stored and can be fused in the target page; and executing the layout instructions in the layout instruction set and performing layout processing and rendering processing on the second control in the target page to obtain a target page fused with the second control.

Description

頁面處理方法、裝置及設備Page processing method, device and equipment

本說明書係關於電腦技術領域,尤其關於一種頁面處理方法、裝置及設備。This manual relates to the field of computer technology, and more particularly to a method, device, and device for page processing.

基於超文件標示語言開發的頁面中可以包括較多較複雜的元素,例如地圖等,如果透過該頁面顯示地圖,但使用者可能很難透過手指觸控的方式對該頁面中的地圖進行縮放。而終端設備(如手機)中的使用者介面通常是由一個或多個控制項構成的,不同的控制項可以實現不同的功能,如地圖控制項,使用者可以透過手指觸控的方式,將地圖控制項中的地圖進行隨意放大或縮小。
為了提高目標頁面的觸控操作的體驗和目標頁面的轉列效率,通常,可以透過將終端設備的作業系統的原生使用者介面中的控制項覆蓋到上述目標頁面中的Webview控制項上。但是,透過上述覆蓋的方式得到的目標頁面,需要限制目標頁面不能夠進行縮放,而只能夠保持控制項原來的樣式不變,從而給使用者的使用帶來困擾,使用者體驗較差,因此,需要提供一種可以融合目標使用者介面中的控制項的基於超文件標示語言開發的頁面,並且,其中的控制項可隨著頁面的縮放而進行縮放的技術方案。
A page developed based on a hyper-file markup language may include more complicated elements, such as a map. If a map is displayed through the page, it may be difficult for a user to zoom in or out on the map on the page by touching the finger. The user interface in a terminal device (such as a mobile phone) is usually composed of one or more controls. Different controls can implement different functions, such as map controls. The user can touch the Zoom in or out on the map in the map control.
In order to improve the touch operation experience of the target page and the conversion efficiency of the target page, usually, the control items in the native user interface of the operating system of the terminal device can be used to cover the Webview control items in the target page. However, the target page obtained through the above overlay method needs to restrict the target page from being able to be scaled, but can only keep the original style of the control unchanged, which will cause confusion to the user and result in a poor user experience. Therefore, There is a need to provide a technical solution based on a hyperfile markup language that can incorporate control items in a target user interface, and wherein the control items can be scaled as the page is scaled.

本說明書實施例的目的是提供一種頁面處理方法、裝置及設備,以提供一種可以融合目標使用者介面中的控制項的基於超文件標示語言開發的頁面,並且,其中的控制項可隨著頁面的縮放而進行縮放的技術方案。
為了實現上述技術方案,本說明書實施例是這樣實現的:
本說明書實施例提供的一種頁面處理方法,所述方法應用於目標頁面,所述目標頁面基於超文件標示語言開發,包括:
獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊;
根據所述第一控制項的類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;
執行所述排版指令集中的排版指令,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面。
可選地,所述獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述使用者介面中的排版資訊,包括:
呼叫預設的程式設計介面,獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述使用者介面中的排版資訊。
可選地,所述方法還包括:
接收對所述目標頁面中的所述第二控制項的管理指令,所述管理指令包括刪除指令和狀態修改指令;
根據所述管理指令,對所述目標頁面中的所述第二控制項執行相應的操作。
本說明書實施例提供的一種頁面處理方法,所述方法應用於目標頁面,所述目標頁面基於超文件標示語言開發,所述目標頁面中包括全域初始化模組,包括:
呼叫所述全域初始化模組,以獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊,並根據所述類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;
接收所述全域初始化模組發送的所述排版指令集;
解析所述排版指令集中的排版指令,得到解析後的排版指令;
創建頁面轉列模組,並將所述解析後的排版指令發送給所述頁面轉列模組,以使所述頁面轉列模組根據所述解析後的排版指令得到融合有所述第二控制項的目標頁面。
可選地,所述呼叫所述全域初始化模組,包括:
接收所述全域初始化模組發送的程式設計介面呼叫指令;
呼叫所述全域初始化模組。
可選地,所述創建頁面轉列模組之後,所述方法還包括:
創建所述頁面轉列模組的生命週期;
當接收到所述全域初始化模組發送的所述生命週期不可見的通知消息時,將所述頁面轉列模組的生命週期設置為不可見狀態;
當接收到所述全域初始化模組發送的所述生命週期恢復可見的通知消息時,將所述頁面轉列模組的生命週期設置為可見狀態。
可選地,所述方法還包括:
當接收到所述全域初始化模組發送的所述第二控制項被移除或所述目標頁面被銷毀的通知消息時,銷毀所述頁面轉列模組的生命週期;
呼叫所述頁面轉列模組釋放並回收所述第二控制項。
本說明書實施例提供的一種頁面處理方法,所述方法應用於目標頁面,所述目標頁面基於超文件標示語言開發,所述目標頁面中包括頁面管理模組,包括:
向所述頁面管理模組發送程式設計介面呼叫指令;
根據所述頁面管理模組的呼叫指示,獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊,並根據所述類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;
向所述頁面管理模組發送所述排版指令集。
本說明書實施例提供的一種頁面處理方法,所述方法應用於目標頁面,所述目標頁面基於超文件標示語言開發,所述目標頁面中包括頁面管理模組和全域初始化模組,包括:
接收所述頁面管理模組發送的排版指令,所述排版指令是所述頁面管理模組對所述全域初始化模組產生並發送的所述目標頁面的排版指令集進行解析後得到;
執行所述排版指令,從預先儲存的控制項庫中獲取所述排版指令對應的第二控制項,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面,所述第二控制項是目標使用者介面中的第一控制項的類型對應的控制項。
可選地,所述方法還包括:
根據所述頁面轉列模組的呼叫指示,在所述全域初始化模組檢測到所述第二控制項被移除或所述目標頁面被銷毀時,釋放並回收所述第二控制項。
本說明書實施例提供的一種頁面處理裝置,所述裝置中包括目標頁面,所述目標頁面基於超文件標示語言開發,包括:
資訊獲取模組,用於獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊;
排版指令產生模組,用於根據所述第一控制項的類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;
處理模組,用於執行所述排版指令集中的排版指令,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面。
可選地,所述資訊獲取模組,用於呼叫預設的程式設計介面,獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述使用者介面中的排版資訊。
可選地,所述裝置還包括:
指令接收模組,用於接收對所述目標頁面中的所述第二控制項的管理指令,所述管理指令包括刪除指令和狀態修改指令;
指令執行模組,用於根據所述管理指令,對所述目標頁面中的所述第二控制項執行相應的操作。
本說明書實施例提供的一種頁面處理裝置中的頁面管理模組,所述頁面管理模組設置於目標頁面中,所述目標頁面基於超文件標示語言開發,所述目標頁面中還包括全域初始化模組,包括:
第一呼叫單元,用於呼叫所述全域初始化模組,以獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊,並根據所述類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;
指令集接收單元,用於接收所述全域初始化模組發送的所述排版指令集;
解析單元,用於解析所述排版指令集中的排版指令,得到解析後的排版指令;
指令發送單元,用於創建頁面轉列模組,並將所述解析後的排版指令發送給所述頁面轉列模組,以使所述頁面轉列模組根據所述解析後的排版指令得到融合有所述第二控制項的目標頁面。
可選地,所述第一呼叫單元,包括:
指令接收子單元,用於接收所述全域初始化模組發送的程式設計介面呼叫指令;
呼叫子單元,用於呼叫所述全域初始化模組。
可選地,所述頁面管理模組還包括:
生命週期創建單元,用於創建所述頁面轉列模組的生命週期;
第一設置單元,用於當接收到所述全域初始化模組發送的所述生命週期不可見的通知消息時,將所述頁面轉列模組的生命週期設置為不可見狀態;
第二設置單元,用於當接收到所述全域初始化模組發送的所述生命週期恢復可見的通知消息時,將所述頁面轉列模組的生命週期設置為可見狀態。
可選地,所述頁面管理模組還包括:
銷毀單元,用於當接收到所述全域初始化模組發送的所述第二控制項被移除或所述目標頁面被銷毀的通知消息時,銷毀所述頁面轉列模組的生命週期;
第二呼叫單元,用於呼叫所述頁面轉列模組釋放並回收所述第二控制項。
本說明書實施例提供的一種頁面處理裝置中的全域初始化模組,所述全域初始化模組設置於目標頁面中,所述目標頁面基於超文件標示語言開發,所述目標頁面中還包括頁面管理模組,包括:
指令發送單元,用於向所述頁面管理模組發送程式設計介面呼叫指令;
資訊獲取單元,用於根據所述頁面管理模組的呼叫指示,獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊,並根據所述類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;
指令集發送單元,用於向所述頁面管理模組發送所述排版指令集。
本說明書實施例提供的一種頁面處理裝置,頁面處理裝置中的頁面轉列模組,所述頁面轉列模組設置於目標頁面中,所述目標頁面基於超文件標示語言開發,所述目標頁面中還包括頁面管理模組和全域初始化模組,包括:
指令接收單元,用於接收所述頁面管理模組發送的排版指令,所述排版指令是所述頁面管理模組對所述全域初始化模組產生並發送的所述目標頁面的排版指令集進行解析後得到;
指令執行單元,用於執行所述排版指令,從預先儲存的控制項庫中獲取所述排版指令對應的第二控制項,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面,所述第二控制項是目標使用者介面中的第一控制項的類型對應的控制項。
可選地,所述頁面轉列模組還包括:
控制項釋放單元,用於根據所述頁面轉列模組的呼叫指示,在所述全域初始化模組檢測到所述第二控制項被移除或所述目標頁面被銷毀時,釋放並回收所述第二控制項。
本說明書實施例提供的一種頁面處理設備,所述頁面處理設備包括目標頁面,所述目標頁面基於超文件標示語言開發,包括:
處理器;以及
被安排成儲存電腦可執行指令的記憶體,所述可執行指令在被執行時使所述處理器:
獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊;
根據所述第一控制項的類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;
執行所述排版指令集中的排版指令,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面。
由以上本說明書實施例提供的技術方案可見,本說明書實施例應用於目標頁面,該目標頁面基於超文件標示語言開發,透過獲取的目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項,執行該排版指令集中的排版指令,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面,這樣,將終端設備的作業系統中原生使用者介面(即目標使用者介面)控制項作為目標頁面中顯示控制項的子顯示控制項添加到目標頁面(即基於超文件標示語言開發的頁面)中,而不是將終端設備的作業系統中原生使用者介面控制項簡單覆蓋在目標頁面上,從而達到了將目標使用者介面的控制項融合到目標頁面的效果,使得融合在目標頁面中的第二控制項可以隨著目標頁面進行縮放,提高了使用者體驗。
The purpose of the embodiments of the present specification is to provide a method, device, and device for processing a page, so as to provide a page developed based on a hyperdocument markup language that can incorporate controls in a target user interface. Technical solution for scaling.
In order to implement the above technical solution, the embodiments of the present specification are implemented as follows:
A method for processing a page provided in the embodiment of the present specification, the method is applied to a target page, and the target page is developed based on a hyperfile markup language and includes:
Obtaining the type of the first control item in the target user interface, and typesetting information of the first control item in the target user interface;
According to the type of the first control item and the typesetting information, a typesetting instruction set of the second control item corresponding to the type in the target page is generated. The second control item is stored in advance and can be integrated in the A control item in the target page;
The typesetting instruction in the typesetting instruction set is executed, and the second control item is subjected to typesetting processing and transposition processing in the target page to obtain a target page fused with the second control item.
Optionally, the obtaining the type of the first control item in the target user interface and the typesetting information of the first control item in the user interface includes:
The preset programming interface is called to obtain the type of the first control item in the target user interface and the typesetting information of the first control item in the user interface.
Optionally, the method further includes:
Receiving a management instruction for the second control item in the target page, the management instruction includes a delete instruction and a status modification instruction;
Performing a corresponding operation on the second control item in the target page according to the management instruction.
A method for processing a page provided in the embodiment of the present specification, the method is applied to a target page, the target page is developed based on a hyperfile markup language, and the target page includes a global initialization module, including:
Calling the global initialization module to obtain the type of the first control item in the target user interface, and the typesetting information of the first control item in the target user interface, and according to the type and the Typesetting information, generating a typesetting instruction set of the second control item corresponding to the type in the target page, the second control item is a control item that is stored in advance and can be fused in the target page;
Receiving the typesetting instruction set sent by the global initialization module;
Parse the typesetting instructions in the typesetting instruction set to obtain the parsed typesetting instructions;
Create a page transposition module, and send the parsed typesetting instruction to the page transposition module, so that the page transposition module is fused with the second according to the parsed typesetting instruction The target page of the control.
Optionally, the calling the global initialization module includes:
Receiving a programming interface call instruction sent by the global initialization module;
Call the global initialization module.
Optionally, after the page transposition module is created, the method further includes:
Creating a life cycle of the page transfer module;
When the notification message of the life cycle invisible sent by the global initialization module is received, setting the life cycle of the page conversion module to an invisible state;
When receiving the notification message that the life cycle recovery is sent by the global initialization module, the life cycle of the page transfer module is set to a visible state.
Optionally, the method further includes:
When receiving the notification message that the second control item is removed or the target page is destroyed sent by the global initialization module, destroying the life cycle of the page transfer module;
Call the page transfer module to release and recycle the second control item.
A method for processing a page provided in an embodiment of the present specification, the method is applied to a target page, the target page is developed based on a hyperfile markup language, and the target page includes a page management module, including:
Sending a programming interface call instruction to the page management module;
Obtaining the type of the first control item in the target user interface and the typesetting information of the first control item in the target user interface according to the call instruction of the page management module, and according to the type and The typesetting information generates a typesetting instruction set of a second control item corresponding to the type on the target page, where the second control item is a control item that is stored in advance and can be fused in the target page;
Sending the typesetting instruction set to the page management module.
An embodiment of this specification provides a page processing method. The method is applied to a target page. The target page is developed based on a hyperfile markup language. The target page includes a page management module and a global initialization module. The method includes:
Receiving a typesetting instruction sent by the page management module, where the typesetting instruction is obtained after the page management module parses a typesetting instruction set of the target page generated and sent by the global initialization module;
Execute the typesetting instruction to obtain a second control item corresponding to the typesetting instruction from a pre-stored control item library, and perform typesetting processing and transposition processing on the second control item in the target page to obtain a fusion The target page of the second control item, where the second control item is a control item corresponding to the type of the first control item in the target user interface.
Optionally, the method further includes:
According to the call instruction of the page transfer module, when the global initialization module detects that the second control item is removed or the target page is destroyed, the second control item is released and recovered.
A page processing device provided in an embodiment of the present specification includes a target page, and the target page is developed based on a hyperfile markup language and includes:
An information acquisition module, configured to acquire the type of the first control item in the target user interface and the typesetting information of the first control item in the target user interface;
A typesetting instruction generating module, configured to generate a typesetting instruction set for the second control item corresponding to the type in the target page according to the type of the first control item and the typesetting information, and the second control item Control items that are stored in advance and can be incorporated in the target page;
A processing module is configured to execute the typesetting instructions in the typesetting instruction set, and perform typesetting processing and transposition processing on the second control item in the target page to obtain a target page fused with the second control item.
Optionally, the information acquisition module is used to call a preset programming interface to acquire the type of the first control item in the target user interface, and the first control item in the user interface. Typographic information.
Optionally, the apparatus further includes:
An instruction receiving module, configured to receive a management instruction for the second control item in the target page, where the management instruction includes a deletion instruction and a status modification instruction;
An instruction execution module is configured to perform a corresponding operation on the second control item in the target page according to the management instruction.
A page management module in a page processing device provided in an embodiment of the present specification. The page management module is set in a target page. The target page is developed based on a hyperfile markup language. The target page further includes a global initialization module Groups, including:
A first calling unit, configured to call the global initialization module to obtain the type of the first control item in the target user interface, and the typesetting information of the first control item in the target user interface, and According to the type and the typesetting information, a typesetting instruction set of a second control item corresponding to the type on the target page is generated, and the second control item is stored in advance and can be integrated in the target page. Control
An instruction set receiving unit, configured to receive the typesetting instruction set sent by the global initialization module;
A parsing unit, configured to parse the typesetting instructions in the typesetting instruction set to obtain the parsed typesetting instructions;
An instruction sending unit is configured to create a page transposition module, and send the parsed typesetting instruction to the page transposition module, so that the page transposition module obtains according to the parsed typesetting instruction. The target page fused with the second control item.
Optionally, the first calling unit includes:
An instruction receiving subunit, configured to receive a programming interface call instruction sent by the global initialization module;
A calling sub-unit for calling the global initialization module.
Optionally, the page management module further includes:
A life cycle creation unit, configured to create a life cycle of the page transfer module;
A first setting unit, configured to set the life cycle of the page conversion module to an invisible state when a notification message that the life cycle is not visible sent by the global initialization module is received;
The second setting unit is configured to set the life cycle of the page conversion module to a visible state when receiving a notification message that the life cycle resumes to be visible from the global initialization module.
Optionally, the page management module further includes:
A destruction unit, configured to destroy the life cycle of the page transfer module when receiving a notification message that the second control item is removed or the target page is destroyed and sent by the global initialization module;
A second calling unit is configured to call the page transfer module to release and recover the second control item.
A global initialization module in a page processing device provided in an embodiment of the present specification. The global initialization module is set in a target page. The target page is developed based on a super document markup language. The target page further includes a page management module. Groups, including:
An instruction sending unit, configured to send a programming interface call instruction to the page management module;
An information obtaining unit, configured to obtain the type of the first control item in the target user interface and the typesetting information of the first control item in the target user interface according to the call instruction of the page management module, And according to the type and the typesetting information, a typesetting instruction set of the second control item corresponding to the type on the target page is generated, and the second control item is stored in advance and can be fused on the target page Controls in
An instruction set sending unit is configured to send the typesetting instruction set to the page management module.
A page processing device provided in an embodiment of the present specification. A page conversion module in the page processing device is provided in the target page. The target page is developed based on a super document markup language. The target page It also includes a page management module and a global initialization module, including:
An instruction receiving unit, configured to receive a typesetting instruction sent by the page management module, where the typesetting instruction analyzes the typesetting instruction set of the target page generated and sent by the global initialization module After getting
An instruction execution unit is configured to execute the typesetting instruction, obtain a second control item corresponding to the typesetting instruction from a pre-stored control item library, and perform typesetting processing and conversion on the second control item in the target page. Column processing to obtain a target page fused with the second control item, where the second control item is a control item corresponding to the type of the first control item in the target user interface.
Optionally, the page transposition module further includes:
A control item releasing unit is configured to release and recycle the second control item when the global initialization module detects that the second control item is removed or the target page is destroyed according to the call instruction of the page transfer module. The second control item is described.
A page processing device provided in an embodiment of the present specification. The page processing device includes a target page, and the target page is developed based on a hyperfile markup language and includes:
A processor; and a memory arranged to store computer-executable instructions that, when executed, cause the processor to:
Obtaining the type of the first control item in the target user interface, and typesetting information of the first control item in the target user interface;
According to the type of the first control item and the typesetting information, a typesetting instruction set of the second control item corresponding to the type in the target page is generated. The second control item is stored in advance and can be integrated in the A control item in the target page;
The typesetting instruction in the typesetting instruction set is executed, and the second control item is subjected to typesetting processing and transposition processing in the target page to obtain a target page fused with the second control item.
It can be seen from the technical solutions provided by the foregoing embodiments of the present specification that the embodiments of the present specification are applied to a target page, which is developed based on a super document markup language, and the type of the first control item in the target user interface obtained through the target page and the first The typesetting information of the control item in the target user interface generates a typesetting instruction set of the corresponding second control item in the target page. The second control item is a control item that is stored in advance and can be integrated into the target page. The typesetting instructions in the typesetting instruction set perform typesetting processing and transposition processing on the second control item in the target page to obtain a target page incorporating the second control item. In this way, the native user interface in the operating system of the terminal device ( That is, the target user interface) control is added as a sub-display control of the display control in the target page to the target page (that is, a page developed based on the Hypertext Markup Language), instead of the native user interface in the operating system of the terminal device. Controls are simply overlaid on the target page to achieve the integration of the controls in the target user interface The effect combined with the target page enables the second control item integrated in the target page to be scaled with the target page, which improves the user experience.

本說明書實施例提供一種頁面處理方法、裝置及設備。
為了使本技術領域的人員更好地理解本說明書中的技術方案,下面將結合本說明書實施例中的圖式,對本說明書實施例中的技術方案進行清楚、完整地描述,顯然,所描述的實施例僅僅是本說明書一部分實施例,而不是全部的實施例。基於本說明書中的實施例,本領域普通技術人員在沒有作出創造性勞動前提下所獲得的所有其他實施例,都應當屬於本說明書保護的範圍。

實施例一
如圖1所示,本說明書實施例提供一種頁面處理方法,該方法的執行主體可以為終端設備或伺服器,其中,該終端設備可以如個人電腦等設備,也可以如手機、平板電腦等行動終端設備,該終端設備可以為用戶使用的終端設備。該伺服器可以是獨立的伺服器,也可以是由多個伺服器組成的伺服器集群,而且,該伺服器可以是某項業務的後台伺服器,也可以是某網站(如網路購物網站或支付應用等)的後台伺服器等。該方法可以用於產生終端設備的作業系統中原生使用者介面中的控制項對應的頁面(即本實施例中提到的目標頁面),且該頁面為基於超文件標示語言(即Hyper Text Markup Language,HTML)開發,其中的超文件標示語言可以包括HTML 2.0、HTML 3.2、HTML 4.0和HTML 5等。為了簡化頁面處理過程和頁面處理效率,本實施例中以執行主體為終端設備為例進行說明,對於伺服器的情況,可以根據下述相關內容處理,在此不再贅述。該方法具體可以包括以下步驟:
在步驟S102中,獲取目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊。
其中,目標使用者介面可以終端設備的作業系統中原生的使用者介面(即UI,User Interface),終端設備的作業系統可以包括安卓(即Android)作業系統和iOS作業系統等。第一控制項可以是作業系統的使用者介面中的任意控制項,例如按鍵、輸入框控制項、搜索框控制項、日曆控制項或上傳圖片控制項等。排版資訊可以是用於表明控制項在頁面中的大小、位置等相關資訊的資訊,排版資訊可以助於終端設備轉列並顯示頁面。控制項的類型可以根據實際情況設定,例如可以根據控制項的作用和用途進行分類,如按鍵類、輸入框類或上傳圖片類等,在實際應用中,可能並不限於上述分類,還可以基於上述分類結果再進行分類,例如,按鍵類還可以分為圓形按鍵類、矩形按鍵類等,或者,直接將控制項的類型分為圓形按鍵類、矩形按鍵類、輸入框類或上傳圖片類等,本說明書實施例對此不做限定。
在實施中,超文件標示語言是標準通用標記語言下的一個應用,也是一種規範,一種標準,它透過標記符號來標記要顯示的網頁中的各個部分。網頁檔本身是一種文字檔,透過在文字檔中添加標記符,可以指示瀏覽器如何顯示其中的內容(如其中的文字如何處理、畫面如何排布,圖片如何顯示等)。瀏覽器可以按照網頁檔中的內容順序閱讀該網頁檔,然後,根據標記符解釋和顯示其標記的內容。其中,對於不同的瀏覽器,對同一標記符可能會有不完全相同的解釋,因而可能會有不同的顯示效果。超文件標示語言文檔製作不是很複雜,但功能強大,支援不同資料格式的檔鑲入。超文件標示語言可以具備簡易性、可擴展性、操作平台無關性和通用性等主要特點,由於超文件標示語言版本的升級通常採用超集合方式,因此,超文件標示語言可以更加靈活方便,而且超文件標示語言可以使用在廣泛的操作平台(即多種作業系統的平台,如Windows作業系統平台或Mac OS平台等)上,而且,超文件標示語言允許網頁製作人員建立文本與圖像相結合的複雜頁面,無論使用者使用的是何種類型的終端設備或瀏覽器,該頁面均可以被瀏覽。
基於超文件標示語言開發的頁面(即目標頁面)中可以包括較多較複雜的元素,例如地圖等,以基於超文件標示語言開發的目標頁面為例,如果透過該目標頁面顯示地圖,而地圖通常需要使用者進行縮放,在進行縮放的過程中,使用者可能很難透過手指觸控的方式對地圖進行縮放,使用者觸控操作的體驗較差,而且目標頁面的轉列效率低。
而終端設備中的使用者介面通常是由一個或多個控制項構成的,透過不同的控制項可以構建出多個不同的使用者介面,不同的控制項可以實現不同的功能,例如,使用者介面中可以包括地圖控制項,使用者可以透過地圖控制項,透過手指觸控的方式,將地圖控制項中的地圖進行隨意放大或縮小,顯然,終端設備中使用者介面中的控制項能夠表現出更好的觸控操作體驗,使用者介面的轉列效率相對較高。
如果將終端設備中的使用者介面中的控制項能夠在目標頁面中顯示,則可以提高目標頁面的觸控操作的體驗和目標頁面的轉列效率,通常,可以透過將終端設備的作業系統的原生使用者介面(即目標使用者介面)中的控制項覆蓋到上述目標頁面中,其中需要說明的是,在實際應用中,將目標使用者介面中的控制項覆蓋到上述目標頁面中的處理,可以是將目標使用者介面中的控制項覆蓋到目標頁面的Webview控制項中。但是,透過上述覆蓋的方式得到的目標頁面,需要限制目標頁面不能夠進行縮放,因為目標頁面中覆蓋的目標使用者介面中的控制項不能夠隨著目標頁面的縮放而進行縮放,而只能夠保持控制項原來的樣式不變,從而給使用者的使用帶來困擾,使用者體驗較差。為此,本說明書實施例提供一種可以包括使用者介面中的控制項的目標頁面,並且其中的控制項還可以隨著目標頁面的縮放而進行縮放的方案,具體可以包括以下內容:
如圖2A所示,當需要將終端設備的作業系統中的某一個或多個原生使用者介面(即目標使用者介面)使用基於超文件標示語言(本實施例中的超文件標示語言可以以HTML 5為例進行說明)開發的目標頁面進行顯示時,可以透過預先設置的介面獲取目標使用者介面,可以對目標使用者介面進行分析計算,確定目標使用者介面中包含的控制項(即第一控制項),同時,可以記錄每個第一控制項的大小尺寸和在目標使用者介面中的位置,其中,該位置可以以座標的形式表示,或者,也可以以某一個位置作為中心點,確定第一控制項與該中心點之間的相對位置等。可以使用記錄的每個第一控制項的大小尺寸和在目標使用者介面中的位置等資訊,產生第一控制項在目標使用者介面中的排版資訊。此外,還可以對目標使用者介面中的每個第一控制項進行分析,確定每個第一控制項所屬的類型,例如,包括3個第一控制項,其中一個第一控制項為按鍵,再一個第一控制項為搜索框控制項,第三個第一控制項為上傳圖片控制項,則第一控制項所屬的類型包括按鍵類、搜索框類和上傳圖片類,相應的,對於上述按鍵,可以產生一個按鍵的排版資訊,對於搜索框控制項,可以產生一個搜索框控制項的排版資訊,對於上傳圖片控制項,可以產生一個上傳圖片控制項的排版資訊。
在步驟S104中,根據上述第一控制項的類型和上述排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項。
其中,第二控制項可以是目標頁面所在的瀏覽器中預先儲存的控制項,也可以是目標頁面對應的資料庫或上述瀏覽器所對應的資料庫中預先儲存的控制項,第二控制項可以是目標使用者介面的開發或技術人員創建,由於第二控制項的創建充分考慮了基於超文件標示語言開發的目標頁面的環境,也即是第二控制項需要在目標頁面中使用,可以隨著目標頁面的縮放而進行縮放,而且第二控制項可以是與目標使用者介面中的第一控制項屬於同一類型,兩者相互對應,例如,第一控制項為按鍵,第二控制項也應該為按鍵,而且,第二控制項可以與第一控制項在外觀和功能上完全相同等。排版指令集可以是由一個或多個排版指令構成的集合,每個排版指令可以相互獨立,也可以是相互關聯,如果多個排版指令相互關聯,則該排版指令中還可以包括儲存關聯關係的排版指令的標識等。
在實施中,目標頁面所在的瀏覽器,或者目標頁面對應的資料庫,或者上述瀏覽器所對應的資料庫中,可以預先儲存有與終端設備的作業系統的原生使用者介面中的控制項相對應的控制項。當終端設備透過上述步驟S102的處理確定第一控制項的類型後,可以透過確定的類型,在上述預先儲存的控制項中查找與確定的類型對應的控制項,查找到後,可以將查找到的控制項作為與該第一控制項相對應的第二控制項,然後,可以從透過上述步驟S102的處理得到的排版資訊中,查找該第一控制項在目標使用者介面中的排版資訊,查找到後,可以提取查找到的排版資訊中該第一控制項的大小尺寸和在目標使用者介面中的位置。
可以創建一個空的目標頁面,可以基於目標頁面的固有屬性,並根據該第一控制項的大小尺寸,確定相應的第二控制項的大小尺寸,同時,還可以基於目標頁面的固有屬性,並根據該第一控制項在目標使用者介面中的位置,確定相應的第二控制項在目標頁面中的位置。可以透過目標頁面的固有屬性、第二控制項的大小尺寸和第二控制項在目標頁面中的位置等,產生該第二控制項在目標頁面中的排版資訊,並可以基於產生的排版資訊產生該第二控制項在目標頁面中一個或多個排版指令,得到該第二控制項在目標頁面中的排版指令集。
需要說明的是,可以包括多個第一控制項,相應的第二控制項也應該是多個,而且,第一控制項的數量與第二控制項的數量相等,對於包括多個第二控制項的情況,可以透過上述方式分別獲取每個第二控制項在目標頁面中的排版指令或排版指令集。
在步驟S106中,執行上述排版指令集中的排版指令,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面。
其中,排版處理可以是在有限的頁面空間裡,將頁面構成元素(如文字、圖片、線條線框和顏色色塊等),根據特定內容的需要進行組合排列,並運用造型要素及形式原理,把元素排布在頁面中的處理。轉列處理可以是對將要呈現的頁面進行計算,得到頁面的顯示效果的處理。
在實施中,透過上述步驟S104的處理得到第二控制項在目標頁面中的排版指令集後,終端設備可以分別對排版指令集中的排版指令進行解析,以將排版指令集中的排版指令的資料轉換成顯示部件或顯示模組能夠識別的資料,然後,終端設備的示部件或顯示模組可以執行解析後的排版指令,透過解析後的排版指令可以確定第二控制項的相關資訊,並可以從預先儲存的控制項中提取該第二控制項。如圖2B所示,還可以透過解析後的排版指令確定該第二控制項的大小尺寸和第二控制項在目標頁面中的位置等,然後,可以根據確定的大小尺寸和在目標頁面中的位置,在目標頁面中對該第二控制項進行排版處理,得到該第二控制項在目標頁面中的排版結果。可以對每個第二控制項均執行上述處理過程,得到其它第二控制項在目標頁面中的排版結果,可以綜合上述每個第二控制項在目標頁面中的排版結果,得到目標頁面的總體排版結果,最後,可以基於目標頁面的總體排版結果,對目標頁面進行轉列處理,使得總體排版結果的目標頁面得以呈現,從而得到了融合有第二控制項的目標頁面。
基於上述處理,由於第二控制項是能夠融合到目標頁面(而不是如相關技術中覆蓋在目標頁面)中,因此,第二控制項可以隨著目標頁面的縮放而進行縮放,而且,第二控制項是與目標使用者介面中的第一控制項相對應的,並且,第二控制項在目標頁面中的排版也是與第一控制項在目標使用者介面中的排版相對應,這樣,會產生融合有第二控制項的目標頁面與包含第一控制項的目標使用者介面,在呈現或顯示結果上相同或相似(例如兩個頁面的外觀相同或相近),從而給使用者一種將目標使用者介面(或其中的控制項)轉移到了目標頁面中的感覺,而且,目標頁面中的控制項還可以隨著目標頁面的縮放而進行縮放,提高了使用者體驗。
本說明書實施例提供一種頁面處理方法,應用於目標頁面,該目標頁面基於超文件標示語言開發,透過獲取的目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項,執行該排版指令集中的排版指令,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面,這樣,將終端設備的作業系統中原生使用者介面(即目標使用者介面)控制項作為目標頁面中顯示控制項的子顯示控制項添加到目標頁面(即基於超文件標示語言開發的頁面)中,而不是將終端設備的作業系統中原生使用者介面控制項簡單覆蓋在目標頁面上,從而達到了將目標使用者介面的控制項融合到目標頁面的效果,使得融合在目標頁面中的第二控制項可以隨著目標頁面進行縮放,提高了使用者體驗。

實施例二
如圖3所示,本說明書實施例提供一種頁面處理方法,該方法的執行主體可以為終端設備或伺服器,其中,該終端設備可以如個人電腦等設備,也可以如手機、平板電腦等行動終端設備,該終端設備可以為用戶使用的終端設備。該伺服器可以是獨立的伺服器,也可以是由多個伺服器組成的伺服器集群,而且,該伺服器可以是某項業務的後台伺服器,也可以是某網站(如網路購物網站或支付應用等)的後台伺服器等。該方法可以用於產生終端設備的作業系統中原生使用者介面中的控制項對應的頁面(即本實施例中提到的目標頁面),且該頁面為基於超文件標示語言(即Hyper Text Markup Language,HTML)開發,其中的超文件標示語言可以包括HTML 2.0、HTML 3.2、HTML 4.0和HTML 5等。為了簡化頁面處理過程和頁面處理效率,本實施例中以執行主體為終端設備為例進行說明,對於伺服器的情況,可以根據下述相關內容處理,在此不再贅述。該方法具體可以包括以下步驟:
在步驟S302中,呼叫預設的程式設計介面,獲取目標使用者介面中的第一控制項的類型,以及第一控制項在使用者介面中的排版資訊。
其中,程式設計介面可以是由一個或多個預先定義的函數構成,目的是提供應用程式與開發人員(或技術人員)基於某軟體或硬體得以接達一組常式的能力,同時又無需接達原始程式碼或理解內部工作機制的細節等,具體可以為JSAPI(JavaScript Application Programming Interface,Java描述語言應用程式設計發展介面)等。
在實施中,當需要將終端設備的作業系統中的某一個或多個原生使用者介面(即目標使用者介面)使用基於超文件標示語言(本實施例中的超文件標示語言可以以HTML 5為例進行說明)開發的目標頁面進行顯示時,可以呼叫預設的程式設計介面(如JSAPI等),以獲取目標使用者介面,並可以對目標使用者介面進行分析計算,確定目標使用者介面中包含的控制項(即第一控制項),同時,可以記錄每個第一控制項的大小尺寸和在目標使用者介面中的位置。可以使用記錄的每個第一控制項的大小尺寸和在目標使用者介面中的位置等資訊,產生第一控制項在目標使用者介面中的排版資訊。此外,還可以對目標使用者介面中的每個第一控制項進行分析,確定每個第一控制項所屬的類型。
在步驟S304中,根據上述第一控制項的類型和上述排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項。
上述步驟S304的步驟內容與上述實施例一中步驟S104的步驟內容相同,上述步驟S304的具體處理過程可以參見上述實施例一中步驟S104的相關內容,在此不再贅述。
在步驟S306中,執行上述排版指令集中的排版指令,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面。
上述步驟S306的步驟內容與上述實施例一中步驟S106的步驟內容相同,上述步驟S306的具體處理過程可以參見上述實施例一中步驟S106的相關內容,在此不再贅述。
此外,透過上述方式得到融合有第二控制項的目標頁面後,還可以對目標頁面中的第二控制項進行管理,得到處理後的目標頁面,具體可以參見下述步驟S308和步驟S310的處理。
在步驟S308中,接收對目標頁面中的第二控制項的管理指令,該管理指令可以包括刪除指令和狀態修改指令等。
其中,狀態修改指令可以是將第二控制項由一種狀態修改為另一種狀態,例如,將第二控制項由未觸發狀態修改為被觸發狀態等。
在實施中,當需要對目標頁面中的一個或多個第二控制項進行刪除時,可以觸發目標頁面所在的瀏覽器中或目標頁面中提供的第二控制項管理按鍵,此時,可以產生對目標頁面中該一個或多個第二控制項的刪除指令,終端設備可以接收對目標頁面中該一個或多個第二控制項的刪除指令。
另外,當需要對目標頁面中的一個或多個第二控制項的狀態進行修改時,可以觸發目標頁面所在的瀏覽器中或目標頁面中提供的第二控制項管理按鍵,此時,可以獲取第二控制項當前的狀態資訊,以及修改後的狀態資訊,可以基於上述資訊,產生對目標頁面中該一個或多個第二控制項的狀態修改指令,終端設備可以接收對目標頁面中該一個或多個第二控制項的狀態修改指令。
在步驟S310中,根據上述管理指令,對目標頁面中的第二控制項執行相應的操作。
在實施中,當接收到對目標頁面中該一個或多個第二控制項的刪除指令時,可以獲取需要刪除的該一個或多個第二控制項的標識,並以此可以從目標頁面中查找到相應的一個或多個第二控制項,可以將該一個或多個第二控制項從目標頁面中刪除。
當接收到對目標頁面中該一個或多個第二控制項的狀態修改指令時,可以獲取需要進行狀態修改的該一個或多個第二控制項的標識,並以此可以從目標頁面中查找到相應的一個或多個第二控制項,可以將該一個或多個第二控制項由當前的狀態資訊對應的狀態修改為修改後的狀態資訊對應的狀態。
本說明書實施例提供一種頁面處理方法,應用於目標頁面,該目標頁面基於超文件標示語言開發,透過獲取的目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項,執行該排版指令集中的排版指令,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面,這樣,將終端設備的作業系統中原生使用者介面(即目標使用者介面)控制項作為目標頁面中顯示控制項的子顯示控制項添加到目標頁面(即基於超文件標示語言開發的頁面)中,而不是將終端設備的作業系統中原生使用者介面控制項簡單覆蓋在目標頁面上,從而達到了將目標使用者介面的控制項融合到目標頁面的效果,使得融合在目標頁面中的第二控制項可以隨著目標頁面進行縮放,提高了用戶體驗。
上述實施例一和實施例二是以終端設備(或終端設備中安裝的瀏覽器,或上述瀏覽器中的目標頁面)為執行主體進行詳細說明的,其中,目標頁面既需要獲取目標使用者介面中的第一控制項的相關資訊,還需要對上述獲取的相關資訊進行處理,以及轉列顯示目標頁面等處理,在實際應用中,還可以將該目標頁面根據其具備的不同功能,將其劃分為不同的模組執行,以下實施例三和實施例四將上述目標頁面分為頁面管理模組、全域初始化模組和頁面轉列模組進行了說明,具體參見下述內容,其中,頁面管理模組可以以NBComponentManager表示,全域初始化模組可以以NBComponentJSLoader表示,頁面轉列模組可以以NBComponentViews表示,目標頁面可以以Webview表示,Webview可以是終端設備的作業系統中承載與展示基於超文件標示語言(如HTML 5等)開發的目標頁面的UI控制項。此外,上述目標頁面不僅僅可以劃分為上述三個模組,還可以將其進行更加細緻的劃分,劃分為三個以上的模組,另外,即使將上述目標頁面劃分為三個模組,也可以不僅僅劃分為頁面管理模組、全域初始化模組和頁面轉列模組,還可以根據目標頁面的功能,將目標頁面劃分為其它類型的三個不同的模組,對於上述情況,其具體處理過程可以參考下述內容執行。

實施例三
如圖4所示,本說明書實施例提供一種頁面處理方法,該方法的執行主體可以為終端設備或伺服器,其中,該終端設備可以如個人電腦等設備,也可以如手機、平板電腦等行動終端設備,該終端設備可以為用戶使用的終端設備。該伺服器可以是獨立的伺服器,也可以是由多個伺服器組成的伺服器集群,而且,該伺服器可以是某項業務的後台伺服器,也可以是某網站(如網路購物網站或支付應用等)的後台伺服器等。該方法可以用於產生終端設備的作業系統中原生使用者介面中的控制項對應的頁面(即本實施例中提到的目標頁面),且該頁面為基於超文件標示語言(即Hyper Text Markup Language,HTML)開發,其中的超文件標示語言可以包括HTML 2.0、HTML 3.2、HTML 4.0和HTML 5等。為了簡化頁面處理過程和頁面處理效率,本實施例中以執行主體為終端設備為例進行說明,對於伺服器的情況,可以根據下述相關內容處理,在此不再贅述,此外,該方法的執行主體具體可以為終端設備中目標頁面中的頁面管理模組(即NBComponentManager
)。該方法具體可以包括以下步驟:
在步驟S402中,呼叫全域初始化模組,以獲取目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,並根據上述類型和該排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項。
其中,全域初始化模組(即NBComponentJSLoader)可以運行於Webview中,用於計算並產生排版指令集。頁面管理模組NBComponentManager的主要作用可以是與全域初始化模組NBComponentJSLoader進行通信,以獲取排版指令集,並管理頁面轉列模組NBComponentViews的顯示。
在實施中,如圖5所示,目標頁面中可以包括6個部分,分別為頁面管理模組NBComponentManager、全域初始化模組NBComponentJSLoader、頁面轉列模組
NBComponentViews、Webview、控制項管理模組
NBComponentViewManager、程式設計介面JSAPI等,其
中,控制項管理模組NBComponentViewManager是
NBComponentView的外掛程式化管理器,用戶可以開發並註冊自訂的NBComponentViews等。
當需要將終端設備的作業系統中的某一個或多個原生使用者介面(即目標使用者介面)使用基於超文件標示語言(本實施例中的超文件標示語言可以以HTML 5為例進行說明)開發的目標頁面進行顯示時,頁面管理模組
NBComponentManager可以呼叫全域初始化模組
NBComponentJSLoader,NBComponentJSLoader可以獲取目標使用者介面,並可以對目標使用者介面進行分析計算,確定目標使用者介面中包含的控制項(即第一控制項),同時,可以記錄每個第一控制項的大小尺寸和在目標使用者介面中的位置。可以使用記錄的每個第一控制項的大小尺寸和在目標使用者介面中的位置等資訊,產生第一控制項在目標使用者介面中的排版資訊。此外,還可以對目標使用者介面中的每個第一控制項進行分析,確定每個第一控制項所屬的類型。
頁面轉列模組NBComponentViews中可以預先儲存有與終端設備的作業系統的原生使用者介面中的控制項相對應的控制項。當NBComponentJSLoader透過上述處理確定第一控制項的類型後,可以透過確定的類型,在上述預先儲存的控制項中查找與確定的類型對應的第二控制項,然後,NBComponentJSLoader可以從得到的排版資訊中,查找該第一控制項在目標使用者介面中的排版資訊,從而得到該第一控制項的大小尺寸和在目標使用者介面中的位置。
NBComponentJSLoader可以根據該第一控制項的大小尺寸,確定相應的第二控制項的大小尺寸,同時,NBComponentJSLoader還可以根據該第一控制項在目標使用者介面中的位置,確定相應的第二控制項在目標頁面中的位置。NBComponentJSLoader可以透過第二控制項的大小尺寸和第二控制項在目標頁面中的位置等,產生該第二控制項在目標頁面中的排版指令集。
在步驟S404中,接收全域初始化模組發送的上述排版指令集。
在步驟S406中,解析上述排版指令集中的排版指令,得到解析後的排版指令。
在實施中,由於NBComponentJSLoader產生的排版指令集中的排版指令的資料是NBComponentViews無法識別的資料,這樣,NBComponentViews將無法執行該排版指令進行排版處理和轉列處理,得到相應的目標頁面,為此,NBComponentManager可以對排版指令集中的排版指令進行解析,以得到能夠被NBComponentViews識別的解析後的排版指令。
在步驟S408中,創建頁面轉列模組,並將上述解析後的排版指令發送給頁面轉列模組,以使該頁面轉列模組根據解析後的排版指令得到融合有第二控制項的目標頁面。
在實施中,NBComponentManager排版指令集中的排版指令的過程中,可以創建對應的NBComponentViews,並將該NBComponentViews融合到Webview上。然後,可以將NBComponentManager解析後的排版指令發送給
NBComponentViews。NBComponentViews可以處理解析後的排版指令,可以根據解析後的排版指令中的資料和屬性,獲取第二控制項,並將第二控制項融合到目標頁面(即HTML 5頁面)中,並顯示該目標頁面(即HTML 5頁面)。
如圖6所示,本說明書實施例提供一種頁面處理方法,該方法的執行主體可以為終端設備或伺服器,其中,該終端設備可以如個人電腦等設備,也可以如手機、平板電腦等行動終端設備,該終端設備可以為用戶使用的終端設備。該伺服器可以是獨立的伺服器,也可以是由多個伺服器組成的伺服器集群,而且,該伺服器可以是某項業務的後台伺服器,也可以是某網站(如網路購物網站或支付應用等)的後台伺服器等。該方法可以用於產生終端設備的作業系統中原生使用者介面中的控制項對應的頁面(即本實施例中提到的目標頁面),且該頁面為基於超文件標示語言(即Hyper Text Markup Language,HTML)開發,其中的超文件標示語言可以包括HTML 2.0、HTML 3.2、HTML 4.0和HTML 5等。為了簡化頁面處理過程和頁面處理效率,本實施例中以執行主體為終端設備為例進行說明,對於伺服器的情況,可以根據下述相關內容處理,在此不再贅述,此外,該方法的執行主體具體可以為終端設備中目標頁面中的全域初始化模組(即
NBComponentJSLoader)。該方法具體可以包括以下步驟:
在步驟S602中,向頁面管理模組發送程式設計介面呼叫指令。
在步驟S604中,根據頁面管理模組的呼叫指示,獲取目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,並根據該類型和該排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項。
在步驟S606中,向頁面管理模組發送上述排版指令集。
如圖7所示,本說明書實施例提供一種頁面處理方法,該方法的執行主體可以為終端設備或伺服器,其中,該終端設備可以如個人電腦等設備,也可以如手機、平板電腦等行動終端設備,該終端設備可以為用戶使用的終端設備。該伺服器可以是獨立的伺服器,也可以是由多個伺服器組成的伺服器集群,而且,該伺服器可以是某項業務的後台伺服器,也可以是某網站(如網路購物網站或支付應用等)的後台伺服器等。該方法可以用於產生終端設備的作業系統中原生使用者介面中的控制項對應的頁面(即本實施例中提到的目標頁面),且該頁面為基於超文件標示語言(即Hyper Text Markup Language,HTML)開發,其中的超文件標示語言可以包括HTML 2.0、HTML 3.2、HTML 4.0和HTML 5等。為了簡化頁面處理過程和頁面處理效率,本實施例中以執行主體為終端設備為例進行說明,對於伺服器的情況,可以根據下述相關內容處理,在此不再贅述,此外,該方法的執行主體具體可以為終端設備中目標頁面中的頁面轉列模組NBComponentViews。該方法具體可以包括以下步驟:
在步驟S702中,接收頁面管理模組發送的排版指令,該排版指令是頁面管理模組對全域初始化模組產生並發送的目標頁面的排版指令集進行解析後得到。
在步驟S704中,執行上述排版指令,從預先儲存的控制項庫中獲取該排版指令對應的第二控制項,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面,第二控制項是目標使用者介面中的第一控制項的類型對應的控制項。
其中,預先儲存的控制項庫可以設置於頁面轉列模組NBComponentViews中,NBComponentViews中可以包括一套可以融入基於超文件標示語言(如HTML 5)開發的目標頁面的終端設備的作業系統的原生UI控制項庫(或原生UI控制項集)。
本說明書實施例提供一種頁面處理方法,應用於目標頁面,該目標頁面基於超文件標示語言開發,透過獲取的目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項,執行該排版指令集中的排版指令,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面,這樣,將終端設備的作業系統中原生使用者介面(即目標使用者介面)控制項作為目標頁面中顯示控制項的子顯示控制項添加到目標頁面(即基於超文件標示語言開發的頁面)中,而不是將終端設備的作業系統中原生使用者介面控制項簡單覆蓋在目標頁面上,從而達到了將目標使用者介面的控制項融合到目標頁面的效果,使得融合在目標頁面中的第二控制項可以隨著目標頁面進行縮放,提高了用戶體驗。

實施例四
如圖8所示,本說明書實施例提供一種頁面處理方法,該方法的執行主體可以為終端設備或伺服器,其中,該終端設備可以如個人電腦等設備,也可以如手機、平板電腦等行動終端設備,該終端設備可以為用戶使用的終端設備。該伺服器可以是獨立的伺服器,也可以是由多個伺服器組成的伺服器集群,而且,該伺服器可以是某項業務的後台伺服器,也可以是某網站(如網路購物網站或支付應用等)的後台伺服器等。該方法可以用於產生終端設備的作業系統中原生使用者介面中的控制項對應的頁面(即本實施例中提到的目標頁面),且該頁面為基於超文件標示語言(即Hyper Text Markup Language,HTML)開發,其中的超文件標示語言可以包括HTML 2.0、HTML 3.2、HTML 4.0和HTML 5等。為了簡化頁面處理過程和頁面處理效率,本實施例中以執行主體為終端設備為例進行說明,對於伺服器的情況,可以根據下述相關內容處理,在此不再贅述,此外,該方法具體可以由終端設備中目標頁面中的頁面管理模組(即NBComponentManager)、全域初始化模組(NBComponentJSLoader)和頁面轉列模組(NBComponentViews)共同執行。該方法具體可以包括以下步驟:
在步驟S802中,全域初始化模組向頁面管理模組發送程式設計介面呼叫指令。
在實施中,在基於超文件標示語言(如HTML 5)開發的目標頁面創建的同時,全域初始化模組
NBComponentJSLoader可以進行初始化處理,並可以將NBComponentJSLoader存於當前的目標頁面的上下文中,NBComponentJSLoader初始化完畢後,可以向頁面管理模組NBComponentManager發出通知消息,
NBComponentManager接收到該通知消息夠,可以進行初始化處理。NBComponentManager初始化完成後,
NBComponentJSLoader可以向NBComponentManager發送JSAPI呼叫指令(即Call Render JSAPI)。
在步驟S804中,頁面管理模組呼叫全域初始化模組。
在步驟S806中,全域初始化模組根據頁面管理模組的呼叫指示,獲取目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,並根據該類型和該排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項。
在步驟S808中,全域初始化模組向頁面管理模組發送排版指令集。
在步驟S810中,頁面管理模組解析該排版指令集中的排版指令,得到解析後的排版指令。
在步驟S812中,頁面管理模組創建頁面轉列模組,並將該解析後的排版指令發送給頁面轉列模組。
在步驟S814中,頁面轉列模組執行解析後的排版指令,從預先儲存的控制項庫中獲取該排版指令對應的第二控制項,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面。
需要說明的是,頁面轉列模組完成上述排版處理和轉列處理,得到融合有第二控制項的目標頁面後,可以向全域初始化模組發送目標頁面轉列完成的通知消息。
在執行上述步驟S812中頁面管理模組創建頁面轉列模組的過程中,可以同時創建頁面轉列模組的生命週期,以管理頁面轉列模組的顯示、隱藏和銷毀等,具體可以參見下述步驟S816~步驟S826的處理。
在步驟S816中,頁面管理模組創建頁面轉列模組的生命週期。
在實施中,如果目標頁面為首次創建,
NBComponentViews會收到終端設備的作業系統中的原生UI控制項被融合到Webview上的通知,用來處理與終端設備的作業系統中的原生UI控制項相關的初始化工作。
在步驟S818中,當接收到全域初始化模組發送的生命週期不可見的通知消息時,頁面管理模組將頁面轉列模組的生命週期設置為不可見狀態。
其中,不可見狀態可以是將頁面轉列模組的生命週期進行暫停等處理,在實際應用中,生命週期不可見的通知消息可以以onWebViewPause的通知消息表示,
onWebViewPause可以由WebView不可見的生命週期函數構成,用來處理與終端設備的作業系統中的原生UI控制項相關的生命週期。
在實施中,當終端設備處於螢幕鎖定或壓後台等狀態時,全域初始化模組可以產生生命週期不可見的通知消息(即onWebViewPause),並可以將其發送給頁面管理模組NBComponentManager。NBComponentManager接收到全域初始化模組發送的onWebViewPause的通知消息時,可以將onWebViewPause發送給頁面轉列模組
NBComponentViews,並回呼NBComponentViews將
NBComponentViews的生命週期設置為不可見狀態。
在步驟S820中,當接收到全域初始化模組發送的生命週期恢復可見的通知消息時,頁面管理模組將頁面轉列模組的生命週期設置為可見狀態。
其中,可見狀態可以是將頁面轉列模組的生命週期恢復有效等處理,在實際應用中,生命週期可見的通知消息可以以onWebViewResume的通知消息表示,
onWebViewResume可以由WebView可見的生命週期函數構成,用來處理與終端設備的作業系統中的原生UI控制項相關的生命週期。
在實施中,當終端設備處於解鎖或回前台等狀態時,全域初始化模組可以產生生命週期可見的通知消息(即onWebViewResume),並可以將其發送給頁面管理模組NBComponentManager。NBComponentManager接收到
onWebViewResume的通知消息時,可以將
onWebViewResume發送給NBComponentViews,並回呼NBComponentViews將NBComponentViews的生命週期設置為可見狀態。
在步驟S822中,當接收到全域初始化模組發送的第二控制項被移除或目標頁面被銷毀的通知消息時,頁面管理模組銷毀頁面轉列模組的生命週期。
其中,在實際應用中,第二控制項被移除可以以onEmbedViewDetachedFromWebView表示,
onEmbedViewDetachedFromWebView可以表示終端設備的作業系統中的原生UI控制項被移除的生命週期函數。目標頁面被銷毀可以以onWebViewDestory表示,
onWebViewDestory可以表示WebView銷毀的生命週期函數。
在實施中,當目標頁面被銷毀時,全域初始化模組可以產生onEmbedViewDetachedFromWebView和
onWebViewDestory的通知消息,並可以將其發送給頁面管理模組NBComponentManager。NBComponentManager接收到onEmbedViewDetachedFromWebView和
onWebViewDestory的通知消息時,可以將
onEmbedViewDetachedFromWebView和onWebViewDestory發送給NBComponentViews,並回呼NBComponentViews將NBComponentViews的生命週期銷毀。
在步驟S824中,頁面管理模組呼叫頁面轉列模組。
在步驟S826中,根據頁面轉列模組的呼叫指示,在全域初始化模組檢測到第二控制項被移除或目標頁面被銷毀時,頁面轉列模組釋放並回收第二控制項。
本說明書實施例提供一種頁面處理方法,應用於目標頁面,該目標頁面基於超文件標示語言開發,透過獲取的目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項,執行該排版指令集中的排版指令,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面,這樣,將終端設備的作業系統中原生使用者介面(即目標使用者介面)控制項作為目標頁面中顯示控制項的子顯示控制項添加到目標頁面(即基於超文件標示語言開發的頁面)中,而不是將終端設備的作業系統中原生使用者介面控制項簡單覆蓋在目標頁面上,從而達到了將目標使用者介面的控制項融合到目標頁面的效果,使得融合在目標頁面中的第二控制項可以隨著目標頁面進行縮放,提高了用戶體驗。

實施例五
以上為本說明書實施例提供的頁面處理方法,基於同樣的思路,本說明書實施例還提供一種頁面處理裝置,所述裝置中包括目標頁面,所述目標頁面基於超文件標示語言開發,如圖9所示。
該頁面處理裝置包括:資訊獲取模組901、排版指令產生模組902和處理模組903,其中:
資訊獲取模組901,用於獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊;
排版指令產生模組902,用於根據所述第一控制項的類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;
處理模組903,用於執行所述排版指令集中的排版指令,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面。
本說明書實施例中,所述資訊獲取模組901,用於呼叫預設的程式設計介面,獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述使用者介面中的排版資訊。
本說明書實施例中,所述裝置還包括:
指令接收模組,用於接收對所述目標頁面中的所述第二控制項的管理指令,所述管理指令包括刪除指令和狀態修改指令;
指令執行模組,用於根據所述管理指令,對所述目標頁面中的所述第二控制項執行相應的操作。
本說明書實施例提供一種頁面處理裝置,包括目標頁面,該目標頁面基於超文件標示語言開發,透過獲取的目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項,執行該排版指令集中的排版指令,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面,這樣,將終端設備的作業系統中原生使用者介面(即目標使用者介面)控制項作為目標頁面中顯示控制項的子顯示控制項添加到目標頁面(即基於超文件標示語言開發的頁面)中,而不是將終端設備的作業系統中原生使用者介面控制項簡單覆蓋在目標頁面上,從而達到了將目標使用者介面的控制項融合到目標頁面的效果,使得融合在目標頁面中的第二控制項可以隨著目標頁面進行縮放,提高了用戶體驗。

實施例六
基於同樣的思路,本說明書實施例還提供一種頁面處理裝置中的頁面管理模組,所述頁面管理模組設置於目標頁面中,所述目標頁面基於超文件標示語言開發,所述目標頁面中還包括全域初始化模組,如圖10所示。
該頁面處理裝置包括:第一呼叫單元1001、指令集接收單元1002、解析單元1003和指令發送單元1004,其中:
第一呼叫單元1001,用於呼叫所述全域初始化模組,以獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊,並根據所述類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;
指令集接收單元1002,用於接收所述全域初始化模組發送的所述排版指令集;
解析單元1003,用於解析所述排版指令集中的排版指令,得到解析後的排版指令;
指令發送單元1004,用於創建頁面轉列模組,並將所述解析後的排版指令發送給所述頁面轉列模組,以使所述頁面轉列模組根據所述解析後的排版指令得到融合有所述第二控制項的目標頁面。
本說明書實施例中,所述第一呼叫單元1001,包括:
指令接收子單元,用於接收所述全域初始化模組發送的程式設計介面呼叫指令;
呼叫子單元,用於呼叫所述全域初始化模組。
本說明書實施例中,所述頁面管理模組還包括:
生命週期創建單元,用於創建所述頁面轉列模組的生命週期;
第一設置單元,用於當接收到所述全域初始化模組發送的所述生命週期不可見的通知消息時,將所述頁面轉列模組的生命週期設置為不可見狀態;
第二設置單元,用於當接收到所述全域初始化模組發送的所述生命週期恢復可見的通知消息時,將所述頁面轉列模組的生命週期設置為可見狀態。
本說明書實施例中,所述頁面管理模組還包括:
銷毀單元,用於當接收到所述全域初始化模組發送的所述第二控制項被移除或所述目標頁面被銷毀的通知消息時,銷毀所述頁面轉列模組的生命週期;
第二呼叫單元,用於呼叫所述頁面轉列模組釋放並回收所述第二控制項。
本說明書實施例提供一種頁面處理裝置中的頁面管理模組,設置於目標頁面,該目標頁面基於超文件標示語言開發,透過獲取的目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項,執行該排版指令集中的排版指令,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面,這樣,將終端設備的作業系統中原生使用者介面(即目標使用者介面)控制項作為目標頁面中顯示控制項的子顯示控制項添加到目標頁面(即基於超文件標示語言開發的頁面)中,而不是將終端設備的作業系統中原生使用者介面控制項簡單覆蓋在目標頁面上,從而達到了將目標使用者介面的控制項融合到目標頁面的效果,使得融合在目標頁面中的第二控制項可以隨著目標頁面進行縮放,提高了用戶體驗。

實施例七
基於同樣的思路,本說明書實施例還提供一種頁面處理裝置中的全域初始化模組,所述全域初始化模組設置於目標頁面中,所述目標頁面基於超文件標示語言開發,所述目標頁面中還包括頁面管理模組,如圖11所示。
該頁面處理裝置包括:指令發送單元1101、資訊獲取單元1102和請求發送模組1103,其中:
指令發送單元1101,用於向所述頁面管理模組發送程式設計介面呼叫指令;
資訊獲取單元1102,用於根據所述頁面管理模組的呼叫指示,獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊,並根據所述類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;
指令集發送單元1103,用於向所述頁面管理模組發送所述排版指令集。
本說明書實施例提供一種頁面處理裝置中的全域初始化模組,設置於目標頁面,該目標頁面基於超文件標示語言開發,透過獲取的目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項,執行該排版指令集中的排版指令,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面,這樣,將終端設備的作業系統中原生使用者介面(即目標使用者介面)控制項作為目標頁面中顯示控制項的子顯示控制項添加到目標頁面(即基於超文件標示語言開發的頁面)中,而不是將終端設備的作業系統中原生使用者介面控制項簡單覆蓋在目標頁面上,從而達到了將目標使用者介面的控制項融合到目標頁面的效果,使得融合在目標頁面中的第二控制項可以隨著目標頁面進行縮放,提高了使用者體驗。

實施例八
基於同樣的思路,本說明書實施例還提供一種頁面處理裝置中的頁面轉列模組,所述頁面轉列模組設置於目標頁面中,所述目標頁面基於超文件標示語言開發,所述目標頁面中還包括頁面管理模組和全域初始化模組,如圖12所示。
該頁面處理裝置包括:指令接收單元1201和指令執行單元1202,其中:
指令接收單元1201,用於接收所述頁面管理模組發送的排版指令,所述排版指令是所述頁面管理模組對所述全域初始化模組產生並發送的所述目標頁面的排版指令集進行解析後得到;
指令執行單元1202,用於執行所述排版指令,從預先儲存的控制項庫中獲取所述排版指令對應的第二控制項,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面,所述第二控制項是目標使用者介面中的第一控制項的類型對應的控制項。
本說明書實施例中,所述頁面轉列模組還包括:
控制項釋放單元,用於根據所述頁面轉列模組的呼叫指示,在所述全域初始化模組檢測到所述第二控制項被移除或所述目標頁面被銷毀時,釋放並回收所述第二控制項。
本說明書實施例提供一種頁面處理裝置中的頁面轉列模組,設置於目標頁面,該目標頁面基於超文件標示語言開發,透過獲取的目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項,執行該排版指令集中的排版指令,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面,這樣,將終端設備的作業系統中原生使用者介面(即目標使用者介面)控制項作為目標頁面中顯示控制項的子顯示控制項添加到目標頁面(即基於超文件標示語言開發的頁面)中,而不是將終端設備的作業系統中原生使用者介面控制項簡單覆蓋在目標頁面上,從而達到了將目標使用者介面的控制項融合到目標頁面的效果,使得融合在目標頁面中的第二控制項可以隨著目標頁面進行縮放,提高了用戶體驗。

實施例九
基於同樣的思路,本說明書實施例還提供一種頁面處理設備,如圖13所示。
所述頁面處理設備可以為上述實施例提供的終端設備。
頁面處理設備可因配置或性能不同而產生比較大的差異,可以包括一個或一個以上的處理器1301和記憶體1302,記憶體1302中可以儲存有一個或一個以上儲存應用程式或資料。其中,記憶體1302可以是短暫儲存或持久儲存。儲存在記憶體1302的應用程式可以包括一個或一個以上模組(圖示未示出),每個模組可以包括對頁面處理設備中的一系列電腦可執行指令。更進一步地,處理器1301可以設置為與記憶體1302通信,在頁面處理設備上執行記憶體1302中的一系列電腦可執行指令。頁面處理設備還可以包括一個或一個以上電源1303,一個或一個以上有線或無線網路介面1304,一個或一個以上輸入輸出介面1305,一個或一個以上鍵盤1306。
具體在本實施例中,頁面處理設備包括有記憶體,以及一個或一個以上的程式,其中一個或者一個以上程式儲存於記憶體中,且一個或者一個以上程式可以包括一個或一個以上模組,且每個模組可以包括對頁面處理設備中的一系列電腦可執行指令,且經配置以由一個或者一個以上處理器執行該一個或者一個以上套裝程式含用於進行以下電腦可執行指令:
獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊;
根據所述第一控制項的類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在目標頁面中的控制項,目標頁面,所述目標頁面基於超文件標示語言開發;
執行所述排版指令集中的排版指令,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面。
可選地,所述獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述使用者介面中的排版資訊,包括:
呼叫預設的程式設計介面,獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述使用者介面中的排版資訊。
可選地,還包括:
接收對所述目標頁面中的所述第二控制項的管理指令,所述管理指令包括刪除指令和狀態修改指令;
根據所述管理指令,對所述目標頁面中的所述第二控制項執行相應的操作。
本說明書實施例提供一種頁面處理設備,包括目標頁面,該目標頁面基於超文件標示語言開發,透過獲取的目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項,執行該排版指令集中的排版指令,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面,這樣,將終端設備的作業系統中原生使用者介面(即目標使用者介面)控制項作為目標頁面中顯示控制項的子顯示控制項添加到目標頁面(即基於超文件標示語言開發的頁面)中,而不是將終端設備的作業系統中原生使用者介面控制項簡單覆蓋在目標頁面上,從而達到了將目標使用者介面的控制項融合到目標頁面的效果,使得融合在目標頁面中的第二控制項可以隨著目標頁面進行縮放,提高了用戶體驗。

實施例十
基於同樣的思路,本說明書實施例還提供一種頁面處理設備,如圖14所示。
所述頁面處理設備可以為上述實施例提供的終端設備。
頁面處理設備可因配置或性能不同而產生比較大的差異,可以包括一個或一個以上的處理器1401和記憶體1402,記憶體1402中可以儲存有一個或一個以上儲存應用程式或資料。其中,記憶體1402可以是短暫儲存或持久儲存。儲存在記憶體1402的應用程式可以包括一個或一個以上模組(圖示未示出),每個模組可以包括對頁面處理設備中的一系列電腦可執行指令。更進一步地,處理器1401可以設置為與記憶體1402通信,在頁面處理設備上執行記憶體1402中的一系列電腦可執行指令。頁面處理設備還可以包括一個或一個以上電源1403,一個或一個以上有線或無線網路介面1404,一個或一個以上輸入輸出介面1405,一個或一個以上鍵盤1406。
具體在本實施例中,頁面處理設備包括有記憶體,以及一個或一個以上的程式,其中一個或者一個以上程式儲存於記憶體中,且一個或者一個以上程式可以包括一個或一個以上模組,且每個模組可以包括對頁面處理設備中的一系列電腦可執行指令,且經配置以由一個或者一個以上處理器執行該一個或者一個以上套裝程式含用於進行以下電腦可執行指令:
應用於目標頁面,所述目標頁面基於超文件標示語言開發,所述目標頁面中包括全域初始化模組,包括:
呼叫所述全域初始化模組,以獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊,並根據所述類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;
接收所述全域初始化模組發送的所述排版指令集;
解析所述排版指令集中的排版指令,得到解析後的排版指令;
創建頁面轉列模組,並將所述解析後的排版指令發送給所述頁面轉列模組,以使所述頁面轉列模組根據所述解析後的排版指令得到融合有所述第二控制項的目標頁面。
可選地,所述呼叫所述全域初始化模組,包括:
接收所述全域初始化模組發送的程式設計介面呼叫指令;
呼叫所述全域初始化模組。
可選地,所述創建頁面轉列模組之後,所述方法還包括:
創建所述頁面轉列模組的生命週期;
當接收到所述全域初始化模組發送的所述生命週期不可見的通知消息時,將所述頁面轉列模組的生命週期設置為不可見狀態;
當接收到所述全域初始化模組發送的所述生命週期恢復可見的通知消息時,將所述頁面轉列模組的生命週期設置為可見狀態。
可選地,所述方法還包括:
當接收到所述全域初始化模組發送的所述第二控制項被移除或所述目標頁面被銷毀的通知消息時,銷毀所述頁面轉列模組的生命週期;
呼叫所述頁面轉列模組釋放並回收所述第二控制項。
具體在本實施例中,頁面處理設備包括有記憶體,以及一個或一個以上的程式,其中一個或者一個以上程式儲存於記憶體中,且一個或者一個以上程式可以包括一個或一個以上模組,且每個模組可以包括對頁面處理設備中的一系列電腦可執行指令,且經配置以由一個或者一個以上處理器執行該一個或者一個以上套裝程式含用於進行以下電腦可執行指令:
應用於目標頁面,所述目標頁面基於超文件標示語言開發,所述目標頁面中包括頁面管理模組,包括:
向所述頁面管理模組發送程式設計介面呼叫指令;
根據所述頁面管理模組的呼叫指示,獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊,並根據所述類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;
向所述頁面管理模組發送所述排版指令集。
具體在本實施例中,頁面處理設備包括有記憶體,以及一個或一個以上的程式,其中一個或者一個以上程式儲存於記憶體中,且一個或者一個以上程式可以包括一個或一個以上模組,且每個模組可以包括對頁面處理設備中的一系列電腦可執行指令,且經配置以由一個或者一個以上處理器執行該一個或者一個以上套裝程式含用於進行以下電腦可執行指令:
應用於目標頁面,所述目標頁面基於超文件標示語言開發,所述目標頁面中包括頁面管理模組和全域初始化模組,包括:
接收所述頁面管理模組發送的排版指令,所述排版指令是所述頁面管理模組對所述全域初始化模組產生並發送的所述目標頁面的排版指令集進行解析後得到;
執行所述排版指令,從預先儲存的控制項庫中獲取所述排版指令對應的第二控制項,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面,所述第二控制項是目標使用者介面中的第一控制項的類型對應的控制項。
可選地,所述方法還包括:
根據所述頁面轉列模組的呼叫指示,在所述全域初始化模組檢測到所述第二控制項被移除或所述目標頁面被銷毀時,釋放並回收所述第二控制項。
本說明書實施例提供一種頁面處理設備,包括目標頁面,該目標頁面基於超文件標示語言開發,透過獲取的目標使用者介面中的第一控制項的類型,以及第一控制項在目標使用者介面中的排版資訊,產生該類型對應的第二控制項在目標頁面中的排版指令集,第二控制項為預先儲存,且可融合在目標頁面中的控制項,執行該排版指令集中的排版指令,在目標頁面中對第二控制項進行排版處理和轉列處理,得到融合有第二控制項的目標頁面,這樣,將終端設備的作業系統中原生使用者介面(即目標使用者介面)控制項作為目標頁面中顯示控制項的子顯示控制項添加到目標頁面(即基於超文件標示語言開發的頁面)中,而不是將終端設備的作業系統中原生使用者介面控制項簡單覆蓋在目標頁面上,從而達到了將目標使用者介面的控制項融合到目標頁面的效果,使得融合在目標頁面中的第二控制項可以隨著目標頁面進行縮放,提高了用戶體驗。
上述對本說明書特定實施例進行了描述。其它實施例在所附申請專利範圍的範圍內。在一些情況下,在申請專利範圍中記載的動作或步驟可以按照不同於實施例中的順序來執行並且仍然可以實現期望的結果。另外,在圖式中描繪的過程不一定要求示出的特定順序或者連續順序才能實現期望的結果。在某些實施方式中,多工處理和並行處理也是可以的或者可能是有利的。
在20世紀90年代,對於一個技術的改進可以很明顯地區分是硬體上的改進(例如,對二極體、電晶體、開關等電路結構的改進)還是軟體上的改進(對於方法流程的改進)。然而,隨著技術的發展,當今的很多方法流程的改進已經可以視為硬體電路結構的直接改進。設計人員幾乎都透過將改進的方法流程程式設計到硬體電路中來得到相應的硬體電路結構。因此,不能說一個方法流程的改進就不能用硬體實體模組來實現。例如,可程式設計邏輯器件(Programmable Logic Device,PLD)(例如現場可程式設計閘陣列(Field Programmable Gate Array,FPGA))就是這樣一種積體電路,其邏輯功能由使用者對器件程式設計來確定。由設計人員自行程式設計來把一個數位系統“整合”在一片PLD上,而不需要請晶片製造廠商來設計和製作專用的積體電路晶片。而且,如今,取代手工地製作積體電路晶片,這種程式設計也多半改用“邏輯編譯器(logic compiler)”軟體來實現,它與程式開發撰寫時所用的軟體編譯器相類似,而要編譯之前的原始代碼也得用特定的程式設計語言來撰寫,此稱之為硬體描述語言(Hardware Description Language,HDL),而HDL也並非僅有一種,而是有許多種,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University
Programming Language)、HDCal、JHDL(Java Hardware
Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language)等,目前最普遍使用的是VHDL(Very-High-Speed Integrated Circuit Hardware Description Language)與Verilog。本領域技術人員也應該清楚,只需要將方法流程用上述幾種硬體描述語言稍作邏輯程式設計並程式設計到積體電路中,就可以很容易得到實現該邏輯方法流程的硬體電路。
控制器可以按任何適當的方式實現,例如,控制器可以採取例如微處理器或處理器以及儲存可由該(微)處理器執行的電腦可讀程式碼(例如軟體或韌體)的電腦可讀媒體、邏輯閘、開關、專用積體電路(Application Specific Integrated Circuit,ASIC)、可程式設計邏輯控制器和嵌入微控制器的形式,控制器的例子包括但不限於以下微控制器:ARC 625D、Atmel AT91SAM、Microchip
PIC18F26K20 以及Silicone Labs C8051F320,記憶體控制器還可以被實現為記憶體的控制邏輯的一部分。本領域技術人員也知道,除了以純電腦可讀程式碼方式實現控制器以外,完全可以透過將方法步驟進行邏輯程式設計來使得控制器以邏輯閘、開關、專用積體電路、可程式設計邏輯控制器和嵌入微控制器等的形式來實現相同功能。因此這種控制器可以被認為是一種硬體部件,而對其內包括的用於實現各種功能的裝置也可以視為硬體部件內的結構。或者甚至,可以將用於實現各種功能的裝置視為既可以是實現方法的軟體模組又可以是硬體部件內的結構。
上述實施例闡明的系統、裝置、模組或單元,具體可以由電腦晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為電腦。具體的,電腦例如可以為個人電腦、膝上型電腦、行動電話、相機電話、智慧型電話、個人數位助理、媒體播放機、導航設備、電子郵件設備、遊戲控制台、平板電腦、可穿戴設備或者這些設備中的任何設備的組合。
為了描述的方便,描述以上裝置時以功能分為各種單元分別描述。當然,在實施本說明書一個或多個實施例時可以把各單元的功能在同一個或多個軟體和/或硬體中實現。
本領域內的技術人員應明白,本說明書的實施例可提供為方法、系統、或電腦程式產品。因此,本說明書一個或多個實施例可採用完全硬體實施例、完全軟體實施例、或結合軟體和硬體方面的實施例的形式。而且,本說明書一個或多個實施例可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存媒體(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。
本說明書的實施例是參照根據本說明書實施例的方法、設備(系統)、和電腦程式產品的流程圖和/或方塊圖來描述的。應理解可由電腦程式指令實現流程圖和/或方塊圖中的每一流程和/或方塊、以及流程圖和/或方塊圖中的流程和/或方塊的結合。可提供這些電腦程式指令到通用電腦、專用電腦、嵌入式處理機或其他可程式設計資料處理設備的處理器以產生一個機器,使得透過電腦或其他可程式設計資料處理設備的處理器執行的指令產生用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的裝置。
這些電腦程式指令也可儲存在能引導電腦或其他可程式設計資料處理設備以特定方式工作的電腦可讀記憶體中,使得儲存在該電腦可讀記憶體中的指令產生包括指令裝置的製造品,該指令裝置實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能。
這些電腦程式指令也可裝載到電腦或其他可程式設計資料處理設備上,使得在電腦或其他可程式設計設備上執行一系列操作步驟以產生電腦實現的處理,從而在電腦或其他可程式設計設備上執行的指令提供用於實現在流程圖一個流程或多個流程和/或方塊圖一個方塊或多個方塊中指定的功能的步驟。
在一個典型的配置中,計算設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路介面和記憶體。
記憶體可能包括電腦可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)和/或非易失性記憶體等形式,如唯讀記憶體(ROM)或快閃記憶體(flash RAM)。記憶體是電腦可讀媒體的示例。
電腦可讀媒體包括永久性和非永久性、可移動和非可移動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是電腦可讀指令、資料結構、程式的模組或其他資料。電腦的儲存媒體的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可擦除可程式設計唯讀記憶體(EEPROM)、快閃記憶體或其他記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁片儲存或其他磁性存放裝置或任何其他非傳輸媒體,可用於儲存可以被計算設備接達的資訊。按照本文中的界定,電腦可讀媒體不包括暫存電腦可讀媒體(transitory media),如調變的資料信號和載波。
還需要說明的是,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、商品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、商品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、商品或者設備中還存在另外的相同要素。
本領域技術人員應明白,本說明書的實施例可提供為方法、系統或電腦程式產品。因此,本說明書一個或多個實施例可採用完全硬體實施例、完全軟體實施例或結合軟體和硬體方面的實施例的形式。而且,本說明書一個或多個實施例可採用在一個或多個其中包含有電腦可用程式碼的電腦可用儲存媒體(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的電腦程式產品的形式。
本說明書一個或多個實施例可以在由電腦執行的電腦可執行指令的一般上下文中描述,例如程式模組。一般地,程式模組包括執行特定任務或實現特定抽象資料類型的常式、程式、物件、元件、資料結構等等。也可以在分散式運算環境中實踐本說明書一個或多個實施例,在這些分散式運算環境中,由透過通信網路而被連接的遠端處理設備來執行任務。在分散式運算環境中,程式模組可以位於包括存放裝置在內的本地和遠端電腦儲存媒體中。
本說明書中的各個實施例均採用遞進的方式描述,各個實施例之間相同相似的部分互相參見即可,每個實施例重點說明的都是與其他實施例的不同之處。尤其,對於系統實施例而言,由於其基本相似於方法實施例,所以描述的比較簡單,相關之處參見方法實施例的部分說明即可。
以上所述僅為本說明書的實施例而已,並不用於限制本說明書。對於本領域技術人員來說,本說明書可以有各種更改和變化。凡在本說明書的精神和原理之內所作的任何修改、等同替換、改進等,均應包含在本說明書的申請專利範圍之內。
The embodiments of the present specification provide a page processing method, device, and device.
In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described in combination with the drawings in the embodiments of this specification. Obviously, the described The examples are only a part of examples of this specification, but not all examples. Based on the embodiments in this specification, all other embodiments obtained by a person of ordinary skill in the art without creative efforts should fall within the protection scope of this specification.

Example one
As shown in FIG. 1, an embodiment of the present specification provides a page processing method. The method may be executed by a terminal device or a server. The terminal device may be a device such as a personal computer or a mobile phone or a tablet computer. Terminal equipment, which may be a terminal equipment used by a user. The server can be an independent server or a server cluster composed of multiple servers, and the server can be a background server for a business or a website (such as an online shopping website) Or payment applications, etc.). This method can be used to generate a page corresponding to a control item in the native user interface in the operating system of the terminal device (that is, the target page mentioned in this embodiment), and the page is based on a hyper-file markup language (that is, Hyper Text Markup Language, HTML) development, where the hyperfile markup languages can include HTML 2.0, HTML 3.2, HTML 4.0, HTML 5 and so on. In order to simplify the page processing process and page processing efficiency, in this embodiment, the execution subject is a terminal device as an example. For the case of the server, it can be processed according to the following related content, which is not repeated here. The method may specifically include the following steps:
In step S102, the type of the first control item in the target user interface and typesetting information of the first control item in the target user interface are obtained.
The target user interface may be a native user interface (ie, UI, User Interface) in the operating system of the terminal device, and the operating system of the terminal device may include an Android (ie, Android) operating system and an iOS operating system. The first control item may be any control item in a user interface of the operating system, such as a button, an input box control item, a search box control item, a calendar control item, or an upload picture control item. The typesetting information can be information used to indicate the size, position, and other related information of the control item on the page. The typesetting information can help the terminal device to transfer and display the page. The type of control item can be set according to the actual situation. For example, it can be classified according to the role and purpose of the control item, such as button type, input box type, or upload image type. In practical applications, it may not be limited to the above classification, but it can also be based on The above classification results are further classified. For example, the button type can also be classified into a round button type, a rectangular button type, or the like, or the type of the control item can be directly classified into a round button type, a rectangular button type, an input box type, or an uploaded picture. The class and the like are not limited in the embodiments of the present specification.
In implementation, the super document markup language is an application under the standard universal markup language, and it is also a specification, a standard, which marks each part of a web page to be displayed through markup symbols. The webpage file itself is a text file. By adding tags to the text file, you can instruct the browser how to display the content (such as how the text is processed, how the screen is arranged, and how pictures are displayed). The browser can read the webpage file in the order of the content in the webpage file, and then interpret and display the content it tags based on the tags. Among them, different browsers may have different interpretations of the same tag, and may have different display effects. The production of hyperdocument markup language documents is not very complicated, but it is powerful and supports file embedding in different data formats. Hyperfile markup language can have the main features of simplicity, scalability, platform independence and versatility. Since the upgrade of the hyperfile markup language version usually adopts the super-collection method, the hyperfile markup language can be more flexible and convenient, and Hyperfile markup language can be used on a wide range of operating platforms (that is, multiple operating system platforms, such as Windows operating system platform or Mac OS platform, etc.), and Hyperfile markup language allows web page authors to create a combination of text and images Complex pages can be viewed no matter what type of terminal device or browser the user is using.
Pages (ie, target pages) developed based on the hyperfile markup language may include more complex elements, such as maps. Taking a target page developed based on the hyperfile markup language as an example, if a map is displayed through the target page, the map Usually, the user is required to perform zooming. During the zooming process, it may be difficult for the user to zoom in and out of the map with the touch of a finger. The user ’s touch operation experience is poor, and the target page ’s scrolling efficiency is low.
The user interface in a terminal device is usually composed of one or more control items. Multiple different user interfaces can be constructed through different control items. Different control items can implement different functions. For example, the user The interface can include map controls. The user can zoom in or out the map in the map control item at will through the map control item and finger touch. Obviously, the control item in the user interface in the terminal device can perform This provides a better touch operation experience, and the user interface's transposition efficiency is relatively high.
If the control items in the user interface of the terminal device can be displayed on the target page, the touch operation experience of the target page and the conversion efficiency of the target page can be improved. Generally, the The control items in the native user interface (that is, the target user interface) are overlaid on the target page. It should be noted that in actual applications, the control items in the target user interface are overlaid on the target page. , It can be to override the control in the target user interface to the Webview control on the target page. However, the target page obtained by the above overlay method needs to restrict the target page from being able to be scaled, because the control items in the target user interface covered by the target page cannot be scaled as the target page is scaled. Keep the original style of the control unchanged, which will cause users trouble and poor user experience. To this end, the embodiment of the present specification provides a solution that can include a control page in a user interface, and the control item in the control page can also be scaled as the target page is scaled, which may specifically include the following:
As shown in FIG. 2A, when one or more native user interfaces (that is, target user interfaces) in an operating system of a terminal device need to be based on a hyperdocument markup language (the hyperfile markup language in this embodiment may be HTML 5 is taken as an example.) When the target page developed is displayed, the target user interface can be obtained through a preset interface. The target user interface can be analyzed and calculated to determine the control items included in the target user interface. A control item), at the same time, the size and position of each first control item in the target user interface can be recorded, where the position can be expressed in the form of coordinates, or a certain position can be used as the center point To determine the relative position between the first control item and the center point. The type information of the first control in the target user interface may be generated by using the recorded size and size of each first control and the position in the target user interface. In addition, each first control item in the target user interface can be analyzed to determine the type of each first control item. For example, it includes three first control items, one of which is a button. Another first control item is a search box control item, and the third first control item is an upload picture control item. The types of the first control item include a button type, a search box type, and an upload picture type. Accordingly, for the above, Press the key to generate the typesetting information of a key. For the search box control, you can generate the typesetting information of the search box control. For the upload image control, you can generate the typesetting information of the upload picture control.
In step S104, according to the type of the first control item and the typesetting information, a typesetting instruction set of the second control item corresponding to the type on the target page is generated. The second control item is stored in advance and can be fused on the target page. Controls in.
The second control item may be a control item pre-stored in the browser where the target page is located, or it may be a control item pre-stored in the database corresponding to the target page or the database corresponding to the above browser. The second control item It can be the development of the target user interface or the creation of a technician. Since the creation of the second control item fully takes into account the environment of the target page developed based on the hyperfile markup language, that is, the second control item needs to be used in the target page, you can Zoom with the target page zoom, and the second control item can be the same type as the first control item in the target user interface, and they correspond to each other. For example, the first control item is a button and the second control item It should also be a button, and the second control item can be exactly the same in appearance and function as the first control item. The typesetting instruction set may be a set composed of one or more typesetting instructions. Each typesetting instruction may be independent of or related to each other. If multiple typesetting instructions are related to each other, the typesetting instruction may further include a storage relationship. Marking of typesetting instructions, etc.
In implementation, the browser in which the target page is located, or the database corresponding to the target page, or the database corresponding to the above browser, may store in advance the control items in the native user interface of the operating system of the terminal device. Corresponding control. After the terminal device determines the type of the first control item through the processing in step S102, the terminal device can search for the control item corresponding to the determined type among the pre-stored control items through the determined type. Control as the second control corresponding to the first control, and then, from the typesetting information obtained through the processing of step S102 above, the typesetting information of the first control item in the target user interface may be found, After finding it, you can extract the size and position of the first control in the found layout information and its position in the target user interface.
An empty target page can be created. The size of the corresponding second control item can be determined based on the inherent properties of the target page and the size of the first control item. At the same time, the inherent properties of the target page can also be determined. According to the position of the first control item in the target user interface, the position of the corresponding second control item in the target page is determined. The typesetting information of the second control item on the target page can be generated through the inherent properties of the target page, the size of the second control item, and the position of the second control item on the target page, and can be generated based on the generated typesetting information. The second control item has one or more typesetting instructions in the target page to obtain a typesetting instruction set of the second control item in the target page.
It should be noted that multiple first control items can be included, and corresponding second control items should also be multiple. Moreover, the number of first control items is equal to the number of second control items. In the case of items, the typesetting instruction or typesetting instruction set of each second control item in the target page can be obtained separately through the above-mentioned methods.
In step S106, the typesetting instruction in the typesetting instruction set is executed, and the second control item is subjected to typesetting processing and transposition processing in the target page to obtain a target page fused with the second control item.
Among them, the typesetting process can be a combination of page constituent elements (such as text, pictures, line frames, color blocks, etc.) in a limited page space, according to the needs of specific content, and use modeling elements and form principles, The process of arranging elements in a page. The transposition process may be a process of calculating a page to be rendered to obtain a display effect of the page.
In implementation, after the typesetting instruction set of the second control item in the target page is obtained through the processing of the above step S104, the terminal device may parse the typesetting instruction set in the typesetting instruction set separately to convert the data of the typesetting instruction set in the typesetting instruction set. Into the information that the display component or display module can identify. Then, the display component or display module of the terminal device can execute the parsed typesetting instruction. The parsed typesetting instruction can determine the relevant information of the second control item and can be obtained from The second control item is extracted from the control items stored in advance. As shown in FIG. 2B, the size and size of the second control item and the position of the second control item in the target page can also be determined through the parsed typesetting instruction. Then, the determined size and the size of the second control item in the target page can be determined. Position, performing typesetting processing on the second control item in the target page to obtain a typesetting result of the second control item in the target page. The above process can be performed on each second control item to obtain the layout results of other second control items on the target page. The layout results of each second control item on the target page can be synthesized to obtain the overall target page. The typesetting result, finally, the target page can be transposed based on the overall typesetting result of the target page, so that the target page of the overall typesetting result can be presented, thereby obtaining a target page incorporating the second control item.
Based on the above processing, since the second control item can be integrated into the target page (rather than being overlaid on the target page as in the related art), the second control item can be scaled as the target page is scaled. The control corresponds to the first control in the target user interface, and the layout of the second control in the target page also corresponds to the layout of the first control in the target user interface. Generate a target page that incorporates the second control item and the target user interface that contains the first control item in the same or similar presentation or display results (for example, the appearance of the two pages are the same or similar), thereby giving the user a way to target The feeling that the user interface (or the controls therein) has been transferred to the target page, and the controls in the target page can also be scaled as the target page is zoomed, improving the user experience.
The embodiment of the specification provides a page processing method, which is applied to a target page. The target page is developed based on a super document markup language. The type of the first control item in the target user interface obtained through the target page and the first control item in the target user. The typesetting information in the interface generates the typesetting instruction set of the second control corresponding to this type on the target page. The second control is a control item that is stored in advance and can be integrated in the target page to execute the typesetting in the typesetting instruction set. Instruction to perform typesetting processing and transposition processing on the second control item in the target page to obtain a target page incorporating the second control item. In this way, the native user interface (ie, the target user interface) in the operating system of the terminal device is obtained. Controls are added to the target page as a sub-display control of the display control in the target page (that is, a page developed based on HyperFile Markup Language), instead of simply covering the target with the native user interface controls in the operating system of the terminal device Page to achieve the effect of integrating the controls of the target user interface into the target page , So that the second control integrated in the target page can be scaled with the target page, improving the user experience.

Example two
As shown in FIG. 3, an embodiment of the present specification provides a method for processing a page. The method may be executed by a terminal device or a server. The terminal device may be a device such as a personal computer or a mobile phone or a tablet computer. Terminal equipment, which may be a terminal equipment used by a user. The server can be an independent server or a server cluster composed of multiple servers, and the server can be a background server for a business or a website (such as an online shopping website) Or payment applications, etc.). This method can be used to generate a page corresponding to a control item in the native user interface in the operating system of the terminal device (that is, the target page mentioned in this embodiment), and the page is based on a hyper-file markup language (that is, Hyper Text Markup Language, HTML) development, where the hyperfile markup languages can include HTML 2.0, HTML 3.2, HTML 4.0, HTML 5 and so on. In order to simplify the page processing process and page processing efficiency, in this embodiment, the execution subject is a terminal device as an example. For the case of the server, it can be processed according to the following related content, which is not repeated here. The method may specifically include the following steps:
In step S302, a preset programming interface is called to obtain the type of the first control item in the target user interface and the typesetting information of the first control item in the user interface.
The programming interface can be composed of one or more predefined functions. The purpose is to provide the ability for applications and developers (or technicians) to access a set of routines based on certain software or hardware, without the need for Access the source code or understand the details of the internal working mechanism, etc., specifically, JSAPI (JavaScript Application Programming Interface, Java description language application programming development interface), etc.
In implementation, when it is necessary to use one or more native user interfaces (that is, target user interfaces) in the operating system of the terminal device based on a hyperdocument markup language (the hyperfile markup language in this embodiment may be HTML 5 As an example, when the developed target page is displayed, you can call the preset programming interface (such as JSAPI, etc.) to obtain the target user interface, and analyze and calculate the target user interface to determine the target user interface. The controls contained in the control (ie, the first control), and at the same time, the size and position of each first control can be recorded in the target user interface. The type information of the first control in the target user interface may be generated by using the recorded size and size of each first control and the position in the target user interface. In addition, each first control item in the target user interface may be analyzed to determine the type to which each first control item belongs.
In step S304, according to the type of the first control item and the typesetting information, a typesetting instruction set of the second control item corresponding to the type on the target page is generated. The second control item is stored in advance and can be fused on the target page. Controls in.
The content of the step S304 is the same as that of the step S104 in the first embodiment. For the specific processing procedure of the step S304, refer to the related content of the step S104 in the first embodiment, which is not repeated here.
In step S306, the typesetting instruction in the typesetting instruction set is executed, and the second control item is subjected to typesetting processing and transposition processing in the target page to obtain a target page fused with the second control item.
The content of the step S306 is the same as that of the step S106 in the first embodiment. For the specific processing procedure of the step S306, refer to the related content of the step S106 in the first embodiment, which will not be repeated here.
In addition, after obtaining the target page incorporating the second control item through the above method, the second control item in the target page can also be managed to obtain the processed target page. For details, refer to the processing of steps S308 and S310 below. .
In step S308, a management instruction for the second control item in the target page is received. The management instruction may include a deletion instruction, a status modification instruction, and the like.
The state modification instruction may be to modify the second control item from one state to another state, for example, to change the second control item from an untriggered state to a triggered state.
In implementation, when one or more second control items in the target page need to be deleted, a second control item management button provided in the browser where the target page is located or in the target page may be triggered. For the deletion instruction of the one or more second control items in the target page, the terminal device may receive the deletion instruction of the one or more second control items in the target page.
In addition, when the state of one or more second control items on the target page needs to be modified, the second control item management button provided in the browser where the target page is located or the target page can be triggered. Based on the above information, the current status information of the second control item and the modified status information can generate a status modification instruction for the one or more second control items in the target page, and the terminal device can receive the one of the target page. Or state modification instructions of the second control item or items.
In step S310, a corresponding operation is performed on the second control item in the target page according to the management instruction.
In implementation, when a delete instruction is received for the one or more second control items in the target page, the identifier of the one or more second control items that need to be deleted can be obtained, and from this, the target page can be retrieved from the target page. When one or more second control items are found, the one or more second control items can be deleted from the target page.
When receiving the status modification instruction for the one or more second control items in the target page, the identifiers of the one or more second control items that need to be modified can be obtained, and the target page can be searched from this To the corresponding one or more second control items, the one or more second control items may be modified from the state corresponding to the current state information to the state corresponding to the modified state information.
The embodiment of the specification provides a page processing method, which is applied to a target page. The target page is developed based on a super document markup language. The type of the first control item in the target user interface obtained through the target page and the first control item in the target user. The typesetting information in the interface generates the typesetting instruction set of the second control corresponding to this type on the target page. The second control is a control item that is stored in advance and can be integrated in the target page to execute the typesetting in the typesetting instruction set. Instruction to perform typesetting processing and transposition processing on the second control item in the target page to obtain a target page incorporating the second control item. In this way, the native user interface (ie, the target user interface) in the operating system of the terminal device is obtained. Controls are added to the target page as a sub-display control of the display control in the target page (that is, a page developed based on HyperFile Markup Language), instead of simply covering the target with the native user interface controls in the operating system of the terminal device Page to achieve the effect of integrating the controls of the target user interface into the target page , So that the second control integrated in the target page can be scaled with the target page, which improves the user experience.
The first embodiment and the second embodiment are described in detail by using a terminal device (or a browser installed in the terminal device or a target page in the browser) as an execution subject. The target page needs to obtain a target user interface. The related information of the first control item in the process also needs to process the related information obtained above, and display the target page in turn. In actual applications, the target page can also be changed according to its different functions. It is divided into different modules for execution. In the following third and fourth embodiments, the target page is divided into a page management module, a global initialization module, and a page transfer module. The details are described below. Among them, the page The management module can be represented by NBComponentManager, the global initialization module can be represented by NBComponentJSLoader, the page transposition module can be represented by NBComponentViews, the target page can be represented by Webview, and Webview can be a terminal device's operating system. UI control for the target page developed by language (such as HTML 5 etc.). In addition, the target page can not only be divided into the above three modules, but also can be divided into more detailed modules into three or more modules. In addition, even if the target page is divided into three modules, It can not only be divided into page management module, global initialization module and page transfer module, but also can be divided into other types of three different modules according to the function of the target page. For the above situation, the specific Processing can be performed with reference to the following.

Example three
As shown in FIG. 4, an embodiment of the present specification provides a page processing method. The method may be executed by a terminal device or a server. The terminal device may be a device such as a personal computer or a mobile phone or a tablet. Terminal equipment, which may be a terminal equipment used by a user. The server can be an independent server or a server cluster composed of multiple servers, and the server can be a background server for a business or a website (such as an online shopping website) Or payment applications, etc.). This method can be used to generate a page corresponding to a control item in the native user interface in the operating system of the terminal device (that is, the target page mentioned in this embodiment), and the page is based on a hyper-file markup language (that is, Hyper Text Markup Language, HTML) development, where the hyperfile markup languages can include HTML 2.0, HTML 3.2, HTML 4.0, HTML 5 and so on. In order to simplify the page processing process and page processing efficiency, this embodiment uses the terminal device as an example for description. For the case of the server, it can be processed according to the following related content, which is not repeated here. In addition, the method The execution body may specifically be a page management module (i.e.NBComponentManager) in the target page in the terminal device
). The method may specifically include the following steps:
In step S402, the global initialization module is called to obtain the type of the first control item in the target user interface and the typesetting information of the first control item in the target user interface, and according to the above type and the typesetting information, The typesetting instruction set of the second control item corresponding to this type in the target page is generated. The second control item is a control item that is stored in advance and can be fused in the target page.
Among them, the global initialization module (that is, NBComponentJSLoader) can be run in Webview to calculate and generate a typesetting instruction set. The main function of the page management module NBComponentManager can be to communicate with the global initialization module NBComponentJSLoader to obtain the typesetting instruction set and manage the display of the page transfer module NBComponentViews.
In the implementation, as shown in FIG. 5, the target page may include 6 parts, which are a page management module NBComponentManager, a global initialization module NBComponentJSLoader, and a page transfer module.
NBComponentViews, Webview, Control Management Module
NBComponentViewManager, programming interface JSAPI, etc.
The control item management module NBComponentViewManager is
NBComponentView plug-in programmatic manager, users can develop and register custom NBComponentViews and so on.
When it is necessary to use one or more native user interfaces (that is, target user interfaces) in the operating system of the terminal device to use a hyperdocument markup language (the hyperfile markup language in this embodiment can be described using HTML 5 as an example) ) When the developed target page is displayed, the page management module
NBComponentManager can call the global initialization module
NBComponentJSLoader, NBComponentJSLoader can obtain the target user interface, and can analyze and calculate the target user interface to determine the control items (ie the first control items) contained in the target user interface. At the same time, it can record the first control item. Size and position in the target user interface. The type information of the first control in the target user interface may be generated by using the recorded size and size of each first control and the position in the target user interface. In addition, each first control item in the target user interface may be analyzed to determine the type to which each first control item belongs.
The page reversion module NBComponentViews can store in advance control items corresponding to the control items in the native user interface of the operating system of the terminal device. After the NBComponentJSLoader determines the type of the first control item through the above processing, it can find the second control item corresponding to the determined type in the pre-stored control items through the determined type. Then, the NBComponentJSLoader can use the obtained layout information from To find the layout information of the first control in the target user interface, so as to obtain the size and position of the first control in the target user interface.
NBComponentJSLoader can determine the size of the corresponding second control item according to the size of the first control item. At the same time, NBComponentJSLoader can also determine the corresponding second control item according to the position of the first control item in the target user interface. Position on the target page. NBComponentJSLoader can generate the typesetting instruction set of the second control item on the target page by the size of the second control item and the position of the second control item on the target page.
In step S404, the typesetting instruction set sent by the global initialization module is received.
In step S406, the typesetting instructions in the typesetting instruction set are parsed to obtain the parsed typesetting instructions.
In the implementation, since the data of the typesetting instructions in the typesetting instruction set generated by NBComponentJSLoader is not recognized by NBComponentViews, in this way, NBComponentViews will not be able to execute the typesetting instructions for typesetting processing and transposition processing to obtain the corresponding target pages. The typesetting instructions in the typesetting instruction set can be parsed to obtain parsed typesetting instructions that can be recognized by NBComponentViews.
In step S408, a page transposition module is created, and the parsed typesetting instruction is sent to the page transposition module, so that the page transposition module obtains the second control item fused according to the parsed typesetting instruction. The target page.
In the implementation, in the process of typesetting instructions in the NBComponentManager typesetting instruction set, corresponding NBComponentViews can be created, and the NBComponentViews are integrated into the Webview. Then, you can send the typesetting instructions parsed by NBComponentManager to
NBComponentViews. NBComponentViews can process the parsed typesetting instructions. Based on the data and attributes in the parsed typesetting instructions, it can obtain the second control item and merge the second control item into the target page (that is, the HTML 5 page) and display the target. Page (ie HTML 5 page).
As shown in FIG. 6, an embodiment of the present specification provides a method for processing a page. The method may be executed by a terminal device or a server. The terminal device may be a device such as a personal computer or a mobile phone or a tablet. Terminal equipment, which may be a terminal equipment used by a user. The server can be an independent server or a server cluster composed of multiple servers, and the server can be a background server for a business or a website (such as an online shopping website) Or payment applications, etc.). This method can be used to generate a page corresponding to a control item in the native user interface in the operating system of the terminal device (that is, the target page mentioned in this embodiment), and the page is based on a hyper-file markup language (that is, Hyper Text Markup Language, HTML) development, where the hyperfile markup languages can include HTML 2.0, HTML 3.2, HTML 4.0, HTML 5 and so on. In order to simplify the page processing process and page processing efficiency, this embodiment uses the terminal device as an example for description. For the case of the server, it can be processed according to the following related content, which is not repeated here. In addition, the method The execution body may specifically be a global initialization module in the target page in the terminal device (i.e.
NBComponentJSLoader). The method may specifically include the following steps:
In step S602, a programming interface call instruction is sent to the page management module.
In step S604, the type of the first control item in the target user interface and the typesetting information of the first control item in the target user interface are obtained according to the call instruction of the page management module, and according to the type and the typesetting Information to generate a typesetting instruction set for the second control item corresponding to the type on the target page. The second control item is a control item that is stored in advance and can be integrated into the target page.
In step S606, the typesetting instruction set is sent to the page management module.
As shown in FIG. 7, an embodiment of the present specification provides a page processing method. The method may be executed by a terminal device or a server. The terminal device may be a device such as a personal computer or a mobile phone or a tablet computer. Terminal equipment, which may be a terminal equipment used by a user. The server can be an independent server or a server cluster composed of multiple servers, and the server can be a background server for a business or a website (such as an online shopping website) Or payment applications, etc.). This method can be used to generate a page corresponding to a control item in the native user interface in the operating system of the terminal device (that is, the target page mentioned in this embodiment), and the page is based on a hyper-file markup language (that is, Hyper Text Markup Language, HTML) development, where the hyperfile markup languages can include HTML 2.0, HTML 3.2, HTML 4.0, HTML 5 and so on. In order to simplify the page processing process and page processing efficiency, this embodiment uses the terminal device as an example for description. For the case of the server, it can be processed according to the following related content, which is not repeated here. In addition, the method The execution subject may specifically be a page transfer module NBComponentViews in the target page in the terminal device. The method may specifically include the following steps:
In step S702, a typesetting instruction sent by a page management module is received. The typesetting instruction is obtained after the page management module parses a typesetting instruction set of a target page generated and sent by the global initialization module.
In step S704, the above-mentioned typesetting instruction is executed to obtain a second control item corresponding to the typesetting instruction from a pre-stored control item library, and the second control item is subjected to typesetting processing and transposition processing on the target page to obtain the integrated first The target page of the two control items, and the second control item is a control item corresponding to the type of the first control item in the target user interface.
Among them, the pre-stored control item library can be set in the page transition module NBComponentViews. The NBComponentViews can include a set of native UIs that can be integrated into the operating system of the terminal device based on the target page developed based on the Hyperfile Markup Language (such as HTML 5) Control library (or native UI control set).
The embodiment of the specification provides a page processing method, which is applied to a target page. The target page is developed based on a super document markup language. The type of the first control item in the target user interface obtained through the target page and the first control item in the target user. The typesetting information in the interface generates the typesetting instruction set of the second control corresponding to this type on the target page. The second control is a control item that is stored in advance and can be integrated in the target page to execute the typesetting in the typesetting instruction set. Instruction to perform typesetting processing and transposition processing on the second control item in the target page to obtain a target page incorporating the second control item. In this way, the native user interface (ie, the target user interface) in the operating system of the terminal device is obtained. Controls are added to the target page as a sub-display control of the display control in the target page (that is, a page developed based on HyperFile Markup Language), instead of simply covering the target with the native user interface controls in the operating system of the terminal device Page to achieve the effect of integrating the controls of the target user interface into the target page , So that the second control integrated in the target page can be scaled with the target page, which improves the user experience.

Embodiment 4
As shown in FIG. 8, an embodiment of the present specification provides a page processing method. The method may be executed by a terminal device or a server. The terminal device may be a device such as a personal computer or a mobile phone or a tablet computer. Terminal equipment, which may be a terminal equipment used by a user. The server can be an independent server or a server cluster composed of multiple servers, and the server can be a background server for a business or a website (such as an online shopping website) Or payment applications, etc.). This method can be used to generate a page corresponding to a control item in the native user interface in the operating system of the terminal device (that is, the target page mentioned in this embodiment), and the page is based on a hyper-file markup language (that is, Hyper Text Markup Language, HTML) development, where the hyperfile markup languages can include HTML 2.0, HTML 3.2, HTML 4.0, HTML 5 and so on. In order to simplify the page processing process and page processing efficiency, in this embodiment, the execution subject is a terminal device as an example. For the case of the server, it can be processed according to the following related content, which is not repeated here. In addition, the method is specific The page management module (ie, NBComponentManager), the global initialization module (NBComponentJSLoader), and the page transfer module (NBComponentViews) in the target page of the terminal device can be executed together. The method may specifically include the following steps:
In step S802, the global initialization module sends a programming interface call instruction to the page management module.
In the implementation, the global initialization module is created at the same time as the creation of the target page based on the hyper file markup language (such as HTML 5).
NBComponentJSLoader can be initialized and stored in the context of the current target page. After initialization, NBComponentJSLoader can send a notification message to the page management module NBComponentManager.
After receiving the notification message, the NBComponentManager can perform initialization processing. After the NBComponentManager is initialized,
NBComponentJSLoader can send JSAPI call instructions (ie Call Render JSAPI) to NBComponentManager.
In step S804, the page management module calls the global initialization module.
In step S806, the global initialization module obtains the type of the first control item in the target user interface and the typesetting information of the first control item in the target user interface according to the call instruction of the page management module, and according to the The type and the typesetting information generate a typesetting instruction set of the second control item corresponding to the type in the target page. The second control item is a control item that is stored in advance and can be integrated in the target page.
In step S808, the global initialization module sends a typesetting instruction set to the page management module.
In step S810, the page management module parses the typesetting instructions in the typesetting instruction set to obtain the parsed typesetting instructions.
In step S812, the page management module creates a page conversion module, and sends the parsed typesetting instruction to the page conversion module.
In step S814, the page conversion module executes the parsed typesetting instruction, obtains a second control item corresponding to the typesetting instruction from a pre-stored control item library, and performs typesetting processing and conversion on the second control item in the target page. Column processing to obtain a target page fused with the second control item.
It should be noted that, after the page transposition module completes the above typesetting processing and transposition processing, and obtains the target page incorporating the second control item, it can send a notification message of completion of the target page transposition to the global initialization module.
During the process of creating the page conversion module by the page management module in step S812, the life cycle of the page conversion module can be created at the same time to manage the display, hiding, and destruction of the page conversion module. For details, see The following steps S816 to S826 are processed.
In step S816, the page management module creates a life cycle of the page transfer module.
In implementation, if the target page is created for the first time,
NBComponentViews will receive a notification that the native UI control items in the operating system of the terminal device are integrated into the Webview, and is used to handle the initialization work related to the native UI control items in the operating system of the terminal device.
In step S818, when receiving the notification message that the life cycle is not visible sent by the global initialization module, the page management module sets the life cycle of the page transfer module to an invisible state.
Among them, the invisible state can be processing such as pausing the life cycle of the page conversion module. In practical applications, the notification message of the invisible life cycle can be indicated by the notification message of onWebViewPause.
onWebViewPause can be composed of a lifecycle function that is invisible to WebView, and is used to handle the lifecycle related to the native UI control items in the operating system of the terminal device.
In the implementation, when the terminal device is in a screen lock or background state, the global initialization module can generate a notification message (ie onWebViewPause) whose life cycle is not visible, and can send it to the page management module NBComponentManager. When NBComponentManager receives the onWebViewPause notification message sent by the global initialization module, it can send onWebViewPause to the page conversion module
NBComponentViews and call back NBComponentViews will
The life cycle of NBComponentViews is set to invisible.
In step S820, when receiving the notification message that the life cycle recovery visibility sent by the global initialization module is received, the page management module sets the life cycle of the page transfer module to a visible state.
Among them, the visible state can be processing such as reactivating the life cycle of the page conversion module. In practical applications, the notification message that is visible during the life cycle can be represented by the notification message of onWebViewResume.
onWebViewResume can be composed of lifecycle functions visible to WebView, and is used to handle the lifecycle related to the native UI control items in the operating system of the terminal device.
In implementation, when the terminal device is in an unlocked or back to the foreground state, the global initialization module can generate a notification message (ie onWebViewResume) with a visible life cycle, and can send it to the page management module NBComponentManager. NBComponentManager received
OnWebViewResume notification message can be
onWebViewResume is sent to NBComponentViews, and callback NBComponentViews sets the life cycle of NBComponentViews to visible state.
In step S822, when receiving the notification message that the second control item is removed or the target page is destroyed, sent by the global initialization module, the page management module destroys the life cycle of the page transfer module.
Among them, in actual application, the second control item is removed and can be represented by onEmbedViewDetachedFromWebView,
onEmbedViewDetachedFromWebView can represent the life cycle function of the native UI control item removed in the operating system of the terminal device. The destruction of the target page can be represented by onWebViewDestory,
onWebViewDestory can represent the lifecycle function of WebView destruction.
In implementation, when the target page is destroyed, the global initialization module can generate onEmbedViewDetachedFromWebView and
Notification message of onWebViewDestory and can send it to the page management module NBComponentManager. NBComponentManager received onEmbedViewDetachedFromWebView and
onWebViewDestory notification message, you can
onEmbedViewDetachedFromWebView and onWebViewDestory are sent to NBComponentViews, and call back NBComponentViews to destroy the life cycle of NBComponentViews.
In step S824, the page management module calls the page transfer module.
In step S826, according to the call instruction of the page transition module, when the global initialization module detects that the second control item is removed or the target page is destroyed, the page transition module releases and recovers the second control item.
The embodiment of the specification provides a page processing method, which is applied to a target page. The target page is developed based on a super document markup language. The type of the first control item in the target user interface obtained through the target page and the first control item in the target user. The typesetting information in the interface generates the typesetting instruction set of the second control corresponding to this type on the target page. The second control is a control item that is stored in advance and can be integrated in the target page to execute the typesetting in the typesetting instruction set. Instruction to perform typesetting processing and transposition processing on the second control item in the target page to obtain a target page incorporating the second control item. In this way, the native user interface (ie, the target user interface) in the operating system of the terminal device is obtained. Controls are added to the target page as a sub-display control of the display control in the target page (that is, a page developed based on HyperFile Markup Language), instead of simply covering the target with the native user interface controls in the operating system of the terminal device Page to achieve the effect of integrating the controls of the target user interface into the target page , So that the second control integrated in the target page can be scaled with the target page, which improves the user experience.

Example 5
The above is a page processing method provided by an embodiment of the present specification. Based on the same idea, an embodiment of the present specification also provides a page processing device. The device includes a target page, and the target page is developed based on a super file markup language, as shown in FIG. 9 As shown.
The page processing device includes: an information acquisition module 901, a typesetting instruction generating module 902, and a processing module 903. Among them:
An information acquisition module 901, configured to acquire the type of the first control item in the target user interface and the typesetting information of the first control item in the target user interface;
A typesetting instruction generating module 902 is configured to generate a typesetting instruction set of the second control item corresponding to the type in the target page according to the type of the first control item and the typesetting information, and the second control Items are control items that are stored in advance and can be incorporated in the target page;
A processing module 903 is configured to execute the typesetting instructions in the typesetting instruction set, and perform typesetting processing and transposition processing on the second control item in the target page to obtain a target page incorporating the second control item. .
In the embodiment of the present specification, the information acquisition module 901 is used to call a preset programming interface to acquire the type of the first control item in the target user interface, and the first control item in the user Typesetting information in the interface.
In the embodiment of the present specification, the device further includes:
An instruction receiving module, configured to receive a management instruction for the second control item in the target page, where the management instruction includes a deletion instruction and a status modification instruction;
An instruction execution module is configured to perform a corresponding operation on the second control item in the target page according to the management instruction.
An embodiment of the present specification provides a page processing device, including a target page, which is developed based on a super document markup language, and a type of a first control item in the target user interface obtained through the target page, and the first control item in the target user interface. The typesetting information in the command generates the typesetting instruction set of the second control item corresponding to the type on the target page. The second control item is a control item that is stored in advance and can be integrated in the target page, and executes the typesetting instruction set in the typesetting instruction set. , Performing typesetting processing and transposition processing on the second control item in the target page to obtain a target page incorporating the second control item, so that the native user interface (ie, the target user interface) in the operating system of the terminal device is controlled Items are added to the target page as a sub-display control of the display control item in the target page (that is, a page developed based on the Hypertext Markup Language), instead of simply covering the target UI with the native user interface controls in the operating system of the terminal device To achieve the effect of integrating the controls of the target user interface into the target page, The second control item integrated in the target page can be scaled with the target page, which improves the user experience.

Example Six
Based on the same idea, the embodiment of the present specification also provides a page management module in a page processing device. The page management module is set in a target page. The target page is developed based on a hyperfile markup language. It also includes a global initialization module, as shown in Figure 10.
The page processing apparatus includes a first calling unit 1001, an instruction set receiving unit 1002, a parsing unit 1003, and an instruction sending unit 1004, where:
A first calling unit 1001, configured to call the global initialization module to obtain a type of a first control item in a target user interface, and typesetting information of the first control item in the target user interface, And according to the type and the typesetting information, a typesetting instruction set of the second control item corresponding to the type on the target page is generated, and the second control item is stored in advance and can be fused on the target page Controls in
An instruction set receiving unit 1002, configured to receive the typesetting instruction set sent by the global initialization module;
An analysis unit 1003, configured to parse the typesetting instructions in the typesetting instruction set to obtain the parsed typesetting instructions;
An instruction sending unit 1004 is configured to create a page transposition module and send the parsed typesetting instruction to the page transposition module, so that the page transposition module is based on the parsed typesetting instruction A target page fused with the second control item is obtained.
In the embodiment of the present specification, the first calling unit 1001 includes:
An instruction receiving subunit, configured to receive a programming interface call instruction sent by the global initialization module;
A calling sub-unit for calling the global initialization module.
In the embodiment of the present specification, the page management module further includes:
A life cycle creation unit, configured to create a life cycle of the page transfer module;
A first setting unit, configured to set the life cycle of the page conversion module to an invisible state when a notification message that the life cycle is not visible sent by the global initialization module is received;
The second setting unit is configured to set the life cycle of the page conversion module to a visible state when receiving a notification message that the life cycle resumes to be visible from the global initialization module.
In the embodiment of the present specification, the page management module further includes:
A destruction unit, configured to destroy the life cycle of the page transfer module when receiving a notification message that the second control item is removed or the target page is destroyed and sent by the global initialization module;
A second calling unit is configured to call the page transfer module to release and recover the second control item.
The embodiment of the present specification provides a page management module in a page processing device, which is provided on a target page. The target page is developed based on a super document markup language, and the type of the first control item in the target user interface obtained through the target page and the first The typesetting information of the control item in the target user interface generates a typesetting instruction set of the corresponding second control item in the target page. The second control item is a control item that is stored in advance and can be integrated into the target page. The typesetting instructions in the typesetting instruction set perform typesetting processing and transposition processing on the second control item in the target page to obtain a target page incorporating the second control item. In this way, the native user interface in the operating system of the terminal device ( That is, the target user interface) control is added as a sub-display control of the display control in the target page to the target page (that is, a page developed based on the Hypertext Markup Language), instead of the native user interface in the operating system of the terminal device. Controls are simply overlaid on the target page to achieve the fusion of the controls in the target user interface The effect on the target page allows the second control item fused in the target page to be scaled with the target page, which improves the user experience.

Example Seven
Based on the same idea, the embodiment of the present specification also provides a global initialization module in a page processing device. The global initialization module is set in a target page. The target page is developed based on a hyperfile markup language. It also includes a page management module, as shown in Figure 11.
The page processing device includes: an instruction sending unit 1101, an information obtaining unit 1102, and a request sending module 1103, where:
An instruction sending unit 1101, configured to send a programming interface call instruction to the page management module;
The information obtaining unit 1102 is configured to obtain the type of the first control item in the target user interface and the typesetting information of the first control item in the target user interface according to the call instruction of the page management module. And according to the type and the typesetting information, a typesetting instruction set of a second control item corresponding to the type on the target page is generated, and the second control item is stored in advance and can be fused to the target Controls in the page;
The instruction set sending unit 1103 is configured to send the typesetting instruction set to the page management module.
The embodiment of the present specification provides a global initialization module in a page processing device, which is set on a target page. The target page is developed based on a super document markup language, and the type of the first control item in the target user interface obtained through the target page and the first The typesetting information of the control item in the target user interface generates a typesetting instruction set of the corresponding second control item in the target page. The second control item is a control item that is stored in advance and can be integrated into the target page. The typesetting instructions in the typesetting instruction set perform typesetting processing and transposition processing on the second control item in the target page to obtain a target page incorporating the second control item. In this way, the native user interface in the operating system of the terminal device ( That is, the target user interface) control is added as a sub-display control of the display control in the target page to the target page (that is, a page developed based on the Hypertext Markup Language), instead of the native user interface in the operating system of the terminal device. Controls are simply overlaid on the target page to achieve the integration of the controls in the target user interface The effect combined with the target page enables the second control item integrated in the target page to be scaled with the target page, which improves the user experience.

Example eight
Based on the same idea, the embodiment of the present specification also provides a page transposition module in a page processing device. The page transposition module is set in a target page. The target page is developed based on a super document markup language. The target The page also includes a page management module and a global initialization module, as shown in Figure 12.
The page processing apparatus includes: an instruction receiving unit 1201 and an instruction execution unit 1202, where:
The instruction receiving unit 1201 is configured to receive a typesetting instruction sent by the page management module, where the typesetting instruction is a typesetting instruction set of the target page generated and sent by the global initialization module by the page management module. Get after parsing;
An instruction execution unit 1202 is configured to execute the typesetting instruction, obtain a second control item corresponding to the typesetting instruction from a pre-stored control item library, perform typesetting processing on the second control item in the target page, and The transposition process obtains a target page fused with the second control item, where the second control item is a control item corresponding to the type of the first control item in the target user interface.
In the embodiment of the present specification, the page conversion module further includes:
A control item releasing unit is configured to release and recycle the second control item when the global initialization module detects that the second control item is removed or the target page is destroyed according to the call instruction of the page transfer module. The second control item is described.
The embodiment of the present specification provides a page transposition module in a page processing device, which is set on a target page. The target page is developed based on a super document markup language, and the type of the first control item in the target user interface obtained through the target page is provided. A typesetting information of a control item in a target user interface generates a typesetting instruction set of a corresponding second control item of the type on the target page. The second control item is a control item that is stored in advance and can be integrated into the target page. Execute the typesetting instructions in the typesetting instruction set, and perform typesetting processing and transposition processing on the second control item in the target page to obtain the target page incorporating the second control item. In this way, the native user interface in the operating system of the terminal device is obtained. (I.e. target user interface) controls are added as sub-display controls of display controls on the target page to the target page (i.e., a page developed based on the Hypertext Markup Language), instead of native users in the operating system of the terminal device Interface controls are simply overlaid on the target page to achieve the fusion of the controls of the target user interface The effect on the target page allows the second control item fused in the target page to be scaled with the target page, which improves the user experience.

Example Nine
Based on the same idea, the embodiment of the present specification also provides a page processing device, as shown in FIG. 13.
The page processing device may be a terminal device provided in the foregoing embodiment.
The page processing device may have relatively large differences due to different configurations or performances, and may include one or more processors 1301 and memory 1302. The memory 1302 may store one or more storage applications or data. The memory 1302 may be temporarily stored or persistently stored. The application program stored in the memory 1302 may include one or more modules (not shown), and each module may include a series of computer-executable instructions in a page processing device. Furthermore, the processor 1301 may be configured to communicate with the memory 1302 and execute a series of computer-executable instructions in the memory 1302 on the page processing device. The page processing device may further include one or more power sources 1303, one or more wired or wireless network interfaces 1304, one or more input / output interfaces 1305, and one or more keyboards 1306.
Specifically, in this embodiment, the page processing device includes a memory and one or more programs. One or more programs are stored in the memory, and one or more programs may include one or more modules. And each module may include a series of computer-executable instructions in a page processing device, and is configured to be executed by one or more processors. The one or more package programs include the following computer-executable instructions:
Obtaining the type of the first control item in the target user interface, and typesetting information of the first control item in the target user interface;
According to the type of the first control item and the typesetting information, a typesetting instruction set of the second control item corresponding to the type in the target page is generated. The second control item is stored in advance and can be integrated in the A control item in a target page, a target page, the target page being developed based on a hyperfile markup language;
The typesetting instruction in the typesetting instruction set is executed, and the second control item is subjected to typesetting processing and transposition processing in the target page to obtain a target page fused with the second control item.
Optionally, the obtaining the type of the first control item in the target user interface and the typesetting information of the first control item in the user interface includes:
The preset programming interface is called to obtain the type of the first control item in the target user interface and the typesetting information of the first control item in the user interface.
Optionally, it further includes:
Receiving a management instruction for the second control item in the target page, the management instruction includes a delete instruction and a status modification instruction;
Performing a corresponding operation on the second control item in the target page according to the management instruction.
An embodiment of the present specification provides a page processing device, including a target page. The target page is developed based on a super document markup language. The type of the first control item in the target user interface obtained through the target page, and the first control item in the target user interface. The typesetting information in the command generates the typesetting instruction set of the second control item corresponding to the type on the target page. The second control item is a control item that is stored in advance and can be integrated in the target page, and executes the typesetting instruction set in the typesetting instruction set. , Performing typesetting processing and transposition processing on the second control item in the target page to obtain a target page incorporating the second control item, so that the native user interface (ie, the target user interface) in the operating system of the terminal device is controlled Items are added to the target page as a sub-display control of the display control item in the target page (that is, a page developed based on the Hypertext Markup Language), instead of simply covering the target UI with the native user interface controls in the operating system of the terminal device To achieve the effect of integrating the controls of the target user interface into the target page, The second control item integrated in the target page can be scaled with the target page, which improves the user experience.

Example 10
Based on the same thinking, the embodiment of the present specification also provides a page processing device, as shown in FIG. 14.
The page processing device may be a terminal device provided in the foregoing embodiment.
The page processing device may have a relatively large difference due to different configurations or performance, and may include one or more processors 1401 and memory 1402, and the memory 1402 may store one or more storage applications or data. The memory 1402 may be temporarily stored or persistently stored. The application program stored in the memory 1402 may include one or more modules (not shown), and each module may include a series of computer-executable instructions in a page processing device. Furthermore, the processor 1401 may be configured to communicate with the memory 1402 and execute a series of computer-executable instructions in the memory 1402 on the page processing device. The page processing device may further include one or more power sources 1403, one or more wired or wireless network interfaces 1404, one or more input / output interfaces 1405, and one or more keyboards 1406.
Specifically, in this embodiment, the page processing device includes a memory and one or more programs. One or more programs are stored in the memory, and one or more programs may include one or more modules. And each module may include a series of computer-executable instructions in a page processing device, and is configured to be executed by one or more processors. The one or more package programs include the following computer-executable instructions:
It is applied to a target page, which is developed based on a hyper file markup language. The target page includes a global initialization module, including:
Calling the global initialization module to obtain the type of the first control item in the target user interface, and the typesetting information of the first control item in the target user interface, and according to the type and the Typesetting information, generating a typesetting instruction set of the second control item corresponding to the type in the target page, the second control item is a control item that is stored in advance and can be fused in the target page;
Receiving the typesetting instruction set sent by the global initialization module;
Parse the typesetting instructions in the typesetting instruction set to obtain the parsed typesetting instructions;
Create a page transposition module, and send the parsed typesetting instruction to the page transposition module, so that the page transposition module is fused with the second according to the parsed typesetting instruction The target page of the control.
Optionally, the calling the global initialization module includes:
Receiving a programming interface call instruction sent by the global initialization module;
Call the global initialization module.
Optionally, after the page transposition module is created, the method further includes:
Creating a life cycle of the page transfer module;
When the notification message of the life cycle invisible sent by the global initialization module is received, setting the life cycle of the page conversion module to an invisible state;
When receiving the notification message that the life cycle recovery is sent by the global initialization module, the life cycle of the page transfer module is set to a visible state.
Optionally, the method further includes:
When receiving the notification message that the second control item is removed or the target page is destroyed sent by the global initialization module, destroying the life cycle of the page transfer module;
Call the page transfer module to release and recycle the second control item.
Specifically, in this embodiment, the page processing device includes a memory and one or more programs. One or more programs are stored in the memory, and one or more programs may include one or more modules. And each module may include a series of computer-executable instructions in a page processing device, and is configured to be executed by one or more processors. The one or more package programs include the following computer-executable instructions:
It is applied to a target page, which is developed based on a hyper file markup language. The target page includes a page management module, including:
Sending a programming interface call instruction to the page management module;
Obtaining the type of the first control item in the target user interface and the typesetting information of the first control item in the target user interface according to the call instruction of the page management module, and according to the type and The typesetting information generates a typesetting instruction set of a second control item corresponding to the type on the target page, where the second control item is a control item that is stored in advance and can be fused in the target page;
Sending the typesetting instruction set to the page management module.
Specifically, in this embodiment, the page processing device includes a memory and one or more programs. One or more programs are stored in the memory, and one or more programs may include one or more modules. And each module may include a series of computer-executable instructions in a page processing device, and is configured to be executed by one or more processors. The one or more package programs include the following computer-executable instructions:
It is applied to a target page, which is developed based on a hyper file markup language. The target page includes a page management module and a global initialization module, including:
Receiving a typesetting instruction sent by the page management module, where the typesetting instruction is obtained after the page management module parses a typesetting instruction set of the target page generated and sent by the global initialization module;
Execute the typesetting instruction to obtain a second control item corresponding to the typesetting instruction from a pre-stored control item library, and perform typesetting processing and transposition processing on the second control item in the target page to obtain a fusion The target page of the second control item, where the second control item is a control item corresponding to the type of the first control item in the target user interface.
Optionally, the method further includes:
According to the call instruction of the page transfer module, when the global initialization module detects that the second control item is removed or the target page is destroyed, the second control item is released and recovered.
An embodiment of the present specification provides a page processing device, including a target page. The target page is developed based on a super document markup language. The type of the first control item in the target user interface obtained through the target page, and the first control item in the target user interface. The typesetting information in the command generates the typesetting instruction set of the second control item corresponding to the type on the target page. The second control item is a control item that is stored in advance and can be integrated in the target page, and executes the typesetting instruction set in the typesetting instruction set , Performing typesetting processing and transposition processing on the second control item in the target page to obtain a target page incorporating the second control item, so that the native user interface (ie, the target user interface) in the operating system of the terminal device is controlled Items are added to the target page as a sub-display control of the display control item in the target page (that is, a page developed based on the Hypertext Markup Language), instead of simply covering the target UI with the native user interface controls in the operating system of the terminal device To achieve the effect of integrating the controls of the target user interface into the target page, The second control item integrated in the target page can be scaled with the target page, which improves the user experience.
The specific embodiments of the present specification have been described above. Other embodiments are within the scope of the appended patent applications. In some cases, the actions or steps described in the scope of the patent application may be performed in a different order than in the embodiments and still achieve the desired result. In addition, the processes depicted in the figures do not necessarily require the particular order shown or sequential order to achieve the desired result. In some embodiments, multiplexing and parallel processing are also possible or may be advantageous.
In the 1990s, for a technical improvement, it can be clearly distinguished whether it is an improvement in hardware (for example, the improvement of circuit structures such as diodes, transistors, switches, etc.) or an improvement in software (for method and process Improve). However, with the development of technology, the improvement of many methods and processes can be regarded as a direct improvement of the hardware circuit structure. Designers almost always get the corresponding hardware circuit structure by designing the improved method flow program into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device (PLD)) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user's programming of the device . Designers can program a digital system to "integrate" it on a PLD without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, today, instead of making integrated circuit chips manually, this programming is mostly implemented using "logic compiler" software, which is similar to the software compiler used in program development. The original source code before compilation must also be written in a specific programming language. This is called the Hardware Description Language (HDL), and HDL is not only one, but there are many types, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description
Language), Confluence, CUPL (Cornell University
Programming Language), HDCal, JHDL (Java Hardware
Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. At present, the most commonly used are Very High-Speed Integrated Circuit Hardware Description Language (VHDL) and Verilog. Those skilled in the art should also be clear that as long as the method flow is logically programmed and integrated into the integrated circuit using the above-mentioned several hardware description languages, the hardware circuit implementing the logic method flow can be easily obtained.
The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable storage of computer-readable code (such as software or firmware) executable by the (micro) processor. Media, logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip
PIC18F26K20 and Silicone Labs C8051F320, the memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that, in addition to implementing the controller in a purely computer-readable code manner, the controller can be controlled by logic gates, switches, dedicated integrated circuits, and programmable logic by programming logic steps in the method steps. Controller and embedded microcontroller to achieve the same function. Therefore, the controller can be considered as a hardware component, and the device included in the controller for implementing various functions can also be considered as a structure in the hardware component. Or even, a device for implementing various functions can be regarded as a structure that can be both a software module implementing the method and a hardware component.
The system, device, module, or unit described in the foregoing embodiments may be specifically implemented by a computer chip or entity, or by a product having a certain function. A typical implementation is a computer. Specifically, the computer may be, for example, a personal computer, a laptop, a mobile phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, or a wearable device. Or a combination of any of these devices.
For the convenience of description, when describing the above device, the functions are divided into various units and described separately. Of course, when implementing one or more embodiments of the present specification, the functions of each unit may be implemented in the same software or hardware.
Those skilled in the art should understand that the embodiments of the present specification may be provided as a method, a system, or a computer program product. Therefore, one or more embodiments of the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, one or more embodiments of this specification may be implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable code therein. In the form of a computer program product.
Embodiments of the present specification are described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present specification. It should be understood that each flow and / or block in the flowchart and / or block diagram, and a combination of the flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, special purpose computer, embedded processor, or other programmable data processing device to generate a machine for instructions executed by the processor of the computer or other programmable data processing device Generate means for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
These computer program instructions may also be stored in computer readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory generate a manufactured article including a command device , The instruction device implements the functions specified in a flowchart or a plurality of processes and / or a block or a block of the block diagram.
These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operating steps can be performed on the computer or other programmable equipment to generate computer-implemented processing, and thus on the computer or other programmable equipment The instructions executed on the steps provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
Memory may include non-permanent memory, random access memory (RAM), and / or non-volatile memory in computer-readable media, such as read-only memory (ROM) or flash memory ( flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media includes permanent and non-permanent, removable and non-removable media. Information can be stored by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), and other types of random access memory (RAM) , Read-only memory (ROM), electrically erasable and programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only disc read-only memory (CD-ROM), digital multifunction Optical discs (DVDs) or other optical storage, magnetic tape cartridges, magnetic tape storage or other magnetic storage devices or any other non-transmitting media may be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
It should also be noted that the terms "including,""including," or any other variation thereof are intended to encompass non-exclusive inclusion, so that a process, method, product, or device that includes a range of elements includes not only those elements, but also Other elements not explicitly listed, or those that are inherent to such a process, method, product, or device. Without more restrictions, the elements defined by the sentence "including a ..." do not exclude the existence of other identical elements in the process, method, product or equipment including the elements.
Those skilled in the art should understand that the embodiments of the present specification may be provided as a method, a system, or a computer program product. Therefore, one or more embodiments of the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, one or more embodiments of this specification may be implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) containing computer-usable code therein. In the form of a computer program product.
One or more embodiments of this specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. One or more embodiments of the present specification can also be practiced in a decentralized computing environment. In these decentralized computing environments, tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.
Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple. For the relevant part, refer to the description of the method embodiment.
The above descriptions are merely examples of the present specification and are not intended to limit the present specification. For those skilled in the art, this specification may have various modifications and changes. Any modification, equivalent replacement, or improvement made within the spirit and principle of this specification shall be included in the scope of patent application of this specification.

901‧‧‧資訊獲取模組901‧‧‧Information Acquisition Module

902‧‧‧排版指令產生模組 902‧‧‧Typesetting module

903‧‧‧處理模組 903‧‧‧Processing Module

1001‧‧‧第一呼叫單元 1001‧‧‧First Calling Unit

1002‧‧‧指令集接收單元 1002‧‧‧ instruction set receiving unit

1003‧‧‧解析單元 1003‧‧‧Analysis unit

1004‧‧‧指令發送單元 1004‧‧‧Instruction sending unit

1101‧‧‧指令發送單元 1101‧‧‧Instruction sending unit

1102‧‧‧資訊獲取單元 1102‧‧‧Information acquisition unit

1103‧‧‧請求發送單元 1103‧‧‧Request sending unit

1201‧‧‧指令接收單元 1201‧‧‧Command receiving unit

1202‧‧‧指令執行單元 1202‧‧‧Instruction execution unit

1301‧‧‧處理器 1301‧‧‧Processor

1302‧‧‧記憶體 1302‧‧‧Memory

1303‧‧‧電源 1303‧‧‧ Power

1304‧‧‧有線或無線網路介面 1304‧‧‧Wired or wireless network interface

1305‧‧‧輸入輸出介面 1305‧‧‧ input and output interface

1306‧‧‧鍵盤 1306‧‧‧Keyboard

1401‧‧‧處理器 1401‧‧‧Processor

1402‧‧‧記憶體 1402‧‧‧Memory

1403‧‧‧電源 1403‧‧‧ Power

1404‧‧‧有線或無線網路介面 1404‧‧‧Wired or wireless network interface

1405‧‧‧輸入輸出介面 1405‧‧‧Input and output interface

1406‧‧‧鍵盤 1406‧‧‧Keyboard

為了更清楚地說明本說明書實施例或現有技術中的技術方案,下面將對實施例或現有技術描述中所需要使用的圖式作簡單地介紹,顯而易見地,下面描述中的圖式僅僅是本說明書中記載的一些實施例,對於本領域普通技術人員來講,在不付出創造性勞動性的前提下,還可以根據這些圖式獲得其他的圖式。In order to more clearly explain the embodiments of the present specification or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only For some ordinary people skilled in the art, some embodiments described in the specification can also obtain other drawings according to these drawings without paying creative labor.

圖1為本說明書一種頁面處理方法實施例; FIG. 1 is an embodiment of a page processing method of this specification;

圖2A為本說明書一種目標使用者介面的示意圖; FIG. 2A is a schematic diagram of a target user interface of this specification; FIG.

圖2B為本說明書一種融合有第二控制項的目標頁面的示意圖; 2B is a schematic diagram of a target page incorporating a second control item in this specification;

圖3為本說明書另一種頁面處理方法實施例; FIG. 3 is another embodiment of a page processing method of this specification;

圖4為本說明書又一種頁面處理方法實施例; FIG. 4 is another embodiment of a page processing method of this specification;

圖5為本說明書又一種頁面處理系統的結構示意圖; FIG. 5 is a schematic structural diagram of another page processing system of the present specification;

圖6為本說明書又一種頁面處理方法實施例; FIG. 6 is another embodiment of a page processing method of this specification;

圖7為本說明書又一種頁面處理方法實施例; FIG. 7 is another embodiment of a page processing method of this specification;

圖8為本說明書又一種頁面處理方法實施例; FIG. 8 is another embodiment of a page processing method of this specification;

圖9為本說明書一種頁面處理裝置實施例; FIG. 9 is an embodiment of a page processing device of this specification;

圖10為本說明書一種頁面處理裝置中的頁面管理模組實施例; FIG. 10 is an embodiment of a page management module in a page processing device of this specification; FIG.

圖11為本說明書一種頁面處理裝置中的全域初始化模組實施例; FIG. 11 is an embodiment of a global initialization module in a page processing device of this specification;

圖12為本說明書一種頁面處理裝置中的頁面轉列模組實施例; FIG. 12 is an embodiment of a page conversion module in a page processing device of this specification; FIG.

圖13為本說明書一種頁面處理設備實施例;以及 FIG. 13 is an embodiment of a page processing device of this specification; and

圖14為本說明書另一種頁面處理設備實施例。 FIG. 14 is another embodiment of a page processing device of this specification.

Claims (21)

一種頁面處理方法,所述方法應用於目標頁面,所述目標頁面基於超文件標示語言開發,包括: 獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊; 根據所述第一控制項的類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項; 執行所述排版指令集中的排版指令,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面。A page processing method, the method is applied to a target page, and the target page is developed based on a hyperfile markup language and includes: Obtaining the type of the first control item in the target user interface, and typesetting information of the first control item in the target user interface; According to the type of the first control item and the typesetting information, a typesetting instruction set of the second control item corresponding to the type in the target page is generated. The second control item is stored in advance and can be integrated in the A control item in the target page; The typesetting instruction in the typesetting instruction set is executed, and the second control item is subjected to typesetting processing and transposition processing in the target page to obtain a target page fused with the second control item. 根據申請專利範圍第1項所述的方法,其中所述獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述使用者介面中的排版資訊,包括: 呼叫預設的程式設計介面,獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述使用者介面中的排版資訊。The method according to item 1 of the scope of patent application, wherein the obtaining the type of the first control item in the target user interface and the typesetting information of the first control item in the user interface includes: The preset programming interface is called to obtain the type of the first control item in the target user interface and the typesetting information of the first control item in the user interface. 根據申請專利範圍第1項所述的方法,其中所述方法還包括: 接收對所述目標頁面中的所述第二控制項的管理指令,所述管理指令包括刪除指令和狀態修改指令;以及 根據所述管理指令,對所述目標頁面中的所述第二控制項執行相應的操作。The method according to item 1 of the patent application scope, wherein the method further comprises: Receiving a management instruction for the second control item in the target page, the management instruction including a delete instruction and a status modification instruction; and Performing a corresponding operation on the second control item in the target page according to the management instruction. 一種頁面處理方法,所述方法應用於目標頁面,所述目標頁面基於超文件標示語言開發,所述目標頁面中包括全域初始化模組,包括: 呼叫所述全域初始化模組,以獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊,並根據所述類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項; 接收所述全域初始化模組發送的所述排版指令集; 解析所述排版指令集中的排版指令,得到解析後的排版指令;以及 創建頁面轉列模組,並將所述解析後的排版指令發送給所述頁面轉列模組,以使所述頁面轉列模組根據所述解析後的排版指令得到融合有所述第二控制項的目標頁面。A page processing method, the method is applied to a target page, the target page is developed based on a hyperfile markup language, and the target page includes a global initialization module, including: Calling the global initialization module to obtain the type of the first control item in the target user interface, and the typesetting information of the first control item in the target user interface, and according to the type and the Typesetting information, generating a typesetting instruction set of the second control item corresponding to the type in the target page, the second control item is a control item that is stored in advance and can be fused in the target page; Receiving the typesetting instruction set sent by the global initialization module; Parse the typesetting instructions in the typesetting instruction set to obtain the parsed typesetting instructions; and Create a page transposition module, and send the parsed typesetting instruction to the page transposition module, so that the page transposition module is fused with the second according to the parsed typesetting instruction The target page of the control. 根據申請專利範圍第4項所述的方法,其中所述呼叫所述全域初始化模組,包括: 接收所述全域初始化模組發送的程式設計介面呼叫指令;以及 呼叫所述全域初始化模組。The method according to item 4 of the scope of patent application, wherein the calling the global initialization module includes: Receiving a programming interface call instruction sent by the global initialization module; and Call the global initialization module. 根據申請專利範圍第4項所述的方法,其中所述創建頁面轉列模組之後,所述方法還包括: 創建所述頁面轉列模組的生命週期; 當接收到所述全域初始化模組發送的所述生命週期不可見的通知消息時,將所述頁面轉列模組的生命週期設置為不可見狀態;以及 當接收到所述全域初始化模組發送的所述生命週期恢復可見的通知消息時,將所述頁面轉列模組的生命週期設置為可見狀態。The method according to item 4 of the scope of patent application, wherein after the page transfer module is created, the method further includes: Creating a life cycle of the page transfer module; When the life cycle invisible notification message sent by the global initialization module is received, setting the life cycle of the page transfer module to an invisible state; and When receiving the notification message that the life cycle recovery is sent by the global initialization module, the life cycle of the page transfer module is set to a visible state. 根據申請專利範圍第6項所述的方法,其中所述方法還包括: 當接收到所述全域初始化模組發送的所述第二控制項被移除或所述目標頁面被銷毀的通知消息時,銷毀所述頁面轉列模組的生命週期;以及 呼叫所述頁面轉列模組釋放並回收所述第二控制項。The method according to item 6 of the patent application scope, wherein the method further comprises: Destroying the life cycle of the page transfer module when receiving a notification message that the second control item is removed or the target page is destroyed sent by the global initialization module; and Call the page transfer module to release and recycle the second control item. 一種頁面處理方法,所述方法應用於目標頁面,所述目標頁面基於超文件標示語言開發,所述目標頁面中包括頁面管理模組,包括: 向所述頁面管理模組發送程式設計介面呼叫指令; 根據所述頁面管理模組的呼叫指示,獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊,並根據所述類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;以及 向所述頁面管理模組發送所述排版指令集。A page processing method, the method is applied to a target page, the target page is developed based on a hyperfile markup language, and the target page includes a page management module, including: Sending a programming interface call instruction to the page management module; Obtaining the type of the first control item in the target user interface and the typesetting information of the first control item in the target user interface according to the call instruction of the page management module, and according to the type and The typesetting information generates a typesetting instruction set of a second control item corresponding to the type on the target page, the second control item being a control item that is stored in advance and can be fused in the target page; and Sending the typesetting instruction set to the page management module. 一種頁面處理方法,所述方法應用於目標頁面,所述目標頁面基於超文件標示語言開發,所述目標頁面中包括頁面管理模組和全域初始化模組,包括: 接收所述頁面管理模組發送的排版指令,所述排版指令是所述頁面管理模組對所述全域初始化模組產生並發送的所述目標頁面的排版指令集進行解析後得到;以及 執行所述排版指令,從預先儲存的控制項庫中獲取所述排版指令對應的第二控制項,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面,所述第二控制項是目標使用者介面中的第一控制項的類型對應的控制項。A method for processing a page. The method is applied to a target page. The target page is developed based on a super file markup language. The target page includes a page management module and a global initialization module. The method includes: Receiving a typesetting instruction sent by the page management module, which is obtained after the page management module parses a typesetting instruction set of the target page generated and sent by the global initialization module; and Execute the typesetting instruction to obtain a second control item corresponding to the typesetting instruction from a pre-stored control item library, and perform typesetting processing and transposition processing on the second control item in the target page to obtain a fusion The target page of the second control item, where the second control item is a control item corresponding to the type of the first control item in the target user interface. 根據申請專利範圍第9項所述的方法,所述方法還包括: 根據所述頁面轉列模組的呼叫指示,在所述全域初始化模組檢測到所述第二控制項被移除或所述目標頁面被銷毀時,釋放並回收所述第二控制項。According to the method described in item 9 of the scope of patent application, the method further includes: According to the call instruction of the page transfer module, when the global initialization module detects that the second control item is removed or the target page is destroyed, the second control item is released and recovered. 一種頁面處理裝置,所述裝置中包括目標頁面,所述目標頁面基於超文件標示語言開發,包括: 資訊獲取模組,用於獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊; 排版指令產生模組,用於根據所述第一控制項的類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;以及 處理模組,用於執行所述排版指令集中的排版指令,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面。A page processing device includes a target page. The target page is developed based on a hyperfile markup language and includes: An information acquisition module, configured to acquire the type of the first control item in the target user interface and the typesetting information of the first control item in the target user interface; A typesetting instruction generating module, configured to generate a typesetting instruction set for the second control item corresponding to the type in the target page according to the type of the first control item and the typesetting information, and the second control item Control items that are pre-stored and can be incorporated in the target page; and A processing module is configured to execute the typesetting instructions in the typesetting instruction set, and perform typesetting processing and transposition processing on the second control item in the target page to obtain a target page fused with the second control item. 根據申請專利範圍第11項所述的裝置,其中所述資訊獲取模組,用於呼叫預設的程式設計介面,獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述使用者介面中的排版資訊。The device according to item 11 of the scope of patent application, wherein the information acquisition module is used to call a preset programming interface, acquire the type of the first control item in the target user interface, and the first control Item in the user interface. 根據申請專利範圍第11項所述的裝置,所述裝置還包括: 指令接收模組,用於接收對所述目標頁面中的所述第二控制項的管理指令,所述管理指令包括刪除指令和狀態修改指令;以及 指令執行模組,用於根據所述管理指令,對所述目標頁面中的所述第二控制項執行相應的操作。According to the device according to item 11 of the patent application scope, the device further comprises: An instruction receiving module, configured to receive a management instruction for the second control item in the target page, the management instruction including a delete instruction and a status modification instruction; and An instruction execution module is configured to perform a corresponding operation on the second control item in the target page according to the management instruction. 一種頁面處理裝置中的頁面管理模組,所述頁面管理模組設置於目標頁面中,所述目標頁面基於超文件標示語言開發,所述目標頁面中還包括全域初始化模組,包括: 第一呼叫單元,用於呼叫所述全域初始化模組,以獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊,並根據所述類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項; 指令集接收單元,用於接收所述全域初始化模組發送的所述排版指令集; 解析單元,用於解析所述排版指令集中的排版指令,得到解析後的排版指令;以及 指令發送單元,用於創建頁面轉列模組,並將所述解析後的排版指令發送給所述頁面轉列模組,以使所述頁面轉列模組根據所述解析後的排版指令得到融合有所述第二控制項的目標頁面。A page management module in a page processing device. The page management module is set in a target page. The target page is developed based on a super file markup language. The target page further includes a global initialization module, including: A first calling unit, configured to call the global initialization module to obtain the type of the first control item in the target user interface, and the typesetting information of the first control item in the target user interface, and According to the type and the typesetting information, a typesetting instruction set of a second control item corresponding to the type on the target page is generated, and the second control item is stored in advance and can be integrated in the target page. Control An instruction set receiving unit, configured to receive the typesetting instruction set sent by the global initialization module; A parsing unit for parsing the typesetting instructions in the typesetting instruction set to obtain the parsed typesetting instructions; and An instruction sending unit is configured to create a page transposition module, and send the parsed typesetting instruction to the page transposition module, so that the page transposition module obtains according to the parsed typesetting instruction. The target page fused with the second control item. 根據申請專利範圍第14項所述的頁面管理模組,其中所述第一呼叫單元,包括: 指令接收子單元,用於接收所述全域初始化模組發送的程式設計介面呼叫指令;以及 呼叫子單元,用於呼叫所述全域初始化模組。The page management module according to item 14 of the scope of patent application, wherein the first calling unit includes: An instruction receiving subunit, configured to receive a programming interface call instruction sent by the global initialization module; and A calling sub-unit for calling the global initialization module. 根據申請專利範圍第14項所述的頁面管理模組,其中所述頁面管理模組還包括: 生命週期創建單元,用於創建所述頁面轉列模組的生命週期; 第一設置單元,用於當接收到所述全域初始化模組發送的所述生命週期不可見的通知消息時,將所述頁面轉列模組的生命週期設置為不可見狀態;以及 第二設置單元,用於當接收到所述全域初始化模組發送的所述生命週期恢復可見的通知消息時,將所述頁面轉列模組的生命週期設置為可見狀態。The page management module according to item 14 of the scope of patent application, wherein the page management module further includes: A life cycle creation unit, configured to create a life cycle of the page transfer module; A first setting unit configured to set the life cycle of the page conversion module to an invisible state when a notification message that the life cycle is not visible sent by the global initialization module is received; and The second setting unit is configured to set the life cycle of the page conversion module to a visible state when receiving a notification message that the life cycle resumes to be visible from the global initialization module. 根據申請專利範圍第16項所述的頁面管理模組,其中所述頁面管理模組還包括: 銷毀單元,用於當接收到所述全域初始化模組發送的所述第二控制項被移除或所述目標頁面被銷毀的通知消息時,銷毀所述頁面轉列模組的生命週期;以及 第二呼叫單元,用於呼叫所述頁面轉列模組釋放並回收所述第二控制項。The page management module according to item 16 of the scope of patent application, wherein the page management module further includes: A destruction unit, configured to destroy the life cycle of the page conversion module when receiving a notification message that the second control item is removed or that the target page is destroyed, sent by the global initialization module; and A second calling unit is configured to call the page transfer module to release and recover the second control item. 一種頁面處理裝置中的全域初始化模組,所述全域初始化模組設置於目標頁面中,所述目標頁面基於超文件標示語言開發,所述目標頁面中還包括頁面管理模組,包括: 指令發送單元,用於向所述頁面管理模組發送程式設計介面呼叫指令; 資訊獲取單元,用於根據所述頁面管理模組的呼叫指示,獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊,並根據所述類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;以及 指令集發送單元,用於向所述頁面管理模組發送所述排版指令集。A global initialization module in a page processing device, the global initialization module is set in a target page, the target page is developed based on a hyperfile markup language, and the target page further includes a page management module, including: An instruction sending unit, configured to send a programming interface call instruction to the page management module; An information obtaining unit, configured to obtain the type of the first control item in the target user interface and the typesetting information of the first control item in the target user interface according to the call instruction of the page management module, And according to the type and the typesetting information, a typesetting instruction set of a second control item corresponding to the type on the target page is generated, and the second control item is stored in advance and can be integrated on the target page Controls in the project; and An instruction set sending unit is configured to send the typesetting instruction set to the page management module. 一種頁面處理裝置中的頁面轉列模組,所述頁面轉列模組設置於目標頁面中,所述目標頁面基於超文件標示語言開發,所述目標頁面中還包括頁面管理模組和全域初始化模組,包括: 指令接收單元,用於接收所述頁面管理模組發送的排版指令,所述排版指令是所述頁面管理模組對所述全域初始化模組產生並發送的所述目標頁面的排版指令集進行解析後得到;以及 指令執行單元,用於執行所述排版指令,從預先儲存的控制項庫中獲取所述排版指令對應的第二控制項,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面,所述第二控制項是目標使用者介面中的第一控制項的類型對應的控制項。A page transposition module in a page processing device, the page transposition module is set in a target page, the target page is developed based on a hyperfile markup language, and the target page further includes a page management module and global initialization Modules, including: An instruction receiving unit, configured to receive a typesetting instruction sent by the page management module, where the typesetting instruction analyzes the typesetting instruction set of the target page generated and sent by the global initialization module Obtained later; and An instruction execution unit is configured to execute the typesetting instruction, obtain a second control item corresponding to the typesetting instruction from a pre-stored control item library, and perform typesetting processing and conversion on the second control item in the target page. Column processing to obtain a target page fused with the second control item, where the second control item is a control item corresponding to the type of the first control item in the target user interface. 根據申請專利範圍第19項所述的頁面轉列模組,其中所述頁面轉列模組還包括: 控制項釋放單元,用於根據所述頁面轉列模組的呼叫指示,在所述全域初始化模組檢測到所述第二控制項被移除或所述目標頁面被銷毀時,釋放並回收所述第二控制項。The page conversion module according to item 19 of the scope of patent application, wherein the page conversion module further includes: A control item releasing unit is configured to release and recycle the second control item when the global initialization module detects that the second control item is removed or the target page is destroyed according to the call instruction of the page transfer module. The second control item is described. 一種頁面處理設備,所述頁面處理設備包括目標頁面,所述目標頁面基於超文件標示語言開發,包括: 處理器;以及 被安排成儲存電腦可執行指令的記憶體,所述可執行指令在被執行時使所述處理器: 獲取目標使用者介面中的第一控制項的類型,以及所述第一控制項在所述目標使用者介面中的排版資訊; 根據所述第一控制項的類型和所述排版資訊,產生所述類型對應的第二控制項在所述目標頁面中的排版指令集,所述第二控制項為預先儲存,且可融合在所述目標頁面中的控制項;以及 執行所述排版指令集中的排版指令,在所述目標頁面中對所述第二控制項進行排版處理和轉列處理,得到融合有所述第二控制項的目標頁面。A page processing device. The page processing device includes a target page. The target page is developed based on a hyperfile markup language and includes: Processor; and Memory arranged to store computer-executable instructions that, when executed, cause the processor to: Obtaining the type of the first control item in the target user interface, and typesetting information of the first control item in the target user interface; According to the type of the first control item and the typesetting information, a typesetting instruction set of the second control item corresponding to the type in the target page is generated. The second control item is stored in advance and can be integrated in A control item in the target page; and The typesetting instruction in the typesetting instruction set is executed, and the second control item is subjected to typesetting processing and transposition processing in the target page to obtain a target page fused with the second control item.
TW108105618A 2018-05-14 2019-02-20 Page processing method, device and equipment TWI695320B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810457781.5 2018-05-14
CN201810457781.5A CN108647076B (en) 2018-05-14 2018-05-14 Page processing method, device and equipment

Publications (2)

Publication Number Publication Date
TW201947395A true TW201947395A (en) 2019-12-16
TWI695320B TWI695320B (en) 2020-06-01

Family

ID=63755246

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108105618A TWI695320B (en) 2018-05-14 2019-02-20 Page processing method, device and equipment

Country Status (3)

Country Link
CN (2) CN108647076B (en)
TW (1) TWI695320B (en)
WO (1) WO2019218736A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108647076B (en) * 2018-05-14 2020-07-24 阿里巴巴集团控股有限公司 Page processing method, device and equipment
CN110120163A (en) * 2019-05-08 2019-08-13 上海乂学教育科技有限公司 Adaptive on-line study FTP client FTP
CN110209319B (en) * 2019-05-21 2020-02-07 掌阅科技股份有限公司 Page information display method, computing device and computer storage medium
CN112860982A (en) * 2019-11-27 2021-05-28 阿里巴巴集团控股有限公司 Data processing method and device, electronic equipment and computer storage medium
CN111273985A (en) * 2020-01-20 2020-06-12 北京无限光场科技有限公司 Page rendering method and device, electronic equipment and computer readable storage medium
CN113051015B (en) * 2021-03-30 2024-01-09 北京达佳互联信息技术有限公司 Page rendering method and device, electronic equipment and storage medium

Family Cites Families (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001065379A1 (en) * 2000-02-28 2001-09-07 Pictureiq Corporation Techniques for embedding custom user interface controls inside internet content
US6961750B1 (en) * 2000-05-18 2005-11-01 Microsoft Corp. Server-side control objects for processing client-side user interface elements
US20020097418A1 (en) * 2001-01-19 2002-07-25 Chang William Ho Raster image processor and processing method for universal data output
US20040268246A1 (en) * 2003-06-16 2004-12-30 Microsoft Corporation Systems and methods for processing collateral content associated with an electronic message
EP1775661A1 (en) * 2005-10-14 2007-04-18 Research In Motion Limited Displaying using graphics display language and native UI objects
US20100005410A1 (en) * 2008-07-03 2010-01-07 Pang Xin Mobile device application framework
EP2577500A1 (en) * 2010-05-26 2013-04-10 Nokia Corp. Method and apparatus for specifying mapping parameters for user interface element presentation in an application
US20120137233A1 (en) * 2010-05-26 2012-05-31 Nokia Corporation Method and Apparatus for Enabling Generation of Multiple Independent User Interface Elements from a Web Page
CN102073688A (en) * 2010-12-21 2011-05-25 上海容恒信息科技有限公司 Device for converting client form to Web page and method thereof
CN102163233A (en) * 2011-04-18 2011-08-24 北京神州数码思特奇信息技术股份有限公司 Method and system for converting webpage markup language format
US8307279B1 (en) * 2011-09-26 2012-11-06 Google Inc. Smooth zooming in web applications
CN103136238A (en) * 2011-11-28 2013-06-05 百度在线网络技术(北京)有限公司 Method and server of processing page interactive elements at time of converting web page into wireless application protocol (WAP) page
US20140053063A1 (en) * 2012-08-14 2014-02-20 Microsoft Corporation User interface control framework for stamping out controls using a declarative template
US9910833B2 (en) * 2012-11-13 2018-03-06 International Business Machines Corporation Automatically rendering web and/or hybrid applications natively in parallel
CN103176797B (en) * 2013-02-21 2015-12-09 用友网络科技股份有限公司 Interface layout's device and quick interface arrangement method
WO2014206125A1 (en) * 2013-06-28 2014-12-31 北京奇虎科技有限公司 Method and device for aligning zoomed webpage on electronic device
CN104572042B (en) * 2013-10-15 2019-02-12 航天信息股份有限公司 The cross-platform middleware device and its implementation of mobile terminal device
US10387551B2 (en) * 2013-12-13 2019-08-20 Freedom Scientific, Inc. Techniques for programmatic magnification of visible content elements of markup language documents
US10140102B2 (en) * 2014-08-21 2018-11-27 International Business Machines Corporation Evaluating accessibility compliance of a hybrid user interface design
CN105488833A (en) * 2014-10-09 2016-04-13 华为技术有限公司 Method and apparatus for realizing 3D transition animation for 2D control
CN105574049B (en) * 2014-10-30 2020-07-03 阿里巴巴集团控股有限公司 Page processing method, device and system for mobile application
CN106371844B (en) * 2016-08-31 2019-10-22 北京奇艺世纪科技有限公司 A kind of method and system with primary user interface components displayed web page
CN107015801B (en) * 2017-03-15 2021-01-08 腾讯科技(深圳)有限公司 Webpage display method and application terminal
CN107562467B (en) * 2017-07-26 2020-08-25 阿里巴巴集团控股有限公司 Page rendering method, device and equipment
CN108647076B (en) * 2018-05-14 2020-07-24 阿里巴巴集团控股有限公司 Page processing method, device and equipment

Also Published As

Publication number Publication date
CN108647076A (en) 2018-10-12
TWI695320B (en) 2020-06-01
CN111831387A (en) 2020-10-27
WO2019218736A1 (en) 2019-11-21
CN111831387B (en) 2024-01-02
CN108647076B (en) 2020-07-24

Similar Documents

Publication Publication Date Title
TWI695320B (en) Page processing method, device and equipment
US20210042010A1 (en) 3D Document Editing System
JP7317070B2 (en) Method, device, electronic equipment, storage medium, and program for realizing super-resolution of human face
WO2018049869A1 (en) Device and method for displaying extension point in page
WO2014190821A1 (en) Application creation method and device
CN107368511B (en) Information display method and device
WO2021008334A1 (en) Data binding method, apparatus, and device of mini program, and storage medium
TW201911165A (en) Business processing method and device
Blankenhorn et al. A UML profile for GUI layout
KR101343182B1 (en) Apparatus and Method for Developing Mixed Reality Application for Mobile Terminal
CN113259224A (en) Method and device for sending customer service data
WO2016004814A1 (en) Service visualization method and system
CN105659221A (en) Graphical user interface having enhanced tool for connecting components
TW201830290A (en) Image generation method and device
TW201617839A (en) Light dismiss manager
CN101980155A (en) Method and system for realizing user interface of television, and television
TW201510746A (en) Method and apparatus of controlling page element
CN109471580B (en) Visual 3D courseware editor and courseware editing method
CN105335036A (en) Input interaction method and input method system
CN113535165A (en) Interface generation method and device, electronic equipment and computer readable storage medium
CN106663090A (en) Converting presentation metadata to a browser-renderable format during compilation
CN108614693A (en) It is a kind of for the processing method of page assembly, device and equipment
Lachgar et al. Modeling and generating native code for cross-platform mobile applications using DSL
CN111506848A (en) Webpage processing method, device, equipment and readable storage medium
TW201935219A (en) Method and device for displaying identification code of application