+

CN111831387B - Page processing method, device and equipment - Google Patents

Page processing method, device and equipment Download PDF

Info

Publication number
CN111831387B
CN111831387B CN202010754373.3A CN202010754373A CN111831387B CN 111831387 B CN111831387 B CN 111831387B CN 202010754373 A CN202010754373 A CN 202010754373A CN 111831387 B CN111831387 B CN 111831387B
Authority
CN
China
Prior art keywords
control
page
typesetting
target
target page
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202010754373.3A
Other languages
Chinese (zh)
Other versions
CN111831387A (en
Inventor
方毓偈
章海滨
翁麟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN202010754373.3A priority Critical patent/CN111831387B/en
Publication of CN111831387A publication Critical patent/CN111831387A/en
Application granted granted Critical
Publication of CN111831387B publication Critical patent/CN111831387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)
  • User Interface Of Digital Computer (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the specification discloses a page processing method, a device and equipment, wherein the method is applied to a target page, and the target page is developed based on a hypertext markup language and comprises the following steps: and acquiring the type of a first control in a target user interface and typesetting information of the first control in the user interface, and then generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type of the first control and the typesetting information, wherein the second control is a control which is stored in advance and can be fused in the target page, executing the typesetting instruction in the typesetting instruction set, and typesetting and rendering the second control in the target page to obtain the target page fused with the second control.

Description

Page processing method, device and equipment
The application is a divisional application of China patent application with the name of 'a page processing method, a page processing device and page processing equipment' which is filed by China patent office, application number 201810457781.5 and 14 days of 2018, 05 month.
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, and a device for processing a page.
Background
More complex elements, such as maps, may be included in a page developed based on hypertext markup language, but it may be difficult for a user to scale the map in the page by way of finger touch if the map is displayed through the page. The user interface in the terminal device (such as a mobile phone) is usually composed of one or more controls, different controls can realize different functions, such as a map control, and a user can randomly zoom in or zoom out a map in the map control in a finger touch manner.
In order to improve the experience of the touch operation of the target page and the rendering efficiency of the target page, in general, a control in a native user interface of an operating system of the terminal device may be overlaid on a Webview control in the target page. However, the target page obtained by the above coverage method needs to limit that the target page cannot be scaled, but only can keep the original style of the control unchanged, thereby bringing trouble to the use of the user and having poor user experience.
Disclosure of Invention
The embodiment of the specification aims to provide a page processing method, device and equipment, so as to provide a technical scheme which can be used for fusing a page developed based on a hypertext markup language of a control in a target user interface and can be scaled along with the scaling of the page.
In order to achieve the above technical solution, the embodiments of the present specification are implemented as follows:
the page processing method provided by the embodiment of the specification is applied to a target page, wherein the target page is developed based on a hypertext markup language and comprises the following steps:
acquiring the type of a first control in a target user interface and typesetting information of the first control in the target user interface;
generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type of the first control and the typesetting information, wherein the second control is a control which is stored in advance and can be fused in the target page;
executing the typesetting instruction in the typesetting instruction set, and performing typesetting processing and rendering processing on the second control in the target page to obtain the target page fused with the second control.
Optionally, the obtaining the type of the first control in the target user interface and the typesetting information of the first control in the user interface includes:
and calling a preset programming interface to acquire the type of a first control in a target user interface and typesetting information of the first control in the user interface.
Optionally, the method further comprises:
receiving a management instruction for the second control in the target page, wherein the management instruction comprises a deletion instruction and a state modification instruction;
and executing corresponding operation on the second control in the target page according to the management instruction.
The page processing method provided by the embodiment of the specification is applied to a target page, wherein the target page is developed based on a hypertext markup language, and the target page comprises a global initialization module, and comprises the following steps:
invoking the global initialization module to acquire the type of a first control in a target user interface and typesetting information of the first control in the target user interface, and generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type and the typesetting information, wherein the second control is a control which is prestored and can be fused in the target page;
Receiving the typesetting instruction set sent by the global initialization module;
analyzing the typesetting instruction in the typesetting instruction set to obtain an analyzed typesetting instruction;
and creating a page rendering module, and sending the analyzed typesetting instruction to the page rendering module so that the page rendering module obtains a target page fused with the second control according to the analyzed typesetting instruction.
Optionally, the invoking the global initialization module includes:
receiving a programming interface calling instruction sent by the global initialization module;
and calling the global initialization module.
Optionally, after the creating the page rendering module, the method further includes:
creating a life cycle of the page rendering module;
when receiving the notification message that the life cycle is invisible, which is sent by the global initialization module, setting the life cycle of the page rendering module into an invisible state;
and when receiving the notification message for restoring the life cycle to be visible, which is sent by the global initialization module, setting the life cycle of the page rendering module to be in a visible state.
Optionally, the method further comprises:
When receiving a notification message sent by the global initialization module that the second control is removed or the target page is destroyed, destroying the life cycle of the page rendering module;
and calling the page rendering module to release and recycle the second control.
The page processing method provided by the embodiment of the specification is applied to a target page, wherein the target page is developed based on a hypertext markup language, and the target page comprises a page management module, and comprises the following steps:
sending a programming interface calling instruction to the page management module;
acquiring the type of a first control in a target user interface and typesetting information of the first control in the target user interface according to a calling instruction of the page management module, and generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type and the typesetting information, wherein the second control is a control which is prestored and can be fused in the target page;
and sending the typesetting instruction set to the page management module.
The page processing method provided by the embodiment of the specification is applied to a target page, wherein the target page is developed based on a hypertext markup language, and the target page comprises a page management module and a global initialization module, and comprises the following steps:
Receiving a typesetting instruction sent by the page management module, wherein the typesetting instruction is obtained by analyzing a typesetting instruction set of the target page generated and sent by the global initialization module by the page management module;
executing the typesetting instruction, acquiring a second control corresponding to the typesetting instruction from a prestored control library, and performing typesetting processing and rendering processing on the second control in the target page to obtain a target page fused with the second control, wherein the second control is a control corresponding to the type of the first control in the target user interface.
Optionally, the method further comprises:
and according to the call instruction of the page rendering module, releasing and recycling the second control when the global initialization module detects that the second control is removed or the target page is destroyed.
The embodiment of the specification provides a page processing device, which includes a target page, wherein the target page is developed based on a hypertext markup language, and the device includes:
the information acquisition module is used for acquiring the type of a first control in a target user interface and typesetting information of the first control in the target user interface;
The typesetting instruction generation module is used for generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type of the first control and the typesetting information, wherein the second control is a control which is stored in advance and can be fused in the target page;
and the processing module is used for executing the typesetting instruction in the typesetting instruction set, and carrying out typesetting processing and rendering processing on the second control in the target page to obtain the target page fused with the second control.
Optionally, the information obtaining module is configured to invoke a preset programming interface to obtain a type of the first control in the target user interface and typesetting information of the first control in the user interface.
Optionally, the apparatus further comprises:
the instruction receiving module is used for receiving a management instruction of the second control in the target page, wherein the management instruction comprises a deleting instruction and a state modifying instruction;
and the instruction execution module is used for executing corresponding operation on the second control in the target page according to the management instruction.
The embodiment of the present disclosure provides a page management module in a page processing device, where the page management module is set in a target page, where the target page is developed based on a hypertext markup language, and the target page further includes a global initialization module, and includes:
The first calling unit is used for calling the global initialization module to acquire the type of a first control in a target user interface and typesetting information of the first control in the target user interface, and generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type and the typesetting information, wherein the second control is a control which is prestored and can be fused in the target page;
the instruction set receiving unit is used for receiving the typesetting instruction set sent by the global initialization module;
the analysis unit is used for analyzing the typesetting instructions in the typesetting instruction set to obtain analyzed typesetting instructions;
the instruction sending unit is used for creating a page rendering module and sending the analyzed typesetting instruction to the page rendering module so that the page rendering module obtains a target page fused with the second control according to the analyzed typesetting instruction.
Optionally, the first calling unit includes:
the instruction receiving subunit is used for receiving a programming interface calling instruction sent by the global initialization module;
and the calling subunit is used for calling the global initialization module.
Optionally, the page management module further includes:
a life cycle creation unit for creating a life cycle of the page rendering module;
the first setting unit is used for setting the life cycle of the page rendering module to be in an invisible state when receiving the notification message that the life cycle is invisible and is sent by the global initialization module;
and the second setting unit is used for setting the life cycle of the page rendering module to be in a visible state when receiving the notification message for restoring the life cycle to be visible, which is sent by the global initialization module.
Optionally, the page management module further includes:
the destroying unit is used for destroying the life cycle of the page rendering module when receiving the notification message that the second control sent by the global initialization module is removed or the target page is destroyed;
and the second calling unit is used for calling the page rendering module to release and recycle the second control.
The global initialization module in the page processing device provided in the embodiment of the present disclosure is set in a target page, where the target page is developed based on a hypertext markup language, and the target page further includes a page management module, and includes:
The instruction sending unit is used for sending a programming interface calling instruction to the page management module;
the information acquisition unit is used for acquiring the type of a first control in a target user interface and typesetting information of the first control in the target user interface according to the calling instruction of the page management module, and generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type and the typesetting information, wherein the second control is a control which is prestored and can be fused in the target page;
and the instruction set sending unit is used for sending the typesetting instruction set to the page management module.
The embodiment of the present disclosure provides a page processing device, a page rendering module in the page processing device, where the page rendering module is set in a target page, the target page is developed based on a hypertext markup language, and the target page further includes a page management module and a global initialization module, and includes:
the command receiving unit is used for receiving typesetting commands sent by the page management module, wherein the typesetting commands are obtained by analyzing a typesetting command set of the target page generated and sent by the global initialization module by the page management module;
The instruction execution unit is used for executing the typesetting instruction, acquiring a second control corresponding to the typesetting instruction from a prestored control library, and performing typesetting processing and rendering processing on the second control in the target page to obtain a target page fused with the second control, wherein the second control is a control corresponding to the type of the first control in the target user interface.
Optionally, the page rendering module further includes:
and the control release unit is used for releasing and recovering the second control when the global initialization module detects that the second control is removed or the target page is destroyed according to the call instruction of the page rendering module.
The embodiment of the specification provides a page processing device, including a target page, where the target page is developed based on a hypertext markup language, including:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
acquiring the type of a first control in a target user interface and typesetting information of the first control in the target user interface;
Generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type of the first control and the typesetting information, wherein the second control is a control which is stored in advance and can be fused in the target page;
executing the typesetting instruction in the typesetting instruction set, and performing typesetting processing and rendering processing on the second control in the target page to obtain the target page fused with the second control.
As can be seen from the technical solutions provided in the embodiments of the present disclosure, the embodiments of the present disclosure are applied to a target page, which is developed based on a hypertext markup language, and by using the obtained type of a first control in the target user interface and typesetting information of the first control in the target user interface, a typesetting instruction set of a second control corresponding to the type in the target page is generated, the second control is a control that is stored in advance and can be fused in the target page, and a typesetting instruction in the typesetting instruction set is executed, typesetting processing and rendering processing are performed on the second control in the target page, so that the target page fused with the second control is obtained, and thus, an original user interface control in an operating system of a terminal device (i.e., a target user interface control) is added to the target page (i.e., a page developed based on the hypertext markup language) as a child display control of a display control in the target page, instead of simply covering the original user interface control in the operating system of the terminal device on the target page, thereby achieving the effect of fusing the control of the target user interface to the target page, so that the second control fused in the target page can be scaled with the target page.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some of the embodiments described in the present description, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a diagram illustrating an exemplary embodiment of a method for processing a page;
FIG. 2A is a schematic diagram of a target user interface of the present specification;
FIG. 2B is a schematic diagram of a target page incorporating a second control according to the present disclosure;
FIG. 3 is a diagram illustrating another exemplary embodiment of a method for processing a page according to the present disclosure;
FIG. 4 is a diagram of another embodiment of a page processing method according to the present disclosure;
FIG. 5 is a schematic diagram of a page processing system according to another embodiment of the present disclosure;
FIG. 6 is a diagram of another embodiment of a page processing method according to the present disclosure;
FIG. 7 is a diagram of another embodiment of a page processing method according to the present disclosure;
FIG. 8 is a diagram of another embodiment of a page processing method according to the present disclosure;
FIG. 9 is a diagram of an embodiment of a page processing apparatus according to the present disclosure;
FIG. 10 is a block diagram illustrating an embodiment of a page management module in a page processing apparatus according to the present disclosure;
FIG. 11 is a diagram illustrating an embodiment of a global initialization module in a page processing apparatus according to the present disclosure;
FIG. 12 is a block diagram illustrating an embodiment of a page rendering module in a page processing apparatus according to the present disclosure;
FIG. 13 is a page processing apparatus embodiment of the present specification;
fig. 14 is another page processing apparatus embodiment of the present specification.
Detailed Description
The embodiment of the specification provides a page processing method, device and equipment.
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
Example 1
As shown in fig. 1, the embodiment of the present disclosure provides a method for processing a page, where an execution body of the method may be a terminal device or a server, where the terminal device may be a device such as a personal computer, or may be a mobile terminal device such as a mobile phone, a tablet computer, or the like, and the terminal device may be a terminal device used by a user. The server may be an independent server or a server cluster formed by a plurality of servers, and the server may be a background server of a certain service or a background server of a certain website (such as an online shopping website or a payment application). The method can be used for generating a page (i.e. the target page mentioned in the embodiment) corresponding to a control in a raw user interface in an operating system of the terminal equipment, wherein the page is developed based on a hypertext markup language (i.e. Hyper Text Markup Language, HTML), and the hypertext markup language can comprise HTML 2.0, HTML 3.2, HTML 4.0, HTML 5 and the like. In order to simplify the page processing procedure and the page processing efficiency, in this embodiment, the execution body is taken as an example of the terminal device, and for the case of the server, the processing may be performed according to the following related content, which is not described herein again. The method specifically comprises the following steps:
In step S102, the type of the first control in the target user interface and typesetting information of the first control in the target user interface are acquired.
The target User Interface may be a native User Interface (i.e., UI) in an operating system of the terminal device, and the operating system of the terminal device may include an Android (i.e., android) operating system, an iOS operating system, and the like. The first control may be any control in the user interface of the operating system, such as a button, an input box control, a search box control, a calendar control, or an upload picture control, etc. The typesetting information can be information for indicating the size, the position and other relevant information of the control in the page, and the typesetting information can be used for facilitating the rendering and the display of the page by the terminal equipment. The types of the controls may be set according to actual situations, for example, the types of the controls may be classified according to actions and purposes of the controls, such as a key, an input frame, or an uploaded picture, and in practical applications, the types may not be limited to the above classification, and may be classified based on the above classification result, for example, the key types may be further classified into a circular key type, a rectangular key type, or the like, or the types of the controls may be directly classified into a circular key type, a rectangular key type, an input frame type, or an uploaded picture type, which is not limited in the embodiments of the present disclosure.
In practice, the hypertext markup language is an application under standard general markup language, also a specification, a standard that marks parts of a web page to be displayed by markup symbols. The web page file is a text file, and by adding a marker in the text file, the web page file can instruct a browser how to display contents (such as how to process text, how to arrange pictures, how to display pictures, etc.) in the web page file. The browser may read the web page file in the order of its contents and then interpret and display its marked contents according to the markers. Wherein, for different browsers, the same marker may not be interpreted identically, and thus may have different display effects. The hypertext markup language document is not very complex to make, but powerful, supporting file embedding of different data formats. The hypertext markup language can have the main characteristics of simplicity, expandability, independence of an operation platform, universality and the like, and because the version of the hypertext markup language is upgraded in a superset mode, the hypertext markup language can be more flexible and convenient, the hypertext markup language can be used on a wide operation platform (namely a platform of various operation systems, such as a Windows operation system platform or a Mac OS platform and the like), and the hypertext markup language allows a webpage producer to establish a complex page with combined text and image, and the page can be browsed no matter what type of terminal equipment or browser is used by a user.
More and more complex elements, such as a map, may be included in a page (i.e., a target page) developed based on the hypertext markup language, for example, if the target page developed based on the hypertext markup language is used to display the map, and the map generally needs to be scaled by a user, during the scaling process, the user may have difficulty scaling the map by touching with a finger, the experience of the touch operation of the user is poor, and the rendering efficiency of the target page is low.
The user interface in the terminal device is usually composed of one or more controls, a plurality of different user interfaces can be built through different controls, different functions can be realized by different controls, for example, the user interface can comprise map controls, a user can randomly zoom in or zoom out a map in the map controls through the map controls in a finger touch mode, obviously, the controls in the user interface in the terminal device can show better touch operation experience, and the rendering efficiency of the user interface is relatively high.
If the control in the user interface of the terminal equipment can be displayed in the target page, the experience of touch operation of the target page and the rendering efficiency of the target page can be improved, and in general, the control in the native user interface (i.e. the target user interface) of the operating system of the terminal equipment can be covered in the target page, wherein the process of covering the control in the target user interface in the target page can be that of covering the control in the target user interface in the Webview control of the target page in practical application. However, the target page obtained by the above coverage method needs to be limited, and the target page cannot be scaled, because the control in the target user interface covered in the target page cannot be scaled along with the scaling of the target page, but only the original style of the control can be kept unchanged, thereby causing trouble to the use of the user and having poor user experience. To this end, embodiments of the present disclosure provide a target page that may include a control in a user interface, and in which the control may further scale with scaling of the target page, specifically may include the following:
As shown in fig. 2A, when it is required to display a target page developed based on a hypertext markup language (the hypertext markup language in this embodiment may be illustrated by using HTML 5 as an example) by using one or more native user interfaces (i.e., target user interfaces) in an operating system of a terminal device, the target user interfaces may be acquired through a preset interface, analysis and calculation may be performed on the target user interfaces to determine a control (i.e., first control) included in the target user interfaces, and at the same time, a size of each first control and a position in the target user interfaces may be recorded, where the position may be represented in a coordinate form, or a certain position may also be used as a center point to determine a relative position between the first control and the center point, and so on. The typesetting information of the first controls in the target user interface can be generated by using the recorded information such as the size and the position of each first control in the target user interface. In addition, each first control in the target user interface can be analyzed to determine the type of each first control, for example, the type of each first control comprises 3 first controls, one of the first controls is a key, the other first control is a search box control, the third first control is an uploading picture control, the type of the first control comprises a key type, a search box type and an uploading picture type, correspondingly, for the key, typesetting information of one key can be generated, for the search box control, typesetting information of one search box control can be generated, and for the uploading picture control, typesetting information of one uploading picture control can be generated.
In step S104, according to the type of the first control and the typesetting information, a typesetting instruction set of a second control corresponding to the type in the target page is generated, where the second control is a control that is stored in advance and can be fused in the target page.
The second control may be a control stored in advance in a browser where the target page is located, or may be a control stored in advance in a database corresponding to the target page or a database corresponding to the browser, the second control may be a development or a technician creation of the target user interface, and because the creation of the second control fully considers the environment of the target page developed based on the hypertext markup language, that is, the second control needs to be used in the target page, may be scaled along with scaling of the target page, and the second control is of the same type as the first control in the target user interface, and corresponds to the first control and the second control, for example, the first control is a button, the second control should also be a button, and the second control may be completely identical to the first control in appearance and function. The typesetting instruction set can be a set formed by one or more typesetting instructions, each typesetting instruction can be independent of each other or can be mutually related, and if a plurality of typesetting instructions are mutually related, the typesetting instructions can also comprise identifications of typesetting instructions for storing the association relationship and the like.
In implementation, a browser where the target page is located, or a database corresponding to the target page, or a database corresponding to the browser may be pre-stored with a control corresponding to a control in a native user interface of an operating system of the terminal device. After the terminal device determines the type of the first control through the processing in the step S102, the control corresponding to the determined type may be searched for in the prestored control through the determined type, after the control is searched for, the searched control may be used as the second control corresponding to the first control, then, from the typesetting information obtained through the processing in the step S102, the typesetting information of the first control in the target user interface may be searched for, and after the typesetting information is searched for, the size and the position of the first control in the target user interface may be extracted.
An empty target page can be created, the size of the corresponding second control can be determined based on the inherent attribute of the target page and according to the size of the first control, and meanwhile, the position of the corresponding second control in the target page can be determined based on the inherent attribute of the target page and according to the position of the first control in the target user interface. The typesetting information of the second control in the target page can be generated through the inherent attribute of the target page, the size dimension of the second control, the position of the second control in the target page and the like, and one or more typesetting instructions of the second control in the target page can be generated based on the generated typesetting information, so that a typesetting instruction set of the second control in the target page is obtained.
It should be noted that the method may include a plurality of first controls, and the number of corresponding second controls should be also a plurality of, and for the case that a plurality of second controls are included, the typesetting instruction or typesetting instruction set of each second control in the target page may be obtained respectively through the above manner.
In step S106, executing the typesetting instruction in the typesetting instruction set, and performing typesetting processing and rendering processing on the second control in the target page to obtain the target page fused with the second control.
The typesetting process can be a process of arranging page constituent elements (such as text, pictures, line wire frames, color blocks and the like) in a limited page space in a combined mode according to the requirements of specific contents, and arranging the elements in the page by applying modeling elements and form principles. The rendering process may be a process of calculating a page to be presented to obtain a display effect of the page.
In implementation, after the typesetting instruction set of the second control in the target page is obtained through the processing in step S104, the terminal device may analyze the typesetting instructions in the typesetting instruction set respectively, so as to convert the data of the typesetting instructions in the typesetting instruction set into data that can be identified by the display component or the display module, then the display component or the display module of the terminal device may execute the analyzed typesetting instructions, and through the analyzed typesetting instructions, the relevant information of the second control may be determined, and the second control may be extracted from the prestored control. As shown in fig. 2B, the size of the second control and the position of the second control in the target page may also be determined through the parsed typesetting instruction, and then typesetting processing may be performed on the second control in the target page according to the determined size and the determined position in the target page, so as to obtain the typesetting result of the second control in the target page. The processing procedure can be executed on each second control to obtain the typesetting result of other second controls in the target page, the typesetting result of each second control in the target page can be synthesized to obtain the overall typesetting result of the target page, and finally, the target page can be rendered based on the overall typesetting result of the target page, so that the target page fused with the second control is presented.
Based on the above processing, since the second control can be fused into the target page (instead of being overlaid on the target page as in the related art), the second control can be scaled along with the scaling of the target page, and the second control corresponds to the first control in the target user interface, and the typesetting of the second control in the target page corresponds to the typesetting of the first control in the target user interface, so that the target page fused with the second control and the target user interface containing the first control are the same or similar in presentation or display result (for example, the appearances of the two pages are the same or similar), thereby giving the user a feeling of transferring the target user interface (or the controls therein) into the target page, and the controls in the target page can be scaled along with the scaling of the target page, so that the user experience is improved.
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 hypertext markup language, and a typesetting instruction set of a second control corresponding to the type in the target page is generated through the type of a first control in the target user interface and typesetting information of the first control in the target user interface, the second control is a control which is stored in advance and can be fused in the target page, the typesetting instruction in the typesetting instruction set is executed, typesetting processing and rendering processing are carried out on the second control in the target page, and the target page fused with the second control is obtained, so that the control of an original user interface (namely the target user interface) in an operating system of terminal equipment is added to the target page (namely the page developed based on the hypertext markup language) as a child display control of a display control in the target page, and the original user interface control in the operating system of the terminal equipment is not simply covered on the target page, thereby achieving the effect of fusing the control of the target user interface to the target page, and enabling the second control fused in the target page to be zoomed with the target page.
Example two
As shown in fig. 3, the embodiment of the present disclosure provides a method for processing a page, where an execution body of the method may be a terminal device or a server, where the terminal device may be a device such as a personal computer, or may be a mobile terminal device such as a mobile phone, a tablet computer, or the like, and the terminal device may be a terminal device used by a user. The server may be an independent server or a server cluster formed by a plurality of servers, and the server may be a background server of a certain service or a background server of a certain website (such as an online shopping website or a payment application). The method can be used for generating a page (i.e. the target page mentioned in the embodiment) corresponding to a control in a raw user interface in an operating system of the terminal equipment, wherein the page is developed based on a hypertext markup language (i.e. Hyper Text Markup Language, HTML), and the hypertext markup language can comprise HTML 2.0, HTML 3.2, HTML 4.0, HTML 5 and the like. In order to simplify the page processing procedure and the page processing efficiency, in this embodiment, the execution body is taken as an example of the terminal device, and for the case of the server, the processing may be performed according to the following related content, which is not described herein again. The method specifically comprises the following steps:
In step S302, a preset programming interface is invoked to obtain the type of the first control in the target user interface and typesetting information of the first control in the user interface.
The programming interface may be composed of one or more predefined functions, so as to provide an application program and developer (or technician) with the ability to access a set of routines based on a certain software or hardware, without having to access source code or understand details of internal working mechanisms, and may specifically be JSAPI (JavaScript Application Programming Interface, java description language application programming interface), and the like.
In implementation, when it is required to display a target page developed based on a hypertext markup language (the hypertext markup language in this embodiment may be illustrated by using HTML 5 as an example) by using one or more native user interfaces (i.e., target user interfaces) in an operating system of the terminal device, a preset programming interface (such as JSAPI or the like) may be called to obtain the target user interface, and the target user interface may be analyzed and calculated to determine the controls (i.e., first controls) included in the target user interface, and at the same time, the size and the position of each first control may be recorded. The typesetting information of the first controls in the target user interface can be generated by using the recorded information such as the size and the position of each first control in the target user interface. In addition, each first control in the target user interface can be analyzed to determine the type to which each first control belongs.
In step S304, according to the type of the first control and the typesetting information, a typesetting instruction set of a second control corresponding to the type in the target page is generated, where the second control is a control that is stored in advance and can be fused in the target page.
The content of step S304 is the same as that of step S104 in the first embodiment, and the specific processing procedure of step S304 may refer to the content of step S104 in the first embodiment, which is not described herein.
In step S306, the typesetting instruction in the typesetting instruction set is executed, and typesetting processing and rendering processing are performed on the second control in the target page, so as to obtain the target page fused with the second control.
The content of the step S306 is the same as that of the step S106 in the first embodiment, and the specific processing procedure of the step S306 can refer to the relevant content of the step S106 in the first embodiment, which is not described herein.
In addition, after the target page fused with the second control is obtained in the above manner, the second control in the target page may be managed, so as to obtain a processed target page, which may be specifically referred to the following processing in step S308 and step S310.
In step S308, a management instruction for the second control in the target page is received, which may include a delete instruction, a state modification instruction, and the like.
Wherein the state modification instruction may be to modify the second control from one state to another, e.g., modify the second control from an unactuated state to a triggered state, etc.
In an implementation, when one or more second controls in the target page need to be deleted, a second control management button provided in a browser where the target page is located or in the target page may be triggered, at this time, a deletion instruction for the one or more second controls in the target page may be generated, and the terminal device may receive the deletion instruction for the one or more second controls in the target page.
In addition, when the state of one or more second controls in the target page needs to be modified, a second control management button provided in a browser where the target page is located or in the target page can be triggered, at this time, current state information of the second controls and modified state information can be obtained, a state modification instruction for the one or more second controls in the target page can be generated based on the information, and the terminal device can receive the state modification instruction for the one or more second controls in the target page.
In step S310, according to the management instruction, a corresponding operation is performed on the second control in the target page.
In an implementation, when a deletion instruction of the one or more second controls in the target page is received, the identification of the one or more second controls to be deleted can be obtained, so that the corresponding one or more second controls can be found from the target page, and the one or more second controls can be deleted from the target page.
When a state modification instruction for the one or more second controls in the target page is received, the identification of the one or more second controls needing to be subjected to state modification can be obtained, so that the corresponding one or more second controls can be searched from the target page, and the state of the one or more second controls corresponding to the current state information can be modified into 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 hypertext markup language, and a typesetting instruction set of a second control corresponding to the type in the target page is generated through the type of a first control in the target user interface and typesetting information of the first control in the target user interface, the second control is a control which is stored in advance and can be fused in the target page, the typesetting instruction in the typesetting instruction set is executed, typesetting processing and rendering processing are carried out on the second control in the target page, and the target page fused with the second control is obtained, so that the control of an original user interface (namely the target user interface) in an operating system of terminal equipment is added to the target page (namely the page developed based on the hypertext markup language) as a child display control of a display control in the target page, and the original user interface control in the operating system of the terminal equipment is not simply covered on the target page, thereby achieving the effect of fusing the control of the target user interface to the target page, and enabling the second control fused in the target page to be zoomed with the target page.
The first embodiment and the second embodiment are described in detail by taking a terminal device (or a browser installed in the terminal device, or a target page in the browser) as an execution main body, where the target page needs to acquire related information of a first control in a target user interface, process the acquired related information, render and display the target page, and the like, and in practical application, the target page may be further divided into different modules according to different functions of the target page, and the third embodiment and the fourth embodiment describe the target page as a page management module, a global initialization module, and a page rendering module, specifically see the following, where the page management module may be represented by an nbcompnentmanager, the global initialization module may be represented by an nbcompnentloader, the page rendering module may be represented by an nbcompnentview UI, the target page may be represented by a review, and the jsreview may be a markup and display of a target page based on a super 5-language (e.g., a HTML control) in an operating system of the terminal device. In addition, the target page may be divided into not only the three modules, but also more detailed division into more than three modules, and even if the target page is divided into three modules, the target page may be divided into not only a page management module, a global initialization module, and a page rendering module, but also three different modules of other types according to the function of the target page, and for the above case, the specific processing procedure may be executed with reference to the following.
Example III
As shown in fig. 4, the embodiment of the present disclosure provides a method for processing a page, where an execution body of the method may be a terminal device or a server, where the terminal device may be a device such as a personal computer, or may be a mobile terminal device such as a mobile phone, a tablet computer, or the like, and the terminal device may be a terminal device used by a user. The server may be an independent server or a server cluster formed by a plurality of servers, and the server may be a background server of a certain service or a background server of a certain website (such as an online shopping website or a payment application). The method can be used for generating a page (i.e. the target page mentioned in the embodiment) corresponding to a control in a raw user interface in an operating system of the terminal equipment, wherein the page is developed based on a hypertext markup language (i.e. Hyper Text Markup Language, HTML), and the hypertext markup language can comprise HTML 2.0, HTML 3.2, HTML 4.0, HTML 5 and the like. In order to simplify the page processing procedure and the page processing efficiency, the embodiment uses the execution body as the terminal device for illustration, and for the case of the server, the processing may be performed according to the following related content, which is not described herein, and in addition, the execution body of the method may be specifically a page management module (i.e., nbcompnentmanager) in the target page in the terminal device. The method specifically comprises the following steps:
In step S402, a global initialization module is invoked to obtain a type of a first control in a target user interface and typesetting information of the first control in the target user interface, and according to the type and the typesetting information, a typesetting instruction set of a second control corresponding to the type in a target page is generated, wherein the second control is a control which is stored in advance and can be fused in the target page.
Wherein, a global initialization module (i.e., NBComponentJSLoader) may be run in WebView for computing and generating a typesetting instruction set. The main role of the page management module NBComponentManager may be to communicate with the global initialization module NBComponentJSLoader to obtain a typesetting instruction set and manage the display of the page rendering module NBComponentViews.
In implementation, as shown in fig. 5, the target page may include 6 parts, which are respectively a page management module NBComponentManager, a global initialization module NBComponentJSLoader, a page rendering module NBComponentViews, webview, a control management module NBComponentView manager, a programming interface JSAPI, and the like, where the control management module NBComponentView manager is a plug-in manager of NBComponentView, and a user may develop and register a customized NBComponentView.
When it is required to display a target page developed based on a hypertext markup language (the hypertext markup language in this embodiment may be illustrated by HTML5 as an example) by using one or more native user interfaces (i.e., target user interfaces) in an operating system of the terminal device, the page management module nbcompnentmanager may call the global initialization module NBComponentJSLoader, NBComponentJSLoader to obtain the target user interfaces, and may perform analysis and calculation on the target user interfaces to determine controls (i.e., first controls) included in the target user interfaces, and at the same time, may record the size and the position of each first control in the target user interfaces. The typesetting information of the first controls in the target user interface can be generated by using the recorded information such as the size and the position of each first control in the target user interface. In addition, each first control in the target user interface can be analyzed to determine the type to which each first control belongs.
The page rendering module NBComponentViews may have stored in advance therein controls corresponding to controls in the native user interface of the operating system of the terminal device. After the nbcompnentjsloader determines the type of the first control through the above processing, the second control corresponding to the determined type may be searched for in the pre-stored control through the determined type, and then the nbcompnentjsloader may search the typesetting information of the first control in the target user interface from the obtained typesetting information, so as to obtain the size and the position of the first control in the target user interface.
The NBComponentJSLoader may determine the size of the corresponding second control according to the size of the first control, and may determine the position of the corresponding second control in the target page according to the position of the first control in the target user interface. The NBComponentJSLoader can generate a typesetting instruction set of the second control in the target page through the size of the second control, the position of the second control in the target page and the like.
In step S404, the above-mentioned typesetting instruction set sent by the global initialization module is received.
In step S406, the typesetting instruction in the typesetting instruction set is parsed, and a parsed typesetting instruction is obtained.
In implementation, since the data of the typesetting instruction in the typesetting instruction set generated by the NBComponentJSLoader is the data unrecognizable by the NBComponentViews, the NBComponentViews cannot execute the typesetting instruction to perform typesetting processing and rendering processing to obtain the corresponding target page, and therefore, the NBComponentManager can parse the typesetting instruction in the typesetting instruction set to obtain the parsed typesetting instruction capable of being recognized by the NBComponentViews.
In step S408, a page rendering module is created, and the parsed typesetting instruction is sent to the page rendering module, so that the page rendering module obtains a target page fused with the second control according to the parsed typesetting instruction.
In implementation, during typesetting instructions in the NBComponentManager typesetting instruction set, corresponding NBComponentViews may be created and fused to WebView. The parsed composition instructions of NBComponentManager may then be sent to NBComponentViews. The NBComponentViews can process the parsed typesetting instruction, acquire the second control according to the data and the attribute in the parsed typesetting instruction, fuse the second control into a target page (namely an HTML5 page), and display the target page (namely the HTML5 page).
As shown in fig. 6, the embodiment of the present disclosure provides a method for processing a page, where an execution body of the method may be a terminal device or a server, where the terminal device may be a device such as a personal computer, or a mobile terminal device such as a mobile phone, a tablet computer, or the like, and the terminal device may be a terminal device used by a user. The server may be an independent server or a server cluster formed by a plurality of servers, and the server may be a background server of a certain service or a background server of a certain website (such as an online shopping website or a payment application). The method can be used for generating a page (i.e. the target page mentioned in the embodiment) corresponding to a control in a raw user interface in an operating system of the terminal equipment, wherein the page is developed based on a hypertext markup language (i.e. Hyper Text Markup Language, HTML), and the hypertext markup language can comprise HTML2.0, HTML3.2, HTML4.0, HTML5 and the like. In order to simplify the page processing procedure and the page processing efficiency, the embodiment uses the execution body as the terminal device for illustration, and for the case of the server, the processing may be performed according to the following related content, which is not described herein, and in addition, the execution body of the method may be specifically a global initialization module (i.e., NBComponentJSLoader) in the target page in the terminal device. The method specifically comprises the following steps:
In step S602, a programming interface call instruction is sent to the page management module.
In step S604, according to the call instruction of the page management module, the type of the first control in the target user interface and the typesetting information of the first control in the target user interface are obtained, and according to the type and the typesetting information, a typesetting instruction set of the second control corresponding to the type in the target page is generated, wherein the second control is a control which is stored in advance and can be fused in the target page.
In step S606, the above-described typesetting instruction set is sent to the page management module.
As shown in fig. 7, the embodiment of the present disclosure provides a method for processing a page, where an execution body of the method may be a terminal device or a server, where the terminal device may be a device such as a personal computer, or may be a mobile terminal device such as a mobile phone, a tablet computer, or the like, and the terminal device may be a terminal device used by a user. The server may be an independent server or a server cluster formed by a plurality of servers, and the server may be a background server of a certain service or a background server of a certain website (such as an online shopping website or a payment application). The method can be used for generating a page (i.e. the target page mentioned in the embodiment) corresponding to a control in a raw user interface in an operating system of the terminal equipment, wherein the page is developed based on a hypertext markup language (i.e. Hyper Text Markup Language, HTML), and the hypertext markup language can comprise HTML 2.0, HTML3.2, HTML4.0, HTML5 and the like. In order to simplify the page processing procedure and the page processing efficiency, the embodiment uses the execution body as the terminal device for illustration, and for the case of the server, the processing may be performed according to the following related content, which is not described herein, and in addition, the execution body of the method may be specifically a page rendering module nbcompnentviews in a target page in the terminal device. The method specifically comprises the following steps:
In step S702, a typesetting instruction sent by the page management module is received, 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.
In step S704, the typesetting instruction is executed, a second control corresponding to the typesetting instruction is obtained from a prestored control library, typesetting processing and rendering processing are performed on the second control in the target page, and the target page fused with the second control is obtained, where the second control is a control corresponding to the type of the first control in the target user interface.
The prestored control library may be set in a page rendering module NBComponentViews, where NBComponentViews may include a set of native UI control libraries (or native UI control sets) of an operating system of a terminal device that may be incorporated into a target page developed based on a hypertext markup language (e.g., HTML 5).
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 hypertext markup language, and a typesetting instruction set of a second control corresponding to the type in the target page is generated through the type of a first control in the target user interface and typesetting information of the first control in the target user interface, the second control is a control which is stored in advance and can be fused in the target page, the typesetting instruction in the typesetting instruction set is executed, typesetting processing and rendering processing are carried out on the second control in the target page, and the target page fused with the second control is obtained, so that the control of an original user interface (namely the target user interface) in an operating system of terminal equipment is added to the target page (namely the page developed based on the hypertext markup language) as a child display control of a display control in the target page, and the original user interface control in the operating system of the terminal equipment is not simply covered on the target page, thereby achieving the effect of fusing the control of the target user interface to the target page, and enabling the second control fused in the target page to be zoomed with the target page.
Example IV
As shown in fig. 8, the embodiment of the present disclosure provides a method for processing a page, where an execution body of the method may be a terminal device or a server, where the terminal device may be a device such as a personal computer, or may be a mobile terminal device such as a mobile phone, a tablet computer, or the like, and the terminal device may be a terminal device used by a user. The server may be an independent server or a server cluster formed by a plurality of servers, and the server may be a background server of a certain service or a background server of a certain website (such as an online shopping website or a payment application). The method can be used for generating a page (i.e. the target page mentioned in the embodiment) corresponding to a control in a raw user interface in an operating system of the terminal equipment, wherein the page is developed based on a hypertext markup language (i.e. Hyper Text Markup Language, HTML), and the hypertext markup language can comprise HTML 2.0, HTML 3.2, HTML 4.0, HTML 5 and the like. In order to simplify the page processing procedure and the page processing efficiency, the embodiment uses the execution body as the terminal device for illustration, and for the case of the server, the processing may be performed according to the following related content, which is not described herein, and in addition, the method may be specifically executed jointly by the page management module (i.e., nbcompnentmanager), the global initialization module (nbcompnentjsloader), and the page rendering module (nbcompnentviews) in the target page in the terminal device. The method specifically comprises the following steps:
In step S802, the global initialization module sends a programming interface call instruction to the page management module.
In an implementation, while creating a target page developed based on a hypertext markup language (e.g., HTML 5), the global initialization module NBComponentJSLoader may perform an initialization process, and may store the NBComponentJSLoader in a context of a current target page, after the NBComponentJSLoader is initialized, may send a notification message to the page management module NBComponentManager, where the NBComponentManager may receive the notification message and may perform an initialization process. After the completion of the NBComponentManager initialization, the NBComponentJSLoader may send a JSAPI call instruction (i.e., call Render JSAPI) to the NBComponentManager.
In step S804, the page management module invokes the global initialization module.
In step S806, the global initialization module obtains, according to the call instruction of the page management module, the type of the first control in the target user interface and the typesetting information of the first control in the target user interface, and generates, according to the type and the typesetting information, a typesetting instruction set of the second control corresponding to the type in the target page, where the second control is a control that is stored in advance and can be fused in the target page.
In step S808, the global initialization module transmits a composition instruction set to the page management module.
In step S810, the page management module parses the layout instruction in the layout instruction set to obtain a parsed layout instruction.
In step S812, the page management module creates a page rendering module and sends the parsed typesetting instruction to the page rendering module.
In step S814, the page rendering module executes the parsed typesetting instruction, obtains the second control corresponding to the typesetting instruction from the control library stored in advance, and performs typesetting processing and rendering processing on the second control in the target page to obtain the target page fused with the second control.
It should be noted that, after the page rendering module completes the typesetting processing and rendering processing, and obtains the target page fused with the second control, a notification message of the completion of rendering the target page may be sent to the global initialization module.
In the process of executing the page management module to create the page rendering module in the step S812, the life cycle of the page rendering module may be created at the same time to manage the display, hiding, and destruction of the page rendering module, which may be specifically referred to the following processes from step S816 to step S826.
In step S816, the page management module creates a lifecycle of the page rendering module.
In an implementation, if the target page is created for the first time, the NBComponentViews will receive notification that the native UI controls in the operating system of the terminal device are fused to Webview for handling initialization work related to the native UI controls in the operating system of the terminal device.
In step S818, when receiving the notification message that the life cycle is invisible sent by the global initialization module, the page management module sets the life cycle of the page rendering module to an invisible state.
In practical application, the notification message of invisible life cycle may be represented by a notification message of onwebviewpuse, and the onwebviewpuse may be formed by a life cycle function of invisible WebView, so as to process the life cycle related to a native UI control in an operating system of the terminal device.
In an implementation, when the terminal device is in a lock screen or background state, the global initialization module may generate a notification message (i.e., onwebviewpuse) that the lifecycle is not visible, and may send it to the page management module NBComponentManager. When the NBComponentManager receives the notification message of the onwebview pause sent by the global initialization module, the onwebview pause may be sent to the page rendering module NBComponentViews, and call back the NBComponentViews to set the lifecycle of the NBComponentViews to an invisible state.
In step S820, when receiving the notification message that the life cycle is restored to be visible, which is sent by the global initialization module, the page management module sets the life cycle of the page rendering module to be in a visible state.
In practical application, the notification message of the life cycle visible can be represented by a notification message of onWebViewResume, and the onWebViewResume can be composed of a life cycle function of the WebView visible for processing the life cycle related to the native UI control in the operating system of the terminal device.
In an implementation, when the terminal device is in an unlocked or foreground-back state, the global initialization module may generate a notification message (i.e., onwebview notification) that is visible to the lifecycle and may send it to the page management module NBComponentManager. When the NBComponentManager receives the notification message of onWebViewResume, the onWebViewResume may be sent to NBComponentViews and call back to NBComponentViews to set the lifecycle of NBComponentViews to a visible state.
In step S822, when receiving the notification message that the second control sent by the global initialization module is removed or the target page is destroyed, the page management module destroys the life cycle of the page rendering module.
In practical applications, the removal of the second control may be represented by onembeddview detachedfrom webview, and the onembeddview detachedfrom webview may represent a life cycle function of the removal of the native UI control in the operating system of the terminal device. The target page destroyed may be represented by onwebview Destore, which may represent a lifecycle function of WebView destruction.
In an implementation, when the target page is destroyed, the global initialization module may generate notification messages for onEmbeddViewDetacchedFromWebView and onWebViewDestore and may send them to the page management module NBComponentmanager. When the NBComponentManager receives the notification messages of the onEmbedViewDetachedFromWebView and the onWebViewDestore, the onEmbedViewDetachedFromWebView and the onWebViewDestore can be sent to the NBComponentViews, and the NBComponentViews can be called back to destroy the lifecycle of the NBComponentViews.
In step S824, the page management module invokes the page rendering module.
In step S826, according to the call instruction of the page rendering module, when the global initialization module detects that the second control is removed or the target page is destroyed, the page rendering module releases and retrieves the second control.
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 hypertext markup language, and a typesetting instruction set of a second control corresponding to the type in the target page is generated through the type of a first control in the target user interface and typesetting information of the first control in the target user interface, the second control is a control which is stored in advance and can be fused in the target page, the typesetting instruction in the typesetting instruction set is executed, typesetting processing and rendering processing are carried out on the second control in the target page, and the target page fused with the second control is obtained, so that the control of an original user interface (namely the target user interface) in an operating system of terminal equipment is added to the target page (namely the page developed based on the hypertext markup language) as a child display control of a display control in the target page, and the original user interface control in the operating system of the terminal equipment is not simply covered on the target page, thereby achieving the effect of fusing the control of the target user interface to the target page, and enabling the second control fused in the target page to be zoomed with the target page.
Example five
The above method for processing a page provided for the embodiments of the present disclosure further provides a device for processing a page, based on the same concept, where the device includes a target page, and the target page is developed based on a hypertext markup language, as shown in fig. 9.
The page processing apparatus includes: an information acquisition module 901, a typesetting instruction generation module 902 and a processing module 903, wherein:
the information acquisition module 901 is configured to acquire a type of a first control in a target user interface and typesetting information of the first control in the target user interface;
the typesetting instruction generating module 902 is configured to generate, according to the type of the first control and the typesetting information, a typesetting instruction set of a second control corresponding to the type in the target page, where the second control is a control that is stored in advance and can be fused in the target page;
and the processing module 903 is configured to execute a typesetting instruction in the typesetting instruction set, and perform typesetting processing and rendering processing on the second control in the target page, so as to obtain a target page fused with the second control.
In this embodiment of the present disclosure, the information obtaining module 901 is configured to invoke a preset programming interface to obtain a type of a first control in a target user interface and typesetting information of the first control in the user interface.
In an embodiment of the present disclosure, the apparatus further includes:
the instruction receiving module is used for receiving a management instruction of the second control in the target page, wherein the management instruction comprises a deleting instruction and a state modifying instruction;
and the instruction execution module is used for executing corresponding operation on the second control in the target page according to the management instruction.
The embodiment of the specification provides a page processing device, which comprises a target page, wherein the target page is developed based on a hypertext markup language, and a typesetting instruction set of a second control corresponding to the type in the target page is generated through the type of a first control in the target user interface and typesetting information of the first control in the target user interface, the second control is a control which is stored in advance and can be fused in the target page, the typesetting instruction in the typesetting instruction set is executed, typesetting processing and rendering processing are carried out on the second control in the target page, and the target page fused with the second control is obtained.
Example six
Based on the same thought, the embodiment of the present disclosure further provides a page management module in the page processing apparatus, where the page management module is disposed in a target page, the target page is developed based on the hypertext markup language, and the target page further includes a global initialization module, as shown in fig. 10.
The page processing apparatus includes: a first calling unit 1001, an instruction set receiving unit 1002, a parsing unit 1003, and an instruction transmitting unit 1004, wherein:
the first invoking unit 1001 is configured to invoke the global initialization module to obtain a type of a first control in a target user interface and typesetting information of the first control in the target user interface, and generate a typesetting instruction set of a second control corresponding to the type in the target page according to the type and the typesetting information, where the second control is a control that is stored in advance and can be fused in the target page;
an instruction set receiving unit 1002, configured to receive the typesetting instruction set sent by the global initialization module;
an parsing unit 1003, configured to parse the typesetting instruction in the typesetting instruction set to obtain a parsed typesetting instruction;
The instruction sending unit 1004 is configured to create a page rendering module, and send the parsed typesetting instruction to the page rendering module, so that the page rendering module obtains a target page fused with the second control according to the parsed typesetting instruction.
In this embodiment of the present disclosure, the first calling unit 1001 includes:
the instruction receiving subunit is used for receiving a programming interface calling instruction sent by the global initialization module;
and the calling subunit is used for calling the global initialization module.
In this embodiment of the present disclosure, the page management module further includes:
a life cycle creation unit for creating a life cycle of the page rendering module;
the first setting unit is used for setting the life cycle of the page rendering module to be in an invisible state when receiving the notification message that the life cycle is invisible and is sent by the global initialization module;
and the second setting unit is used for setting the life cycle of the page rendering module to be in a visible state when receiving the notification message for restoring the life cycle to be visible, which is sent by the global initialization module.
In this embodiment of the present disclosure, the page management module further includes:
The destroying unit is used for destroying the life cycle of the page rendering module when receiving the notification message that the second control sent by the global initialization module is removed or the target page is destroyed;
and the second calling unit is used for calling the page rendering module to release and recycle the second control.
The embodiment of the specification provides a page management module in a page processing device, which is arranged on a target page, the target page is developed based on a hypertext markup language, and a typesetting instruction set of a second control corresponding to a type in the target page is generated through the type of the first control in the target user interface and typesetting information of the first control in the target user interface, the second control is a control which is stored in advance and can be fused in the target page, the typesetting instruction in the typesetting instruction set is executed, typesetting processing and rendering processing are carried out on the second control in the target page, and the target page fused with the second control is obtained, so that an original user interface (namely, the target user interface) control in an operating system of a terminal device is added to the target page (namely, a page developed based on the hypertext markup language) as a child display control of a display control in the target page, and the original user interface control in the operating system of the terminal device is not simply covered on the target page, and therefore the effect of fusing the control of the target user interface to the target page is achieved, the second control fused in the target page can be improved along with the target page, and the user experience is improved.
Example seven
Based on the same thought, the embodiment of the present disclosure further provides a global initialization module in the page processing apparatus, where the global initialization module is set in a target page, the target page is developed based on a hypertext markup language, and the target page further includes a page management module, as shown in fig. 11.
The page processing apparatus includes: an instruction sending unit 1101, an information acquiring unit 1102, and a request sending module 1103, wherein:
an instruction sending unit 1101, configured to send a programming interface calling instruction to the page management module;
the information obtaining unit 1102 is configured to obtain, according to a call instruction of the page management module, a type of a first control in a target user interface and typesetting information of the first control in the target user interface, and generate, according to the type and the typesetting information, a typesetting instruction set of a second control corresponding to the type in the target page, where the second control is a control that is stored in advance and can be fused in the target page;
an instruction set sending unit 1103 is configured to send the typesetting instruction set to the page management module.
The embodiment of the specification provides a global initialization module in a page processing device, which is arranged on a target page, the target page is developed based on a hypertext markup language, and a typesetting instruction set of a second control corresponding to a type in the target page is generated through the type of the first control in the target user interface and typesetting information of the first control in the target user interface, the second control is a control which is stored in advance and can be fused in the target page, the typesetting instruction in the typesetting instruction set is executed, typesetting processing and rendering processing are carried out on the second control in the target page, and the target page fused with the second control is obtained, so that the control of an original user interface (namely the target user interface) in an operating system of a terminal device is added to the target page (namely, a page developed based on the hypertext markup language) as a child display control of a display control in the target page, and the original user interface control in the operating system of the terminal device is not simply covered on the target page, and therefore the effect of fusing the control of the target user interface to the target page is achieved, and the second control fused in the target page can be subjected to scaling experience with the target page is improved.
Example eight
Based on the same thought, the embodiment of the present disclosure further provides a page rendering module in the page processing apparatus, where the page rendering module is disposed in a target page, the target page is developed based on the hypertext markup language, and the target page further includes a page management module and a global initialization module, as shown in fig. 12.
The page processing apparatus includes: an instruction receiving unit 1201 and an instruction executing unit 1202, wherein:
the instruction receiving unit 1201 is configured to receive a typesetting instruction sent by the page management module, where the typesetting instruction is obtained by the page management module analyzing a typesetting instruction set of the target page generated and sent by the global initialization module;
the instruction execution unit 1202 is configured to execute the typesetting instruction, obtain a second control corresponding to the typesetting instruction from a control library stored in advance, and perform typesetting processing and rendering processing on the second control in the target page to obtain a target page fused with the second control, where the second control is a control corresponding to a type of the first control in the target user interface.
In an embodiment of the present disclosure, the page rendering module further includes:
And the control release unit is used for releasing and recovering the second control when the global initialization module detects that the second control is removed or the target page is destroyed according to the call instruction of the page rendering module.
The embodiment of the specification provides a page rendering module in a page processing device, which is arranged on a target page, the target page is developed based on a hypertext markup language, and a typesetting instruction set of a second control corresponding to a type in the target page is generated through the type of the first control in the target user interface and typesetting information of the first control in the target user interface, the second control is a control which is stored in advance and can be fused in the target page, the typesetting instruction in the typesetting instruction set is executed, typesetting processing and rendering processing are carried out on the second control in the target page, and the target page fused with the second control is obtained, so that an original user interface (namely, the target user interface) control in an operating system of a terminal device is added to the target page (namely, a page developed based on the hypertext markup language) as a child display control of a display control in the target page, and the original user interface control in the operating system of the terminal device is not simply covered on the target page, and therefore the effect of fusing the control of the target user interface to the target page is achieved, the second control fused in the target page can be improved along with the target page, and the user experience is improved.
Example nine
Based on the same thought, the embodiment of the present specification also provides a page processing apparatus, as shown in fig. 13.
The page processing device may be a terminal device provided in the foregoing embodiment.
The page processing apparatus may vary considerably in configuration or performance, and may include one or more processors 1301 and memory 1302, where memory 1302 may store one or more stored applications or data. Wherein the memory 1302 may be transient storage or persistent storage. The application programs stored in memory 1302 may include one or more modules (not shown) each of which may include a series of computer executable instructions for use in the page processing apparatus. Still further, the processor 1301 may be arranged to communicate with the memory 1302 to execute a series of computer executable instructions in the memory 1302 on a page processing apparatus. The page processing device may also include one or more power supplies 1303, one or more wired or wireless network interfaces 1304, one or more input/output interfaces 1305, and one or more keyboards 1306.
In particular, in this embodiment, the page processing device includes a memory, and one or more programs, where the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the page processing device, and the execution of the one or more programs by the one or more processors includes computer-executable instructions for:
Acquiring the type of a first control in a target user interface and typesetting information of the first control in the target user interface;
generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type of the first control and the typesetting information, wherein the second control is a control which is stored in advance and can be fused in the target page, and the target page is developed based on a hypertext markup language;
executing the typesetting instruction in the typesetting instruction set, and performing typesetting processing and rendering processing on the second control in the target page to obtain the target page fused with the second control.
Optionally, the obtaining the type of the first control in the target user interface and the typesetting information of the first control in the user interface includes:
and calling a preset programming interface to acquire the type of a first control in a target user interface and typesetting information of the first control in the user interface.
Optionally, the method further comprises:
receiving a management instruction for the second control in the target page, wherein the management instruction comprises a deletion instruction and a state modification instruction;
And executing corresponding operation on the second control in the target page according to the management instruction.
The embodiment of the specification provides page processing equipment, which comprises a target page, wherein the target page is developed based on a hypertext markup language, and a typesetting instruction set of a second control corresponding to the type in the target page is generated through the type of a first control in the target user interface and typesetting information of the first control in the target user interface, the second control is a control which is stored in advance and can be fused in the target page, the typesetting instruction in the typesetting instruction set is executed, typesetting processing and rendering processing are carried out on the second control in the target page, and the target page fused with the second control is obtained, so that the control of an original user interface (namely the target user interface) in an operating system of the terminal equipment is added into the target page (namely, the page developed based on the hypertext markup language) as a child display control of a display control in the target page, and the original user interface control in the operating system of the terminal equipment is not simply covered on the target page, thereby achieving the effect of fusing the control of the target user interface to the target page, enabling the second control fused in the target page to be carried out along with the target page, and improving user experience.
Examples ten
Based on the same thought, the embodiment of the present specification also provides a page processing apparatus, as shown in fig. 14.
The page processing device may be a terminal device provided in the foregoing embodiment.
The page processing apparatus may be of a relatively large variety, depending on configuration or performance, and may include one or more processors 1401 and memory 1402, where the memory 1402 may store one or more stored applications or data. Wherein memory 1402 may be a transitory storage or a persistent storage. The application programs stored in memory 1402 may include one or more modules (not shown in the figures), each of which may include a series of computer-executable instructions for use in the page processing device. Still further, a processor 1401 may be provided in communication with memory 1402 to execute a series of computer executable instructions in memory 1402 on a page processing device. The page processing device may also include one or more power supplies 1403, one or more wired or wireless network interfaces 1404, one or more input/output interfaces 1405, and one or more keyboards 1406.
In particular, in this embodiment, the page processing device includes a memory, and one or more programs, where the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the page processing device, and the execution of the one or more programs by the one or more processors includes computer-executable instructions for:
The method is applied to a target page, the target page is developed based on a hypertext markup language, the target page comprises a global initialization module, and the method comprises the following steps:
invoking the global initialization module to acquire the type of a first control in a target user interface and typesetting information of the first control in the target user interface, and generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type and the typesetting information, wherein the second control is a control which is prestored and can be fused in the target page;
receiving the typesetting instruction set sent by the global initialization module;
analyzing the typesetting instruction in the typesetting instruction set to obtain an analyzed typesetting instruction;
and creating a page rendering module, and sending the analyzed typesetting instruction to the page rendering module so that the page rendering module obtains a target page fused with the second control according to the analyzed typesetting instruction.
Optionally, the invoking the global initialization module includes:
receiving a programming interface calling instruction sent by the global initialization module;
and calling the global initialization module.
Optionally, after the creating the page rendering module, the method further includes:
creating a life cycle of the page rendering module;
when receiving the notification message that the life cycle is invisible, which is sent by the global initialization module, setting the life cycle of the page rendering module into an invisible state;
and when receiving the notification message for restoring the life cycle to be visible, which is sent by the global initialization module, setting the life cycle of the page rendering module to be in a visible state.
Optionally, the method further comprises:
when receiving a notification message sent by the global initialization module that the second control is removed or the target page is destroyed, destroying the life cycle of the page rendering module;
and calling the page rendering module to release and recycle the second control.
In particular, in this embodiment, the page processing device includes a memory, and one or more programs, where the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the page processing device, and the execution of the one or more programs by the one or more processors includes computer-executable instructions for:
The method is applied to a target page, the target page is developed based on a hypertext markup language, the target page comprises a page management module, and the method comprises the following steps:
sending a programming interface calling instruction to the page management module;
acquiring the type of a first control in a target user interface and typesetting information of the first control in the target user interface according to a calling instruction of the page management module, and generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type and the typesetting information, wherein the second control is a control which is prestored and can be fused in the target page;
and sending the typesetting instruction set to the page management module.
In particular, in this embodiment, the page processing device includes a memory, and one or more programs, where the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the page processing device, and the execution of the one or more programs by the one or more processors includes computer-executable instructions for:
The method is applied to a target page, the target page is developed based on a hypertext markup language, the target page comprises a page management module and a global initialization module, and the method comprises the following steps:
receiving a typesetting instruction sent by the page management module, wherein the typesetting instruction is obtained by analyzing a typesetting instruction set of the target page generated and sent by the global initialization module by the page management module;
executing the typesetting instruction, acquiring a second control corresponding to the typesetting instruction from a prestored control library, and performing typesetting processing and rendering processing on the second control in the target page to obtain a target page fused with the second control, wherein the second control is a control corresponding to the type of the first control in the target user interface.
Optionally, the method further comprises:
and according to the call instruction of the page rendering module, releasing and recycling the second control when the global initialization module detects that the second control is removed or the target page is destroyed.
The embodiment of the specification provides page processing equipment, which comprises a target page, wherein the target page is developed based on a hypertext markup language, and a typesetting instruction set of a second control corresponding to the type in the target page is generated through the type of a first control in the target user interface and typesetting information of the first control in the target user interface, the second control is a control which is stored in advance and can be fused in the target page, the typesetting instruction in the typesetting instruction set is executed, typesetting processing and rendering processing are carried out on the second control in the target page, and the target page fused with the second control is obtained, so that the control of an original user interface (namely the target user interface) in an operating system of the terminal equipment is added into the target page (namely, the page developed based on the hypertext markup language) as a child display control of a display control in the target page, and the original user interface control in the operating system of the terminal equipment is not simply covered on the target page, thereby achieving the effect of fusing the control of the target user interface to the target page, enabling the second control fused in the target page to be carried out along with the target page, and improving user experience.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In the 90 s of the 20 th century, improvements to one technology could clearly be distinguished as improvements in hardware (e.g., improvements to circuit structures such as diodes, transistors, switches, etc.) or software (improvements to the process flow). However, with the development of technology, many improvements of the current method flows can be regarded as direct improvements of hardware circuit structures. Designers almost always obtain corresponding hardware circuit structures by programming improved method flows into hardware circuits. Therefore, an improvement of a method flow cannot be said to be realized by a hardware entity module. For example, a programmable logic device (Programmable Logic Device, PLD) (e.g., field programmable gate array (Field Programmable Gate Array, FPGA)) is an integrated circuit whose logic function is determined by the programming of the device by a user. A designer programs to "integrate" a digital system onto a PLD without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Moreover, nowadays, instead of manually manufacturing integrated circuit chips, such programming is mostly implemented by using "logic compiler" software, which is similar to the software compiler used in program development and writing, and the original code before the compiling is also written in a specific programming language, which is called hardware description language (Hardware Description Language, HDL), but not just one of the hdds, but a plurality of kinds, 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., VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog are currently most commonly used. It will also be apparent to those skilled in the art that a hardware circuit implementing the logic method flow can be readily obtained by merely slightly programming the method flow into an integrated circuit using several of the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable logic controllers, and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, atmel AT91SAM, microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic of the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller in a pure computer readable program code, it is well possible to implement the same functionality by logically programming the method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc. Such a controller may thus be regarded as a kind of hardware component, and means for performing various functions included therein may also be regarded as structures within the hardware component. Or even means for achieving the various functions may be regarded as either software modules implementing the methods or structures within hardware components.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, 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, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing one or more embodiments of the present description.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description 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 the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present description are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description 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 the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
One or more embodiments of the present specification may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the present description may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
The foregoing is merely exemplary of the present disclosure and is not intended to limit the disclosure. Various modifications and alterations to this specification will become apparent to those skilled in the art. Any modifications, equivalent substitutions, improvements, or the like, which are within the spirit and principles of the present description, are intended to be included within the scope of the claims of the present description.

Claims (21)

1. A method of page processing, the method being applied to a target page developed based on a hypertext markup language, comprising:
acquiring the type of a first control in a target user interface and typesetting information of the first control in the target user interface, wherein the first control is a control for controlling corresponding content to scale through finger touch, and the typesetting information is related information used for indicating the size and the position of the first control in the target user interface;
generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type of the first control and the typesetting information, wherein the second control is a control which is stored in advance and can be fused in the target page, and the second control scales along with the scaling of the target page;
executing the typesetting instruction in the typesetting instruction set, and performing typesetting processing and rendering processing on the second control in the target page to obtain the target page fused with the second control.
2. The method of claim 1, the obtaining the type of the first control in the target user interface and the typesetting information of the first control in the user interface, comprising:
And calling a preset programming interface to acquire the type of a first control in a target user interface and typesetting information of the first control in the user interface.
3. The method of claim 1, the method further comprising:
receiving a management instruction for the second control in the target page, wherein the management instruction comprises a deletion instruction and a state modification instruction;
and executing corresponding operation on the second control in the target page according to the management instruction.
4. The method is applied to a page management module, the page management module is arranged in a target page, the target page is developed based on a hypertext markup language, the target page comprises a global initialization module, and the method comprises the following steps:
invoking the global initialization module to acquire the type of a first control in a target user interface and typesetting information of the first control in the target user interface, and generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type and the typesetting information, wherein the second control is a control which is stored in advance and can be fused in the target page, the first control is a control which is zoomed by controlling corresponding content through finger touch, and the typesetting information is related information for indicating the size and the position of the first control in the target user interface, and the second control is zoomed along with the zooming of the target page;
Receiving the typesetting instruction set sent by the global initialization module;
analyzing the typesetting instruction in the typesetting instruction set to obtain an analyzed typesetting instruction;
and creating a page rendering module, and sending the analyzed typesetting instruction to the page rendering module so that the page rendering module obtains a target page fused with the second control according to the analyzed typesetting instruction.
5. The method of claim 4, the invoking the global initialization module comprising:
receiving a programming interface calling instruction sent by the global initialization module;
and calling the global initialization module.
6. The method of claim 4, after the creating a page rendering module, the method further comprising:
creating a life cycle of the page rendering module;
when receiving the notification message that the life cycle is invisible, which is sent by the global initialization module, setting the life cycle of the page rendering module into an invisible state;
and when receiving the notification message for restoring the life cycle to be visible, which is sent by the global initialization module, setting the life cycle of the page rendering module to be in a visible state.
7. The method of claim 6, the method further comprising:
when receiving a notification message sent by the global initialization module that the second control is removed or the target page is destroyed, destroying the life cycle of the page rendering module;
and calling the page rendering module to release and recycle the second control.
8. The method is applied to a global initialization module, the global initialization module is arranged in a target page, the target page is developed based on a hypertext markup language, the target page comprises a page management module, and the method comprises the following steps:
sending a programming interface calling instruction to the page management module;
according to the call instruction of the page management module, acquiring the type of a first control in a target user interface and typesetting information of the first control in the target user interface, and generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type and the typesetting information, wherein the second control is a control which is stored in advance and can be fused in the target page, the first control is a control which is zoomed by controlling corresponding content through finger touch, and the typesetting information is related information used for indicating the size and the position of the first control in the target user interface, and the second control is zoomed along with the zooming of the target page;
And sending the typesetting instruction set to the page management module.
9. The method is applied to a page rendering module, the page rendering module is arranged in a target page, the target page is developed based on a hypertext markup language, the target page comprises a page management module and a global initialization module, and the method comprises the following steps:
receiving a typesetting instruction sent by the page management module, wherein the typesetting instruction is obtained by analyzing a typesetting instruction set of the target page generated and sent by the global initialization module by the page management module;
executing the typesetting instruction, acquiring a second control corresponding to the typesetting instruction from a prestored control library, typesetting and rendering the second control in the target page to obtain a target page fused with the second control, wherein the second control is a control corresponding to the type of the first control and generated according to the type of the first control in a target user interface and typesetting information of the first control in the target user interface, the first control is a control for zooming corresponding content through finger touch, the typesetting information is related information used for indicating the size and the position of the first control in the target user interface, and the second control zooms along with the zooming of the target page.
10. The method of claim 9, the method further comprising:
and according to the call instruction of the page management module, releasing and recycling the second control when the global initialization module detects that the second control is removed or the target page is destroyed.
11. A page processing apparatus including a target page therein, the target page developed based on a hypertext markup language, comprising:
the information acquisition module is used for acquiring the type of a first control in a target user interface and typesetting information of the first control in the target user interface, wherein the first control is a control for controlling corresponding content to scale through finger touch, and the typesetting information is related information for indicating the size and the position of the first control in the target user interface;
the typesetting instruction generation module is used for generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type of the first control and the typesetting information, wherein the second control is a control which is stored in advance and can be fused in the target page, and the second control scales along with the scaling of the target page;
And the processing module is used for executing the typesetting instruction in the typesetting instruction set, and carrying out typesetting processing and rendering processing on the second control in the target page to obtain the target page fused with the second control.
12. The apparatus of claim 11, wherein the information obtaining module is configured to invoke a preset programming interface to obtain a type of a first control in a target user interface and typesetting information of the first control in the user interface.
13. The apparatus of claim 11, the apparatus further comprising:
the instruction receiving module is used for receiving a management instruction of the second control in the target page, wherein the management instruction comprises a deleting instruction and a state modifying instruction;
and the instruction execution module is used for executing corresponding operation on the second control in the target page according to the management instruction.
14. A page management module in a page processing device, the page management module being disposed in a target page, the target page being developed based on a hypertext markup language, the target page further comprising a global initialization module, comprising:
the first calling unit is used for calling the global initialization module to acquire the type of a first control in a target user interface and typesetting information of the first control in the target user interface, generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type and the typesetting information, wherein the second control is a control which is stored in advance and can be fused in the target page, the first control is a control which is zoomed by controlling corresponding content through finger touch, and the typesetting information is related information used for indicating the size and the position of the first control in the target user interface, and the second control is zoomed along with the zooming of the target page;
The typesetting information receiving unit is used for receiving the typesetting instruction set sent by the global initialization module;
the analysis unit is used for analyzing the typesetting instructions in the typesetting instruction set to obtain analyzed typesetting instructions;
the sending unit is used for creating a page rendering module and sending the analyzed typesetting instruction to the page rendering module so that the page rendering module obtains a target page fused with the second control according to the analyzed typesetting instruction.
15. The page management module of claim 14, the first call unit comprising:
the instruction receiving subunit is used for receiving a programming interface calling instruction sent by the global initialization module;
and the calling subunit is used for calling the global initialization module.
16. The page management module of claim 14, further comprising:
a life cycle creation unit for creating a life cycle of the page rendering module;
the first setting unit is used for setting the life cycle of the page rendering module to be in an invisible state when receiving the notification message that the life cycle is invisible and is sent by the global initialization module;
And the second setting unit is used for setting the life cycle of the page rendering module to be in a visible state when receiving the notification message for restoring the life cycle to be visible, which is sent by the global initialization module.
17. The page management module of claim 16, further comprising:
the destroying unit is used for destroying the life cycle of the page rendering module when receiving the notification message that the second control sent by the global initialization module is removed or the target page is destroyed;
and the second calling unit is used for calling the page rendering module to release and recycle the second control.
18. 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 hypertext markup language, the target page further comprises a page management module, and the global initialization module comprises:
the instruction sending unit is used for sending a programming interface calling instruction to the page management module;
the information acquisition unit is used for acquiring the type of a first control in a target user interface and typesetting information of the first control in the target user interface according to the calling instruction of the page management module, generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type and the typesetting information, wherein the second control is a control which is prestored and can be fused in the target page, the first control is a control which is zoomed by controlling corresponding content through finger touch, and the typesetting information is related information used for indicating the size and the position of the first control in the target user interface, and the second control is zoomed along with the zooming of the target page;
And the typesetting information sending unit is used for sending the typesetting instruction set to the page management module.
19. A page rendering module in a page processing device, the page rendering module is arranged in a target page, the target page is developed based on a hypertext markup language, the target page further comprises a page management module and a global initialization module, and the page rendering module comprises:
the command receiving unit is used for receiving typesetting commands sent by the page management module, wherein the typesetting commands are obtained by analyzing a typesetting command set of the target page generated and sent by the global initialization module by the page management module;
the execution unit is used for executing the typesetting instruction, acquiring a second control corresponding to the typesetting instruction from a prestored control library, typesetting processing and rendering processing are carried out on the second control in the target page to obtain a target page fused with the second control, wherein the second control is a control corresponding to the type of the first control and generated according to the type of the first control in the target user interface and typesetting information of the first control in the target user interface, the first control is a control for controlling corresponding content to be scaled through finger touch, the typesetting information is related information used for indicating the size and the position of the first control in the target user interface, and the second control scales along with the scaling of the target page.
20. The page rendering module of claim 19, the page rendering module further comprising:
and the control release unit is used for releasing and recovering the second control when the global initialization module detects that the second control is removed or the target page is destroyed according to the call instruction of the page management module.
21. A page processing apparatus comprising a target page developed based on a hypertext markup language, comprising:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to:
acquiring the type of a first control in a target user interface and typesetting information of the first control in the target user interface, wherein the first control is a control for controlling corresponding content to scale through finger touch, and the typesetting information is related information used for indicating the size and the position of the first control in the target user interface;
generating a typesetting instruction set of a second control corresponding to the type in the target page according to the type of the first control and the typesetting information, wherein the second control is a control which is stored in advance and can be fused in the target page, and the second control scales along with the scaling of the target page;
Executing the typesetting instruction in the typesetting instruction set, and performing typesetting processing and rendering processing on the second control in the target page to obtain the target page fused with the second control.
CN202010754373.3A 2018-05-14 2018-05-14 Page processing method, device and equipment Active CN111831387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010754373.3A CN111831387B (en) 2018-05-14 2018-05-14 Page processing method, device and equipment

Applications Claiming Priority (2)

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

Related Parent Applications (1)

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

Publications (2)

Publication Number Publication Date
CN111831387A CN111831387A (en) 2020-10-27
CN111831387B true CN111831387B (en) 2024-01-02

Family

ID=63755246

Family Applications (2)

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

Family Applications After (1)

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

Country Status (3)

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

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831387B (en) * 2018-05-14 2024-01-02 创新先进技术有限公司 Page processing method, device and equipment
CN110120163A (en) * 2019-05-08 2019-08-13 上海乂学教育科技有限公司 Adaptive on-line study FTP client FTP
CN110347984B (en) * 2019-05-20 2024-05-03 中国平安财产保险股份有限公司 Policy page changing method and device, computer equipment and storage medium
CN110209319B (en) * 2019-05-21 2020-02-07 掌阅科技股份有限公司 Page information display method, computing device and computer storage medium
CN112860982B (en) * 2019-11-27 2024-05-10 阿里巴巴集团控股有限公司 Data processing method, device, electronic equipment and computer storage medium
CN111273985B (en) * 2020-01-20 2024-10-11 北京有竹居网络技术有限公司 Page rendering method, device, electronic device and computer-readable storage medium
CN114077429A (en) * 2020-08-18 2022-02-22 华为技术有限公司 A layout method and electronic device of a display interface
CN113157363A (en) * 2021-03-23 2021-07-23 广州宸祺出行科技有限公司 Page management method and system of applet state management library
CN113050941A (en) * 2021-03-25 2021-06-29 未鲲(上海)科技服务有限公司 Front-end page generation method, device, equipment and computer readable storage medium
CN113051015B (en) * 2021-03-30 2024-01-09 北京达佳互联信息技术有限公司 Page rendering method and device, electronic equipment and storage medium
CN113377374A (en) * 2021-06-24 2021-09-10 上海理泊软件科技有限公司 Fused interface response data applied to third-generation modern Web front end and development framework based on components
CN114968461A (en) * 2022-05-30 2022-08-30 平安科技(深圳)有限公司 Front-end page containerized layout method, device, computer equipment and storage medium
CN117851700B (en) * 2023-12-25 2025-03-18 内蒙古伊泰信息技术有限公司 Data processing method and device for page update
CN117827357B (en) * 2024-03-04 2024-06-14 北京云测信息技术有限公司 Remote operation method, device and equipment of terminal equipment

Citations (6)

* 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
EP1775661A1 (en) * 2005-10-14 2007-04-18 Research In Motion Limited Displaying using graphics display language and native UI objects
CN102073688A (en) * 2010-12-21 2011-05-25 上海容恒信息科技有限公司 Device for converting client form to Web page and method thereof
WO2011148343A1 (en) * 2010-05-26 2011-12-01 Nokia Corporation Method and apparatus for specifying mapping parameters for user interface element presentation in an application
US8307279B1 (en) * 2011-09-26 2012-11-06 Google Inc. Smooth zooming in web applications
CN107562467A (en) * 2017-07-26 2018-01-09 阿里巴巴集团控股有限公司 Page rendering method, apparatus and equipment

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6961750B1 (en) * 2000-05-18 2005-11-01 Microsoft Corp. Server-side control objects for processing client-side user interface elements
US20020099884A1 (en) * 2001-01-19 2002-07-25 Chang William Ho Output controller systems and 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
US20100005410A1 (en) * 2008-07-03 2010-01-07 Pang Xin Mobile device application framework
WO2011148342A1 (en) * 2010-05-26 2011-12-01 Nokia Corporation Method and apparatus for enabling generation of multiple independent user interface elements from a web page
CN102163233A (en) * 2011-04-18 2011-08-24 北京神州数码思特奇信息技术股份有限公司 Method and system for converting webpage markup language format
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
US10061494B2 (en) * 2013-06-28 2018-08-28 Beijing Qihoo Technology Company Limited Method and device for webpage zooming on electronic apparatus
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
CN111831387B (en) * 2018-05-14 2024-01-02 创新先进技术有限公司 Page processing method, device and equipment

Patent Citations (6)

* 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
EP1775661A1 (en) * 2005-10-14 2007-04-18 Research In Motion Limited Displaying using graphics display language and native UI objects
WO2011148343A1 (en) * 2010-05-26 2011-12-01 Nokia Corporation Method and apparatus for specifying mapping parameters for user interface element presentation in an application
CN102073688A (en) * 2010-12-21 2011-05-25 上海容恒信息科技有限公司 Device for converting client form to Web page and method thereof
US8307279B1 (en) * 2011-09-26 2012-11-06 Google Inc. Smooth zooming in web applications
CN107562467A (en) * 2017-07-26 2018-01-09 阿里巴巴集团控股有限公司 Page rendering method, apparatus and equipment

Also Published As

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

Similar Documents

Publication Publication Date Title
CN111831387B (en) Page processing method, device and equipment
CN113259224B (en) Method and device for sending customer service data
CN107038042B (en) Service execution method and device
CN112000563B (en) Recording method, device and equipment of user behaviors
CN111796821A (en) Page updating method and device
US10909203B2 (en) Method and device for improving page display effect via execution, conversion and native layers
CN112015626B (en) User behavior recording method, device and equipment
KR20150111221A (en) Method for constructing page and electronic device supporting the same
CN105335389B (en) A kind of business method for visualizing and system
CN117075882A (en) Data display method, device, equipment and medium
CN113360385B (en) A test method, device, equipment and medium
CN113536174A (en) Interface loading method, device and equipment
TWI706310B (en) Display method and device of application identification code
CN108182577A (en) A kind of method, apparatus and equipment for showing payment information
CN110262749B (en) Webpage operation method, device, container, equipment and medium
CN114500421B (en) Message processing method and system
JP2015022393A (en) Electronic device, method for processing image data display, and program
WO2024152742A1 (en) Rich text editing method and apparatus, storage medium and computer device
CN117111918A (en) Data processing system for task structure design
CN113343136B (en) Method and device for displaying information
CN105893336B (en) A kind of text display method and terminal
CN106873866B (en) Content amplification display method and device
CN103810312B (en) Method and device for the computer-aided design of man-machine interface animated graphics element
CN114968457B (en) Form processing method and device applied to subprogram
CN109614160B (en) Prompting method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载