CN109815427A - Show method, client application module, H5 module and the system of the H5 page - Google Patents
Show method, client application module, H5 module and the system of the H5 page Download PDFInfo
- Publication number
- CN109815427A CN109815427A CN201811535142.2A CN201811535142A CN109815427A CN 109815427 A CN109815427 A CN 109815427A CN 201811535142 A CN201811535142 A CN 201811535142A CN 109815427 A CN109815427 A CN 109815427A
- Authority
- CN
- China
- Prior art keywords
- module
- page
- event
- client application
- webview
- 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.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of method, client application module, H5 module and systems for showing the H5 page, this method comprises: loading webview in response to the operation of the displaying H5 page by client application module;Confirm that webview load is completed, to the injection of H5 module for the interface message of calling;It detects to whether the first event that the injection of H5 module is completed for the interface message of calling occurs;In the case where first event occurs, H5 module is notified;By H5 module in response to the operation of the displaying H5 page, the corresponding H5 page is loaded;Whether detection client application module load is completed webview and is occurred to the injection of H5 module for the third event of the interface message of calling;In the case where the generation of third event, corresponding interface is called according to interface message, to show the H5 page according to webview.
Description
Technical field
The present invention relates to H5 page presentation technical fields, more particularly, to a kind of method, client for showing the H5 page
Application module, H5 module and system.
Background technique
The 5th revised edition (being referred to as " HTML5 ", referred to as " H5 ") of hypertext markup language is by referred to as world wide web association
The International Standards Organization of (" W3C ") formally defines.HTML5 includes being related to more than 100 specifications of next-generation Web technology.
HTML5, which is described, is configured so that one group that designers and developers can construct next-generation web site and application (" app ")
HTML, CSS (Cascading Style Sheet) and JavaScript specification.
When starting to load the H5 page, H5 module starts to load the corresponding H5 page and client application module starts to load
webview.But H5 module loading completes the opportunity of the H5 page, completes the opportunity of webview with client application module load
It is uncertain.If H5 module calls the interface of client application module, client application module has loaded completion
Webview, and to H5 page grouting socket information, then client application module can be with the interface of normal response H5 module
It calls.But if client application module injects relevant interface to H5 module not yet, H5 module may just have begun tune
With the interface of client application module, the interface failure that H5 module calls client application module will lead to, it would be possible that
The H5 page that will lead to displaying is abnormal.
Summary of the invention
It is an object of the present invention to provide a kind of for showing the new solution of the H5 page.
According to the first aspect of the invention, a kind of method for showing the H5 page is provided, the method is by client application
Module is implemented, which comprises
Step S1100 loads webview in response to showing the operation of the H5 page;
Step S1200 confirms that the webview load is completed, to the injection of H5 module for the interface message of calling;
Step S1300 is detected to whether the first event that H5 module injection is completed for the interface message of calling occurs;
Step S1400 notifies the H5 module, in the case where the first event occurs for the H5 module root
Corresponding interface is called according to the interface message, the H5 page is shown according to the webview.
Optionally, the method also includes:
It detects the H5 module loading and completes the second event of the corresponding H5 page and whether occur;
The step S1400 further include: according to the testing result of the first event and the second event, described in notice
H5 module shows the H5 according to the webview so that the H5 module calls corresponding interface according to the interface message
The page.
Optionally, the step of whether second event that the detection H5 module loading completes the corresponding H5 page occurs
Include:
It detects whether to receive the notice that the H5 page load that the H5 module is sent is completed.
It optionally, include specified monitoring event in the notice;
The step S1400 further include: according to the testing result of the first event and the second event, described in readjustment
Specified monitoring event, so that the H5 module calls corresponding interface according to the interface message, according to the webview exhibition
Show the H5 page.
According to the second aspect of the invention, a kind of method for showing the H5 page is provided, the method is implemented by H5 module,
The described method includes:
Step S2100 loads the corresponding H5 page in response to showing the operation of the H5 page;
Step S2200, detection client application module load complete the webview and inject to the H5 module to supply
Whether the third event of the interface message of calling occurs;
Step S2300 connects in the case where the generation of the third event according to interface message calling accordingly
Mouthful, to show the H5 page according to the webview.
Optionally, the method also includes:
In the case where the H5 page loads completion, by client application module described in pseudo- notice of settlement, for institute
It states client application module and detects that the H5 module loading completes the H5 page;
Wherein, the information of the H5 page is completed in the pseudo- agreement including the H5 module loading.
It optionally, further include specified monitoring event in the pseudo- agreement;
The step S2200 further comprises:
Detect whether the client application module adjusts back the specified monitoring event.
According to the third aspect of the invention we, a kind of client application module is provided, comprising:
Webview loading unit loads webview for the operation in response to showing the H5 page;
Interface message injection unit, for being injected for calling to H5 module in the case where the webview loads completion
Interface message;
First event detection unit, for detecting the first thing completed to H5 module injection for the interface message of calling
Whether part occurs;
First notification unit notifies the H5 module, for the testing result according to the first event for the H5
Module calls corresponding interface according to the interface message, to show the H5 page according to the webview.
According to the fourth aspect of the invention, a kind of H5 module is provided, comprising:
H5 page loading unit loads the corresponding H5 page for the operation in response to showing the H5 page;
Third event detection unit completes the webview and to institute for detecting client application module load
State whether the injection of H5 module occurs for the third event of the interface message of calling;
Interface call unit, for calling phase according to the interface message in the case where generation of the third event
The interface answered, to show the H5 page according to the webview.
According to the fifth aspect of the invention, a kind of system for showing the H5 page, including third party according to the present invention are provided
Client application module described in face and the H5 module described according to a fourth aspect of the present invention.
The embodiment of the present invention is shaken hands by H5 module and client application module, i.e., other side is notified to complete interface tune
Preparation enables the interface in client application module to be called by H5 module.When shaking hands successfully, H5 module is just
The corresponding interface of client application module can be called, the data interaction for passing through H5 module and client application module is completed, into
And the displaying of the H5 page can be carried out.Can to avoid H5 module in client application module to calling client before its grouting socket
Interface in application module ensures that the interface in client application module can be by H5 module normal call, to show the H5 page.
By referring to the drawings to the detailed description of exemplary embodiment of the present invention, other feature of the invention and its
Advantage will become apparent.
Detailed description of the invention
It is combined in the description and the attached drawing for constituting part of specification shows the embodiment of the present invention, and even
With its explanation together principle for explaining the present invention.
Fig. 1 is the example for showing the hardware configuration of system for the displaying H5 page that can be used for realizing the embodiment of the present invention
Block diagram.
Fig. 2 shows the flow charts of the method for the displaying H5 page of the first embodiment of the present invention.
Fig. 3 shows the block diagram of the client application module of the first embodiment of the present invention.
Fig. 4 shows the flow chart of the method for the displaying H5 page of the second embodiment of the present invention.
Fig. 5 shows the block diagram of the H5 module of the second embodiment of the present invention.
Fig. 6 shows the block diagram of the test macro of the third embodiment of the present invention.
The system that Fig. 7 shows the displaying H5 page of the third embodiment of the present invention is implemented to show the example of the method for the H5 page
The schematic diagram of son.
Specific embodiment
Carry out the various exemplary embodiments of detailed description of the present invention now with reference to attached drawing.It should also be noted that unless in addition having
Body explanation, the unlimited system of component and the positioned opposite of step, numerical expression and the numerical value otherwise illustrated in these embodiments is originally
The range of invention.
Be to the description only actually of at least one exemplary embodiment below it is illustrative, never as to the present invention
And its application or any restrictions used.
Technology, method and apparatus known to person of ordinary skill in the relevant may be not discussed in detail, but suitable
In the case of, the technology, method and apparatus should be considered as part of specification.
It is shown here and discuss all examples in, any occurrence should be construed as merely illustratively, without
It is as limitation.Therefore, other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, then in subsequent attached drawing does not need that it is further discussed.
<hardware configuration>
As shown in Figure 1, showing that the system 1000 of the H5 page includes client application module 1100, H5 module 1200 and leads to
Communication network 1300.
Client application module 1100 can be the electronics such as portable computer, desktop computer, mobile phone, tablet computer and set
It is standby.In another example, client application module 1100 can be as shown in Figure 1, include processor 1110, memory
1120, interface arrangement 1130, communication device 1140, display device 1150, input unit 1160.Although client application module
1100 also may include loudspeaker, microphone etc., and still, these components are unrelated to the invention, therefore omit herein.Wherein, locate
Device 1110 is managed such as can be central processor CPU, Micro-processor MCV.Memory 1120 is for example including ROM (read-only storage
Device), RAM (random access memory), the nonvolatile memory of hard disk etc..Interface arrangement 1130 connects for example including USB
Mouth, serial line interface etc..Communication device 1140 is for example able to carry out wired or wireless communication.Display device 1150 is, for example, liquid crystal
Display screen.Input unit 1160 is such as may include touch screen, keyboard.
H5 module 1200 can be the electronic equipments such as portable computer, desktop computer, mobile phone, tablet computer.Such as Fig. 1 institute
Show, H5 module 1200 may include processor 1210, memory 1220, interface arrangement 1230, communication device 1240, display device
1250, input unit 1260, loudspeaker 1270, microphone 1280, etc..Wherein, processor 1210 can be central processing unit
CPU, Micro-processor MCV etc..Memory 1220 is for example including ROM (read-only memory), RAM (random access memory), such as
The nonvolatile memory etc. of hard disk.Interface arrangement 1230 is for example including USB interface, earphone interface etc..Communication device 1240
Such as it is able to carry out wired or wireless communication.Display device 1250 is, for example, liquid crystal display, touch display screen etc..Input unit
1260 such as may include touch screen, keyboard.User can pass through 1280 inputting/outputting voice of loudspeaker 1270 and microphone
Information.
Communication network 1300 can be wireless network and can also be can be local area network with network and be also possible to wide area network.In Fig. 1
Shown in configuration surroundings 1000, H5 module 1200 and client application module 1100 can be carried out by communication network 1300
Communication.
Configuration surroundings 1100 shown in FIG. 1 are only explanatory, and never be intended to limitation the present invention, its application or
Purposes.
Using in an embodiment of the present invention, the memory 1120 of client application module 1100 refers to for storing
It enables, described instruction is used to control the processor 1110 and is operated to execute any one of first embodiment of the invention offer
The method for showing the H5 page.For storing instruction, described instruction is described for controlling for the memory 1220 of H5 module 1200
Processor 1210 is operated to execute the method that any one of second embodiment of the invention offer shows the H5 page.
It will be appreciated by those skilled in the art that although to client application module 1100 and H5 module 1200 in Fig. 1
Multiple devices are all shown, still, the present invention can only relate to partial devices therein, for example, client application module 1100
It pertains only to processor 1110 and storage device 1120 or H5 module 1200 pertains only to processor 1210 and storage device 1220
Deng.Technical staff can disclosed conceptual design instruction according to the present invention.How control processor is operated for instruction, this is this
Known in field, therefore it is not described in detail herein.
The general plotting of the embodiment of the present invention is to provide a kind of technical solution of new displaying H5 page, passes through H5 module
With shaking hands for client application module, i.e., other side is notified to complete the preparation that interface calls, so that client application module
In interface can be called by H5 module.When shaking hands successfully, H5 module can call client application module to connect accordingly
Mouthful, the data interaction for passing through H5 module and client application module is completed, and then the displaying of the H5 page can be carried out.It can be to avoid
H5 module, to the interface before its grouting socket in calling client application module, ensures client application in client application module
Interface in module can be by H5 module normal call, to show the H5 page.
<first embodiment>
<method>
In the present embodiment, a kind of method showing the H5 page is provided, is implemented by client application module.
The client application module can be arbitrarily with the electronic equipment of processor and memory, for example, it may be portable
The electronic products such as formula computer, desktop computer, mobile phone, tablet computer.In one example, client application module can be figure
Client application module 1100 shown in 1.
The method of the displaying H5 page, as shown in Figure 2, comprising: step S1100-S1400.
Step S1100 loads webview in response to showing the operation of the H5 page.
The operation for showing the H5 page can be by user's triggering.It is received in client application module and shows the H5 page
Operation when, webview can be loaded.
WebView is a special View, and based on webkit engine, the control for showing the H5 page, this class can
To be used to show the H5 page.It realizes it is the content for showing view using rendering engine inside WebView, the H5 page is provided
Forward-reverse, webpage amplification, reduces, search.
Step S1200, confirmation webview load is completed, to the injection of H5 module for the interface message of calling.
Client application module is after webview loaded, to H5 module grouting socket information, so that H5 module energy
It is enough that corresponding interface is called according to the interface message of injection.Wherein, interface message connects including at least what H5 module can be called
Title, the path etc. of mouth.The interface is capable of providing the channel between webview and H5 module, and H5 module is corresponding by calling
Interface come call webview carry out the H5 page displaying.
Step S1300 is detected to whether the first event that H5 module grouting socket information is completed occurs.
In one example, client application module can be judged by calling the return value of respective function to H5 module
Whether the first event that grouting socket information is completed occurs.It can be in the case where the return value is 0, indicate webview not
Load is completed, i.e., first event does not occur;In the case where the return value is 1, indicate that webview load is completed, i.e. the first thing
Part occurs.
Step S1400 notifies the H5 module, in the case where first event occurs so that H5 module is according to interface message
Corresponding interface is called, the H5 page is shown according to webview.
In the case where first event occurs, i.e., client application module is to the case where the completion of H5 module grouting socket information
Under, notify H5 module.
Specifically, the mode of notice H5 module can be and call preassigned monitoring event.So, it is detected in H5 module
In the case where calling the monitoring event to client application module, realize that client application module notifies H5 module.
In one example, this method can also include:
Whether the second event that detection H5 module loading completes the corresponding H5 page occurs.So, step S1400 can be with
According to the testing result of second event, H5 module is notified.
Specifically, can be client application module in the case where detecting that first event and second event occur,
I.e. client application module is to the case where the completion of H5 module grouting socket information and the H5 module loading completion corresponding H5 page
Under, notify H5 module.
Further, detect that the step of whether second event occurs may include:
Detect whether the notice that the H5 page load for receiving the transmission of H5 module is completed.
H5 module can send to client application module and notify, so that client when the corresponding H5 page is completed in load
Whether end application module can detecte H5 module loading completes the second event of the corresponding H5 page and occurs.
Still further, H5 module can pass through pseudo- notice of settlement client application module after the load of the H5 page is completed.
It may include the information that the load of the H5 page is completed in the puppet agreement.
"true" agreement is used to transmit data packet, such as http agreement, ftp agreement between the computers;Pseudo- agreement is a kind of
The agreement of nonstandardized technique uses for affiliate application.
It on this basis, include specified monitoring event in the notice.So, the step of notice H5 module may include:
Adjust back the specified monitoring event.
Wherein, specified monitoring event be for monitor client application module whether call in H5 module this is specified
Monitoring event.
The specified monitoring event can be a function, the specified monitoring event in client application module never call
When, the return value of the function is 0.When client application module calls the specified monitoring event, the return value of the function is
1.H5 module is by calling the return value of the function, so that it may which this for judging whether client application module call in H5 module refers to
Fixed monitoring event, and with this come judge client application module whether notify H5 module grouting socket information complete the first thing
Part occurs.
<client application module>
In this example, a kind of client application module 300 is also provided, as shown in Figure 3, comprising: Webview loading unit
310, interface message injection unit 320, first event detection unit 330 and the first notification unit 340.Webview load is single
Member 310 loads webview for the operation in response to showing the H5 page;The interface message injection unit 320 is used for
In the case that webview load is completed, to the injection of H5 module for the interface message of calling;The first event detection unit 330 is used
Whether occur in detection to the first event that the injection of H5 module is completed for the interface message of calling;First notification unit 340 is used
In the testing result according to first event, H5 module is notified, so that H5 module calls corresponding interface according to interface message, with root
The H5 page is shown according to webview.
The client application module 300 can also include second event detection module (not shown), for detecting
It states H5 module loading and completes the second event of the corresponding H5 page and whether occur.First notification unit 340 is also used to according to
The testing result of two events notifies H5 module.
In one example, second event detection module can be also used for: detect whether to receive the H5 of H5 module transmission
The notice that page load is completed.
On this basis, the notice include in include specified monitoring event;
First notification unit 340 is also used to: according to the testing result of first event and second event, adjusting back specified prison
Listen event.
It will be appreciated by those skilled in the art that client application module 300 can be realized by various modes.For example,
Client application module 300 can be realized by instruction configuration processor.For example, instruction can be stored in the ROM, and
When starting the device, instruction is read in programming device from ROM and realizes client application module 300.For example, can incite somebody to action
Client application module 300 is cured in dedicated devices (such as ASIC).Client application module 300 can be divided into mutually solely
Vertical unit, or they can be merged to realization.Client application module 300 can pass through above-mentioned various realization sides
One of formula realizes, or can be by the combinations of two or more modes in above-mentioned various implementations come real
It is existing.
In the present embodiment, client application module 300 can be any information displaying method for implementing the present embodiment
The device of function is shown with information, for example, client application module 300 can be the application journey for showing function with information
Sequence, or the application program that information shows function is installed.
Attached drawing is had been combined above and describes the present embodiment, according to the present embodiment, provides a kind of method for showing the H5 page
And client application module notifies other side to complete what interface called by shaking hands for H5 module and client application module
Preparation enables the interface in client application module to be called by H5 module.When shaking hands successfully, H5 module
The corresponding interface of client application module is called, the data interaction for passing through H5 module and client application module, Jin Erke are completed
To carry out the displaying of the H5 page.Can to avoid H5 module in client application module to calling client application before its grouting socket
Interface in module ensures that the interface in client application module can be by H5 module normal call, to show the H5 page.
<second embodiment>
<method>
In the present embodiment, a kind of method showing the H5 page is provided, is implemented by H5 module.
The H5 module can arbitrarily have the electronic equipment of display device, processor and controller, for example, it may be hand
Machine, palm PC, tablet computer, laptop, desktop computer etc..In one example, H5 module can be shown in Fig. 1
H5 module 1200.
The method of the displaying H5 page, as shown in Figure 4, comprising: step S2100-S2300.
Step S2100 loads the corresponding H5 page in response to showing the operation of the H5 page.
The operation for showing the H5 page can be by user's triggering.When H5 module receives the operation for showing the H5 page,
The corresponding H5 page can be loaded.
Step S2200, detection client application module load complete webview and inject connecing for calling to H5 module
Whether the third event of message breath occurs.
In one example, in the case where the H5 page loads completion, client application module is notified, so that client is answered
Detect that H5 module loading completes the H5 page with module.
Further, in the case where the H5 page loads completion, H5 module can pass through pseudo- notice of settlement client application
Module, wherein include the information that H5 module loading completes the H5 page in the puppet agreement.
"true" agreement is used to transmit data packet, such as http agreement, ftp agreement between the computers;Pseudo- agreement is a kind of
The agreement of nonstandardized technique uses for affiliate application.
It on this basis, can also include specified monitoring event in pseudo- agreement.So, step S2300 can be further
Are as follows: whether detection client application module adjusts back specified monitoring event.
Wherein, specified monitoring event be for monitor client application module whether call in H5 module this is specified
Monitoring event.
The specified monitoring event can be a function, the specified monitoring event in client application module never call
When, the return value of the function is 0.When client application module calls the specified monitoring event, the return value of the function is
1.H5 module is by reading the return value of the function, so that it may which this for judging whether client application module call in H5 module refers to
Fixed monitoring event, and webview is completed and to the injection of H5 module for calling to detect client application module load with this
Whether the third event of interface message occurs.
Step S2300 calls corresponding interface according to interface message, with basis in the case where the generation of third event
Webview shows the H5 page.
Interface message detecting client application module load completion webview and to the injection of H5 module for calling
Third event occur in the case where, can according to interface message call client application module in corresponding interface, with basis
Webview shows the H5 page.
Shaking hands by H5 module and client application module in the present embodiment notifies other side to complete what interface called
Preparation enables the interface in client application module to be called by H5 module.When shaking hands successfully, H5 module
The corresponding interface of client application module is called, the data interaction for passing through H5 module and client application module, Jin Erke are completed
To carry out the displaying of the H5 page.Can to avoid H5 module in client application module to calling client application before its grouting socket
Interface in module ensures that the interface in client application module can be by H5 module normal call, to show the H5 page.
<H5 module>
In the present embodiment, a kind of H5 module 500 is also provided, as shown in Figure 5, comprising:
H5 page loading unit 510, third event detection unit 520, interface call unit 530.H5 page load is single
Member 510 loads the corresponding H5 page for the operation in response to showing the H5 page;The third event detection unit 520 is for examining
Survey client application module load complete webview and to H5 module injection for calling interface message third event whether
Occur;The interface call unit 530 is used in the case where the generation of third event, is connect accordingly according to interface message calling
Mouthful, to show the H5 page according to webview.
Further, which can also include the second notification unit, for being answered by pseudo- notice of settlement client
With module, so that client application module detects that H5 module loading completes the H5 page;It wherein, include H5 module in the puppet agreement
The information of the H5 page is completed in load.
It on this basis, further include specified monitoring event in the puppet agreement.So, the third event detection unit 530
Can be also used for: whether detection client application module adjusts back specified monitoring event.
It will be appreciated by those skilled in the art that H5 module 500 can be realized by various modes.For example, can pass through
Configuration processor is instructed to realize H5 module 500.For example, instruction can be stored in the ROM, and when starting the device, it will
Instruction is read in programming device from ROM realizes H5 module 500.For example, H5 module 500 can be cured to dedicated devices
In (such as ASIC).H5 module 500 can be divided into mutually independent unit, or they can be merged to realization.
H5 module 500 can be realized by one of above-mentioned various implementations, or can pass through above-mentioned various implementations
In the combinations of two or more modes realize.
Attached drawing is had been combined above and describes the present embodiment, according to the present embodiment, provides a kind of method for showing the H5 page
And H5 module notifies other side to complete the preparation that interface calls by shaking hands for H5 module and client application module,
Interface in client application module is called by H5 module.When shaking hands successfully, H5 module can call client
The corresponding interface of application module is held, completes the data interaction for passing through H5 module and client application module, and then H5 can be carried out
The displaying of the page.It can be called in client application module in client application module to before its grouting socket to avoid H5 module
Interface ensures that the interface in client application module can be by H5 module normal call, to show the H5 page.
<3rd embodiment>
In the present embodiment, a kind of system 600 for showing the H5 page is provided, as shown in Figure 6, comprising:
The client application module 300 provided in first embodiment;
And the H5 module 500 provided in second embodiment.
In the present embodiment, the system 600 for showing the H5 page can also include other equipment, for example, it is also possible to include logical
Telecommunications services device, for the communication connection between management client application module 300 and H5 module 500;Alternatively, can also include letter
Server is ceased, for assisting client application module 300 to manage H5 module 500, etc..
In one example, the system that the system 600 of the H5 page can also be the displaying H5 page as shown in Figure 1 is shown
1000。
H5 pages of displaying that the test macro 600 in through this embodiment is implemented is further illustrated below with reference to Fig. 7 citing
The method in face.
The method of the displaying H5 page, as shown in fig. 7, comprises: step S701-S708.
Step S701 loads webview by client application module in response to the operation of the displaying H5 page.
Step S702 is completed by client application module confirmation webview load, to the injection of H5 module for the interface of calling
Information.
Step S703 detects the first thing completed to the injection of H5 module for the interface message of calling from client application module
Whether part occurs.
Step S704 notifies H5 module by client application module in the case where first event occurs.
Step S705 loads the corresponding H5 page by H5 module in response to the operation of the displaying H5 page.
Step S706 completes webview and to the injection of H5 module for adjusting from the detection client application module load of H5 module
Whether the third event of interface message occurs.
Step S706 calls corresponding interface according to interface message by H5 module in the case where the generation of third event,
To show the H5 page according to webview.
The step of displaying H5 page that client application module 300 is implemented, has been described in detail in the first embodiment, H5
The step of displaying H5 page that end 500 is implemented, has been described in detail in a second embodiment, and details are not described herein.
In this example, can shaking hands by H5 module and client application module, i.e., notify other side to complete interface tune
Preparation enables the interface in client application module to be called by H5 module.When shaking hands successfully, H5 module is just
The corresponding interface of client application module can be called, the data interaction for passing through H5 module and client application module is completed, into
And the displaying of the H5 page can be carried out.Can to avoid H5 module in client application module to calling client before its grouting socket
Interface in application module ensures that the interface in client application module can be by H5 module normal call, to show the H5 page.
The present invention can be system, method and/or computer program product.Computer program product may include computer
Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the invention.
Computer readable storage medium, which can be, can keep and store the tangible of the instruction used by instruction execution equipment
Equipment.Computer readable storage medium for example can be-- but it is not limited to-- storage device electric, magnetic storage apparatus, optical storage
Equipment, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium
More specific example (non exhaustive list) includes: portable computer diskette, hard disk, random access memory (RAM), read-only deposits
It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable
Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon
It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above
Machine readable storage medium storing program for executing is not interpreted that instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations lead to
It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire
Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer readable storage medium it is each calculate/
Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network
Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway
Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted
Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment
In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing operation of the present invention can be assembly instruction, instruction set architecture (ISA) instructs,
Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages
The source code or object code that any combination is write, the programming language include the programming language-of object-oriented such as
Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer
Readable program instructions can be executed fully on the user computer, partly execute on the user computer, be only as one
Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part
Or it is executed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind
It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit
It is connected with ISP by internet).In some embodiments, by utilizing computer-readable program instructions
Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can
Programmed logic array (PLA) (PLA), the electronic circuit can execute computer-readable program instructions, to realize each side of the invention
Face.
Referring herein to according to the method for the embodiment of the present invention, the flow chart of device (system) and computer program product and/
Or block diagram describes various aspects of the invention.It should be appreciated that flowchart and or block diagram each box and flow chart and/
Or in block diagram each box combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to general purpose computer, special purpose computer or other programmable datas
The processor of processing unit, so that a kind of machine is produced, so that these instructions are passing through computer or other programmable datas
When the processor of processing unit executes, function specified in one or more boxes in implementation flow chart and/or block diagram is produced
The device of energy/movement.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to
It enables so that computer, programmable data processing unit and/or other equipment work in a specific way, thus, it is stored with instruction
Computer-readable medium then includes a manufacture comprising in one or more boxes in implementation flow chart and/or block diagram
The instruction of the various aspects of defined function action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other
In equipment, so that series of operation steps are executed in computer, other programmable data processing units or other equipment, to produce
Raw computer implemented process, so that executed in computer, other programmable data processing units or other equipment
Instruct function action specified in one or more boxes in implementation flow chart and/or block diagram.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
One module of table, program segment or a part of instruction, the module, program segment or a part of instruction include one or more use
The executable instruction of the logic function as defined in realizing.In some implementations as replacements, function marked in the box
It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel
Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or
The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic
The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.It is right
For those skilled in the art it is well known that, by hardware mode realize, by software mode realize and pass through software and
It is all of equal value that the mode of combination of hardware, which is realized,.
Various embodiments of the present invention are described above, above description is exemplary, and non-exclusive, and
It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill
Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport
In principle, the practical application or to the technological improvement in market for best explaining each embodiment, or make the art its
Its those of ordinary skill can understand each embodiment disclosed herein.The scope of the present invention is defined by the appended claims.
Claims (10)
1. a kind of method for showing the H5 page, which is characterized in that the method is implemented by client application module, the method packet
It includes:
Step S1100 loads webview in response to showing the operation of the H5 page;
Step S1200 confirms that the webview load is completed, to the injection of H5 module for the interface message of calling;
Step S1300 is detected to whether the first event that H5 module injection is completed for the interface message of calling occurs;
Step S1400 notifies the H5 module, in the case where the first event occurs so that the H5 module is according to institute
It states interface message and calls corresponding interface, the H5 page is shown according to the webview.
2. the method according to claim 1, wherein the method also includes:
It detects the H5 module loading and completes the second event of the corresponding H5 page and whether occur;
The step S1400 further include: according to the testing result of the first event and the second event, notify the H5 mould
Block shows described H5 pages according to the webview so that the H5 module calls corresponding interface according to the interface message
Face.
3. according to the method described in claim 2, it is characterized in that, the detection H5 module loading completes corresponding H5 pages
The step of whether second event in face occurs include:
It detects whether to receive the notice that the H5 page load that the H5 module is sent is completed.
4. according to the method described in claim 3, it is characterized in that, including specified monitoring event in the notice;
The step S1400 further include: according to the testing result of the first event and the second event, adjust back described specified
Monitoring event institute is shown according to the webview so that the H5 module calls corresponding interface according to the interface message
State the H5 page.
5. a kind of method for showing the H5 page, which is characterized in that the method is implemented by H5 module, which comprises
Step S2100 loads the corresponding H5 page in response to showing the operation of the H5 page;
Step S2200, detection client application module load complete the webview and to H5 module injection for calling
The third event of interface message whether occur;
Step S2300 calls corresponding interface according to the interface message in the case where generation of the third event, with
The H5 page is shown according to the webview.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
In the case where the H5 page loads completion, by client application module described in pseudo- notice of settlement, for the visitor
Family end application module detects that the H5 module loading completes the H5 page;
Wherein, the information of the H5 page is completed in the pseudo- agreement including the H5 module loading.
7. according to the method described in claim 6, further including specified monitoring event in the puppet agreement wherein;
The step S2200 further comprises:
Detect whether the client application module adjusts back the specified monitoring event.
8. a kind of client application module characterized by comprising
Webview loading unit loads webview for the operation in response to showing the H5 page;
Interface message injection unit, for injecting connecing for calling to H5 module in the case where the webview loads completion
Message breath;
First event detection unit, for detect to the H5 module injection for calling interface message complete first event be
No generation;
First notification unit notifies the H5 module for the testing result according to the first event, for the H5 module
Corresponding interface is called according to the interface message, to show the H5 page according to the webview.
9. a kind of H5 module characterized by comprising
H5 page loading unit loads the corresponding H5 page for the operation in response to showing the H5 page;
Third event detection unit completes the webview and to the H5 for detecting client application module load
Whether module injection occurs for the third event of the interface message of calling;
Interface call unit, for being called according to the interface message corresponding in the case where the generation of the third event
Interface, to show the H5 page according to the webview.
10. a kind of system for showing the H5 page, including client application module according to claim 8 and according to right
It is required that H5 module described in 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811535142.2A CN109815427A (en) | 2018-12-14 | 2018-12-14 | Show method, client application module, H5 module and the system of the H5 page |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811535142.2A CN109815427A (en) | 2018-12-14 | 2018-12-14 | Show method, client application module, H5 module and the system of the H5 page |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109815427A true CN109815427A (en) | 2019-05-28 |
Family
ID=66602074
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811535142.2A Pending CN109815427A (en) | 2018-12-14 | 2018-12-14 | Show method, client application module, H5 module and the system of the H5 page |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109815427A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110322284A (en) * | 2019-06-14 | 2019-10-11 | 广州汇量信息科技有限公司 | The methods of exhibiting and system of advertisement page view |
CN113220403A (en) * | 2021-05-29 | 2021-08-06 | 长沙市到家悠享家政服务有限公司 | Method and device for h5 intercepting Android return event and electronic equipment |
CN113449227A (en) * | 2020-03-24 | 2021-09-28 | 北京新氧科技有限公司 | Page information processing method and terminal equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130212465A1 (en) * | 2012-02-09 | 2013-08-15 | Alexander Kovatch | Postponed rendering of select web page elements |
WO2017219293A1 (en) * | 2016-06-22 | 2017-12-28 | 华为技术有限公司 | Method and device for acquiring web content |
CN108376172A (en) * | 2018-02-27 | 2018-08-07 | 北京金和网络股份有限公司 | The webpage Localization methodologies of mobile client |
CN108520031A (en) * | 2018-03-27 | 2018-09-11 | 广东能龙教育股份有限公司 | Method for increasing webpage loading speed |
-
2018
- 2018-12-14 CN CN201811535142.2A patent/CN109815427A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130212465A1 (en) * | 2012-02-09 | 2013-08-15 | Alexander Kovatch | Postponed rendering of select web page elements |
WO2017219293A1 (en) * | 2016-06-22 | 2017-12-28 | 华为技术有限公司 | Method and device for acquiring web content |
CN108376172A (en) * | 2018-02-27 | 2018-08-07 | 北京金和网络股份有限公司 | The webpage Localization methodologies of mobile client |
CN108520031A (en) * | 2018-03-27 | 2018-09-11 | 广东能龙教育股份有限公司 | Method for increasing webpage loading speed |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110322284A (en) * | 2019-06-14 | 2019-10-11 | 广州汇量信息科技有限公司 | The methods of exhibiting and system of advertisement page view |
CN113449227A (en) * | 2020-03-24 | 2021-09-28 | 北京新氧科技有限公司 | Page information processing method and terminal equipment |
CN113449227B (en) * | 2020-03-24 | 2023-09-19 | 北京新氧科技有限公司 | Page information processing method and terminal equipment |
CN113220403A (en) * | 2021-05-29 | 2021-08-06 | 长沙市到家悠享家政服务有限公司 | Method and device for h5 intercepting Android return event and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10705942B1 (en) | Simulated testing of API | |
CN104572042B (en) | The cross-platform middleware device and its implementation of mobile terminal device | |
WO2017206626A1 (en) | Network resource access apparatus, mixed apparatus, and method | |
US20140351796A1 (en) | Accessibility compliance testing using code injection | |
CN109815427A (en) | Show method, client application module, H5 module and the system of the H5 page | |
CN107526751A (en) | Loading method, client, web page server and the programmable device of webpage | |
WO2020211745A1 (en) | Method and apparatus for notification of online document, terminal, server and storage medium | |
CN110134600A (en) | Test script method for recording, device and storage medium | |
US20170220539A1 (en) | Content sharing web page overlay system | |
CN105786455B (en) | Data processing method and device and terminal | |
CN104169835A (en) | Central logout from multiple websites | |
CN105205072B (en) | The methods of exhibiting and system of webpage information | |
CN108255923A (en) | Image presentation method, equipment and electronic equipment | |
CN108549568A (en) | Using entrance processing method, apparatus, storage medium and electronic equipment | |
CN112631590B (en) | Component library generation method, device, electronic equipment and computer readable medium | |
CN103955475A (en) | Display method and device for webpage label information, and browser | |
CN107635001A (en) | Web scripts abnormality eliminating method and device | |
CN109918146A (en) | Page generation method and device | |
US9934291B2 (en) | Dynamic presentation of a results set by a form-based software application | |
CN104035977A (en) | Webpage loading method and device | |
CN104991857A (en) | Method and apparatus for trace debugging | |
EP3713183A1 (en) | Network interaction method, electronic device, client, and server | |
CN110489180A (en) | One kind burying a report method, device, medium and electronic equipment | |
CN107193819A (en) | Method, equipment, browser and the client device pre-read for webpage | |
US10754644B2 (en) | Annotations in software development |
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 |