CN112306593A - Page display method and device, electronic equipment and storage medium - Google Patents
Page display method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112306593A CN112306593A CN201910796385.XA CN201910796385A CN112306593A CN 112306593 A CN112306593 A CN 112306593A CN 201910796385 A CN201910796385 A CN 201910796385A CN 112306593 A CN112306593 A CN 112306593A
- Authority
- CN
- China
- Prior art keywords
- page
- client
- component
- user instruction
- target display
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution 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)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the disclosure discloses a page display method, a page display device, an electronic device and a storage medium, wherein the method comprises the following steps: monitoring hardware equipment of a terminal in real time through a Native functional component of a client; when a user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule; sending the target display event to a webpage component of a client; performing page display on the client side based on the target display event through the webpage component; the webpage component is deployed at a server side, and is loaded to the client side from the server side when the client side is started. According to the technical scheme of the embodiment of the disclosure, the purpose of page display based on hardware interaction is achieved.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, and in particular relates to a page display method and device, an electronic device and a storage medium.
Background
During the process of browsing information through a web page, page jump is often required, for example, jump from the current list item page to a detail page.
Current page jumps are typically triggered by the user's page-based click behavior, i.e., when the user clicks on a certain data item in a page (such as the "next page"), a page jump action occurs. The page jump logic specifically comprises: when the HTML5 webpage component receives the jump instruction, the HTML5 webpage component actively requests the background for the webpage display related data, then the background returns the webpage display related data to the HTML5 webpage component, and the HTML5 webpage component realizes the rendering and display of the webpage according to the webpage display related data returned by the background, so that the webpage jump is completed. The essence of page jumping is that when a specific instruction is received, a specific page is displayed.
With the rapid development of artificial intelligence technology, page display instructions can be triggered in more and more service scenes through hardware device interaction-based forms such as voice, and the existing page display logic cannot adapt to the service scenes, so that the method for realizing page display based on hardware interaction such as voice is significant in design.
Disclosure of Invention
The embodiment of the disclosure provides a page display method and device, electronic equipment and a storage medium, so as to achieve the purpose of performing page display based on hardware interaction.
In a first aspect, an embodiment of the present disclosure provides a page display method, where the method includes:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule;
sending the target display event to a webpage component of a client; the webpage components are pre-loaded to the client from the server;
performing, by the web page component, a page display at a client based on the target display event,
in a second aspect, an embodiment of the present disclosure further provides a page display apparatus, including:
the monitoring module is used for monitoring the hardware equipment of the terminal in real time through a Native functional component of the client;
the determining module is used for determining a target display event matched with the user instruction based on a preset rule when the user instruction identified by the hardware equipment is monitored;
the sending module is used for sending the target display event to a webpage component of a client; the webpage components are pre-loaded to the client from the server;
and the display module is used for displaying the page at the client side based on the target display event through the webpage component.
In a third aspect, an embodiment of the present disclosure further provides an apparatus, where the apparatus includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the page display method according to any one of the embodiments of the present disclosure.
In a fourth aspect, the embodiments of the present disclosure further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used to perform the page display method according to any one of the embodiments of the present disclosure.
According to the technical scheme of the embodiment of the disclosure, hardware equipment of a terminal is monitored in real time through a Native functional component of a client, and when a user instruction identified based on hardware equipment interaction is monitored, a target display event matched with the user instruction is determined based on a preset rule; sending the target display event to a webpage component; performing page display on the client side based on the target display event through the webpage component; the technical means that the webpage component is deployed at the server side and is loaded to the client side from the server side when the client side is started achieves the purpose of page display in a service scene based on hardware interaction triggering page display instructions.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic flow chart of a page display method according to a first embodiment of the disclosure;
fig. 2 is a schematic structural diagram of a page display device according to a second embodiment of the disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to a third embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
Example one
Fig. 1 is a schematic flow chart of a page display method according to a first embodiment of the present disclosure, where the method is applicable to a service scenario in which a terminal-based hardware device triggers a page display instruction to display a page on a terminal side, where the terminal-based hardware device typically includes a terminal voice receiving module, such as a microphone, and receives the page display instruction in a user voice form based on the hardware device. The method may be performed by a page display device, which may be implemented in software and/or hardware.
As shown in fig. 1, the page display method provided in this embodiment includes the following steps:
and step 110, monitoring the hardware equipment of the terminal in real time through a Native functional component of the client.
The Native functional component of the client specifically refers to a functional program in the client installation package, and is used for realizing a setting function of the client, and when the client is installed on a terminal, the Native functional component is installed locally on the terminal. In the scheme of this embodiment, a monitoring program is set in a Native functional component of a client, and is used to monitor hardware equipment of a terminal where the client is installed in real time and acquire relevant information of the terminal hardware equipment in real time. The terminal device comprises an audio device of the terminal (the audio device usually comprises a voice receiving module, such as a microphone, and an algorithm related to voice recognition) for recognizing a user instruction issued by a user to the terminal; the terminal device may further include a vibration sensor of the terminal, where the vibration sensor is configured to identify a tapping behavior of the terminal by the user, and the tapping behavior may also be used as a form of page display instruction.
And 120, when the user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule.
Specifically, the user instruction identified by the hardware device includes: based on a user voice command recognized by an audio device of the terminal or a user tapping command recognized by a vibration sensor of the terminal. When the user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule through a Native functional component of the client.
Illustratively, the determining, based on the preset rule, the target display event matching the user instruction includes:
performing intention recognition on the user instruction;
determining a target display event corresponding to the intention recognition result based on the intention recognition result and a preset corresponding relation between the intention and the display event;
determining the target display event as a target display event matching the user instruction.
Wherein the target display event comprises: page display type, page display content, and intent keywords. For example, if the user speaks a user instruction of "i want to listen to a song" to a microphone of the terminal, the user instruction is subjected to intention recognition to obtain an intention recognition result of "listen to a song", and the corresponding intention keyword is also "listen to a song". Assuming that a display event corresponding to a preset intention 'listen to songs' is 'display and play song a through an audio page', determining a target display event corresponding to the intention 'listen to songs' as 'display and play song a through the audio page' through matching. The page display type in the corresponding target display event is the audio display type, the page display content is song a, and the intention keyword is 'listen to song'.
For example, the user speaks 'my wish to inquire the ancient poem of goose and goose' towards the microphone voice of the terminal, and the intention identification result obtained by performing intention identification on the user instruction is as follows: inquiring about the Yong goose of the ancient poem, and determining the target display event corresponding to the intention of inquiring about the Yong goose of the ancient poem by matching as follows: ancient poems singing geese are displayed through a text page, wherein the corresponding page display type is the text display type, the page display content is ancient poems singing geese, and the intention keywords are 'inquiring singing geese'.
The webpage components are pre-loaded to the client from the server; the webpage component is deployed at a server side, and is loaded to the client side from the server side when the client side is started. Specifically, when a client is started, a Native function component of the client controls a network view webview of a terminal to be started, and the webpage component is loaded to the client from a server through the view webview, so that the purpose of displaying a page on the client through the webpage component is achieved. And simultaneously, the target display event is also sent to the webpage component through the webview. The webview can be regarded as a browser for loading and displaying a webpage, and the essence is as follows: the webview is a program running environment, the web page component described in this embodiment is a section of program running in the webview, and the display of the page is realized under the cooperation of the two.
Preferably, the webpage component is an HTML5 webpage component, and the HTML5 webpage component has the advantages of short development period and simple update along with business expansion. HTML5 defines the latest standard for HTML, which represents two different concepts: first, HTML5 is a new version of the HTML language, with new elements, attributes and behaviors; second, HTML5 provides a more versatile and powerful suite of technologies for Web sites and applications. Meanwhile, the reason for deploying the webpage component at the server is to facilitate the update of the webpage component. Further, the service end is specifically a CDN (Content Delivery Network), the CDN is a one-layer intelligent virtual Network based on the existing internet and configured by servers placed at nodes in the Network, and the CDN system can redirect a user request to a service node closest to the user according to comprehensive information such as Network traffic, connection of each node, load conditions, a distance to the user, response time, and the like in real time, so as to enable the user to obtain a desired Content nearby, solve a situation of internet Network congestion, and improve a response speed of the user accessing a website.
Illustratively, sending the target display event to a web page component comprises:
packaging the page display type, the page display content and the user instruction according to a preset format;
sending the packaged information to a webpage component;
specifically, the packaged information is sent to the web page component loaded to the terminal through the webview. The preset format is, for example, "page display type + page display content + user instruction", and may also be "page display content + page display type + user instruction".
And step 130, displaying the page at the client side through the webpage component based on the target display event.
Specifically, the webpage component analyzes the received packaged information according to a preset format to obtain the page display type, the page display content and the intention keywords;
and calling the matched view according to the page display type through the webpage component, and displaying the page at the client side through the view according to the page display content and/or the intention keywords.
For example, the webpage component analyzes the received packaged information according to a preset format, the obtained page display type is an audio display type, the page display content is song a, the intention keyword is 'listen to a song', the webpage component calls a view matched with the audio display type, the view displays a page for playing the song a on the client according to the display content 'song a' and the intention keyword 'listen to a song', and the page generally comprises lyrics, singer images, a current playing progress, a continuation/pause control and the like.
Further, the method further comprises: and updating the corresponding relation between the preset intention and the display event according to the service requirement.
According to the technical scheme of the embodiment of the disclosure, hardware equipment of a terminal is monitored in real time through a Native functional component of a client, and when a user instruction identified based on hardware equipment interaction is monitored, a target display event matched with the user instruction is determined based on a preset rule; sending the target display event to a webpage component; performing page display on the client side based on the target display event through the webpage component; the technical means that the webpage component is deployed at the server side and is loaded to the client side from the server side when the client side is started achieves the purpose of page display in a service scene based on hardware interaction triggering page display instructions.
Example two
Fig. 2 is a page display device provided in the second embodiment of the present disclosure, the page display device includes: a monitoring module 210, a determining module 220, a sending module 230, and a display module 240;
the monitoring module 210 is configured to monitor hardware devices of the terminal in real time through a Native functional component of the client; the determining module 220 is configured to determine, based on a preset rule, a target display event matched with the user instruction when the user instruction identified by the hardware device is monitored; a sending module 230, configured to send the target display event to a web page component of a client; a display module 240, configured to perform, by the web page component, page display on the client based on the target display event; the webpage component is deployed at a server side, and is loaded to the client side from the server side when the client side is started.
On the basis of the above technical solution, the determining module 220 specifically includes:
the identification unit is used for performing intention identification on the user instruction;
the matching unit is used for determining a target display event corresponding to the intention recognition result based on the intention recognition result and the corresponding relation between the preset intention and the display event;
and the determining unit is used for determining the target display event as the target display event matched with the user instruction.
On the basis of the above technical solutions, the apparatus further includes: and the updating module is used for updating the corresponding relation between the preset intention and the display event according to the service requirement.
On the basis of the technical solutions, the target display event includes a page display type, page display content and an intention keyword.
On the basis of the above technical solutions, the sending module 230 specifically includes:
the packaging unit is used for packaging the page display type, the page display content and the user instruction according to a preset format;
the sending unit is used for sending the packaged information to the webpage component;
wherein the web page component is an HTML5 web page component.
On the basis of the above technical solutions, the display module 240 specifically includes:
the analyzing unit is used for analyzing the received packaged information according to a preset format through the webpage component to obtain the page display type, the page display content and the intention keywords;
and the display unit is used for calling the matched view according to the page display type through the webpage component and displaying the page at the client side according to the page display content and/or the intention keywords through the view.
On the basis of the above technical solutions, the user instruction identified by the hardware device includes:
based on a user voice command recognized by an audio device of the terminal or a user tapping command recognized by a vibration sensor of the terminal.
According to the technical scheme of the embodiment of the disclosure, hardware equipment of a terminal is monitored in real time through a Native functional component of a client, and when a user instruction identified based on hardware equipment interaction is monitored, a target display event matched with the user instruction is determined based on a preset rule; sending the target display event to a webpage component; performing page display on the client side based on the target display event through the webpage component; the technical means that the webpage component is deployed at the server side and is loaded to the client side from the server side when the client side is started achieves the purpose of page display in a service scene based on hardware interaction triggering page display instructions.
The page display device provided by the embodiment of the disclosure can execute the page display method provided by any embodiment of the disclosure, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only used for distinguishing one functional unit from another, and are not used for limiting the protection scope of the embodiments of the present disclosure.
EXAMPLE III
Referring now to fig. 3, a schematic diagram of an electronic device (e.g., a terminal device or server of fig. 3) 400 suitable for implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage device 406 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 406 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 409, or from the storage means 406, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
The terminal provided by the embodiment of the present disclosure and the page display method provided by the embodiment belong to the same inventive concept, and technical details that are not described in detail in the embodiment of the present disclosure may be referred to the embodiment, and the embodiment of the present disclosure have the same beneficial effects.
Example four
The disclosed embodiments provide a computer storage medium on which a computer program is stored, which when executed by a processor implements the page display method provided by the above embodiments.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule;
sending the target display event to a webpage component of a client;
performing page display on the client side based on the target display event through the webpage component;
the webpage component is deployed at a server side, and is loaded to the client side from the server side when the client side is started.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a cell does not in some cases constitute a limitation on the cell itself, for example, an editable content display cell may also be described as an "editing cell".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, [ example one ] there is provided a page display method, including:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule;
sending the target display event to a webpage component of a client; the webpage components are pre-loaded to the client from the server;
and displaying the page at the client side based on the target display event through the webpage component.
According to one or more embodiments of the present disclosure, the determining a target display event matching the user instruction based on a preset rule includes:
performing intention recognition on the user instruction;
determining a target display event corresponding to the intention recognition result based on the intention recognition result and a preset corresponding relation between the intention and the display event;
determining the target display event as a target display event matching the user instruction.
According to one or more embodiments of the present disclosure, the method further comprises:
and updating the corresponding relation between the preset intention and the display event according to the service requirement.
According to one or more embodiments of the present disclosure, the target display event includes a page display type, page display content, and an intention keyword.
According to one or more embodiments of the present disclosure, sending the target display event to a web page component includes:
packaging the page display type, the page display content and the user instruction according to a preset format;
sending the packaged information to a webpage component;
wherein the web page component is an HTML5 web page component.
According to one or more embodiments of the present disclosure, the page display at the client based on the target display event by the web page component includes:
analyzing the received packaged information according to a preset format through the webpage component to obtain the page display type, the page display content and the intention keywords;
and calling the matched view according to the page display type through the webpage component, and displaying the page at the client side through the view according to the page display content and/or the intention keywords.
According to one or more embodiments of the present disclosure, the user instruction recognized by the hardware device includes:
based on a user voice command recognized by an audio device of the terminal or a user tapping command recognized by a vibration sensor of the terminal.
According to one or more embodiments of the present disclosure, [ example two ] there is provided a page display apparatus including:
the monitoring module is used for monitoring the hardware equipment of the terminal in real time through a Native functional component of the client;
the determining module is used for determining a target display event matched with the user instruction based on a preset rule when the user instruction identified by the hardware equipment is monitored;
the sending module is used for sending the target display event to a webpage component of a client; the webpage components are pre-loaded to the client from the server;
and the display module is used for displaying the page at the client side based on the target display event through the webpage component.
According to one or more embodiments of the present disclosure, the determining module 220 specifically includes:
the identification unit is used for performing intention identification on the user instruction;
the matching unit is used for determining a target display event corresponding to the intention recognition result based on the intention recognition result and the corresponding relation between the preset intention and the display event;
and the determining unit is used for determining the target display event as the target display event matched with the user instruction.
According to one or more embodiments of the present disclosure, the apparatus further comprises: and the updating module is used for updating the corresponding relation between the preset intention and the display event according to the service requirement.
According to one or more embodiments of the present disclosure, the target display event includes a page display type, page display content, and an intention keyword.
According to one or more embodiments of the present disclosure, the sending module 230 specifically includes:
the packaging unit is used for packaging the page display type, the page display content and the user instruction according to a preset format;
the sending unit is used for sending the packaged information to the webpage component;
wherein the web page component is an HTML5 web page component.
According to one or more embodiments of the present disclosure, the display module 240 specifically includes:
the analyzing unit is used for analyzing the received packaged information according to a preset format through the webpage component to obtain the page display type, the page display content and the intention keywords;
and the display unit is used for calling the matched view according to the page display type through the webpage component and displaying the page at the client side according to the page display content and/or the intention keywords through the view.
According to one or more embodiments of the present disclosure, the user instruction recognized by the hardware device includes:
based on a user voice command recognized by an audio device of the terminal or a user tapping command recognized by a vibration sensor of the terminal.
According to one or more embodiments of the present disclosure, [ example three ] there is provided an electronic device comprising:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, cause the one or more processors to implement a page display method as follows:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule;
sending the target display event to a webpage component of a client; the webpage components are pre-loaded to the client from the server;
and displaying the page at the client side based on the target display event through the webpage component.
In some examples, the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a page display method as follows:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, performing intention identification on the user instruction;
determining a target display event corresponding to the intention recognition result based on the intention recognition result and a preset corresponding relation between the intention and the display event;
determining the target display event as a target display event matching the user instruction;
sending the target display event to a webpage component of a client; the webpage components are pre-loaded to the client from the server;
and displaying the page at the client side based on the target display event through the webpage component.
In some examples, the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a page display method as follows:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule;
sending the target display event to a webpage component of a client; the webpage components are pre-loaded to the client from the server;
performing page display on the client side based on the target display event through the webpage component;
and updating the corresponding relation between the preset intention and the display event according to the service requirement.
In some examples, the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a page display method as follows:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule;
packaging the page display type, the page display content and the user instruction according to a preset format;
sending the packaged information to a webpage component; the webpage components are pre-loaded to the client from the server;
performing page display on the client side based on the target display event through the webpage component;
wherein the web page component is an HTML5 web page component.
In some examples, the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a page display method as follows:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule;
packaging the page display type, the page display content and the user instruction according to a preset format;
sending the packaged information to a webpage component; the webpage components are pre-loaded to the client from the server;
analyzing the received packaged information according to a preset format through the webpage component to obtain the page display type, the page display content and the intention keywords;
and calling the matched view according to the page display type through the webpage component, and displaying the page at the client side through the view according to the page display content and/or the intention keywords.
Wherein the web page component is an HTML5 web page component.
According to one or more embodiments of the present disclosure, the user instruction recognized by the hardware device includes:
based on a user voice command recognized by an audio device of the terminal or a user tapping command recognized by a vibration sensor of the terminal.
According to one or more embodiments of the present disclosure, [ example four ] there is provided a storage medium containing computer-executable instructions which, when executed by a computer processor, are operable to perform a page display method of:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule;
sending the target display event to a webpage component of a client; the webpage components are pre-loaded to the client from the server;
and displaying the page at the client side based on the target display event through the webpage component.
In some examples, the computer executable instructions, when executed by a computer processor, are for performing a page display method of:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, performing intention identification on the user instruction;
determining a target display event corresponding to the intention recognition result based on the intention recognition result and a preset corresponding relation between the intention and the display event;
determining the target display event as a target display event matching the user instruction;
sending the target display event to a webpage component of a client; the webpage components are pre-loaded to the client from the server;
and displaying the page at the client side based on the target display event through the webpage component.
In some examples, the computer executable instructions, when executed by a computer processor, are for performing a page display method of:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule;
sending the target display event to a webpage component of a client; the webpage components are pre-loaded to the client from the server;
performing page display on the client side based on the target display event through the webpage component;
and updating the corresponding relation between the preset intention and the display event according to the service requirement.
In some examples, the computer executable instructions, when executed by a computer processor, are for performing a page display method of:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule;
packaging the page display type, the page display content and the user instruction according to a preset format;
sending the packaged information to a webpage component; the webpage components are pre-loaded to the client from the server;
performing page display on the client side based on the target display event through the webpage component;
wherein the web page component is an HTML5 web page component.
In some examples, the computer executable instructions, when executed by a computer processor, are for performing a page display method of:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule;
packaging the page display type, the page display content and the user instruction according to a preset format;
sending the packaged information to a webpage component; the webpage components are pre-loaded to the client from the server;
analyzing the received packaged information according to a preset format through the webpage component to obtain the page display type, the page display content and the intention keywords;
and calling the matched view according to the page display type through the webpage component, and displaying the page at the client side through the view according to the page display content and/or the intention keywords.
Wherein the web page component is an HTML5 web page component.
According to one or more embodiments of the present disclosure, the user instruction recognized by the hardware device includes:
based on a user voice command recognized by an audio device of the terminal or a user tapping command recognized by a vibration sensor of the terminal.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims (10)
1. A page display method is applied to a client and comprises the following steps:
monitoring hardware equipment of a terminal in real time through a Native functional component of a client;
when a user instruction identified by the hardware equipment is monitored, determining a target display event matched with the user instruction based on a preset rule;
sending the target display event to a webpage component of a client; the webpage components are pre-loaded to the client from the server;
and displaying the page at the client side based on the target display event through the webpage component.
2. The method according to claim 1, wherein the determining a target display event matching the user instruction based on a preset rule comprises:
performing intention recognition on the user instruction;
determining a target display event corresponding to the intention recognition result based on the intention recognition result and a preset corresponding relation between the intention and the display event;
determining the target display event as a target display event matching the user instruction.
3. The method of claim 2, further comprising:
and updating the corresponding relation between the preset intention and the display event according to the service requirement.
4. The method of any of claims 1-3, wherein the target display event comprises a page display type, page display content, and an intent keyword.
5. The method of claim 4, wherein sending the target display event to a web page component comprises:
packaging the page display type, the page display content and the user instruction according to a preset format;
sending the packaged information to a webpage component;
wherein the web page component is an HTML5 web page component.
6. The method of claim 5, wherein performing, by the web page component, a page display at a client based on the target display event comprises:
analyzing the received packaged information according to a preset format through the webpage component to obtain the page display type, the page display content and the intention keywords;
and calling the matched view according to the page display type through the webpage component, and displaying the page at the client side through the view according to the page display content and/or the intention keywords.
7. The method of any of claims 1-3, wherein the user instruction identified by the hardware device comprises:
based on a user voice command recognized by an audio device of the terminal or a user tapping command recognized by a vibration sensor of the terminal.
8. A page display apparatus, comprising:
the monitoring module is used for monitoring the hardware equipment of the terminal in real time through a Native functional component of the client;
the determining module is used for determining a target display event matched with a user instruction based on a preset rule when the user instruction identified based on hardware equipment interaction is monitored;
the sending module is used for sending the target display event to a webpage component of a client; the webpage components are pre-loaded to the client from the server;
and the display module is used for displaying the page at the client side based on the target display event through the webpage component.
9. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the page display method of any of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the page display method of any one of claims 1-7 when executed by a computer processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910796385.XA CN112306593A (en) | 2019-08-27 | 2019-08-27 | Page display method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910796385.XA CN112306593A (en) | 2019-08-27 | 2019-08-27 | Page display method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112306593A true CN112306593A (en) | 2021-02-02 |
Family
ID=74486777
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910796385.XA Pending CN112306593A (en) | 2019-08-27 | 2019-08-27 | Page display method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112306593A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103488384A (en) * | 2013-09-30 | 2014-01-01 | 乐视致新电子科技(天津)有限公司 | Voice assistant application interface display method and device |
CN105740263A (en) * | 2014-12-10 | 2016-07-06 | 深圳市腾讯计算机系统有限公司 | Page display method and apparatus |
CN107967055A (en) * | 2017-11-16 | 2018-04-27 | 深圳市金立通信设备有限公司 | A kind of man-machine interaction method, terminal and computer-readable medium |
-
2019
- 2019-08-27 CN CN201910796385.XA patent/CN112306593A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103488384A (en) * | 2013-09-30 | 2014-01-01 | 乐视致新电子科技(天津)有限公司 | Voice assistant application interface display method and device |
CN105740263A (en) * | 2014-12-10 | 2016-07-06 | 深圳市腾讯计算机系统有限公司 | Page display method and apparatus |
CN107967055A (en) * | 2017-11-16 | 2018-04-27 | 深圳市金立通信设备有限公司 | A kind of man-machine interaction method, terminal and computer-readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111581563B (en) | Page response method and device, storage medium and electronic equipment | |
CN111488185B (en) | Page data processing method, device, electronic equipment and readable medium | |
CN112269959B (en) | Control method and device for display content, readable medium and electronic equipment | |
CN111163324B (en) | Information processing method and device and electronic equipment | |
CN111400625B (en) | Page processing method and device, electronic equipment and computer readable storage medium | |
CN110633126B (en) | Information display method and device and electronic equipment | |
CN111459364B (en) | Icon updating method and device and electronic equipment | |
CN110837534A (en) | Data list display method, device, equipment and storage medium | |
CN114491098A (en) | Comment prompting method and device, electronic equipment, storage medium and program product | |
CN110619101B (en) | Method and apparatus for processing information | |
CN111723309B (en) | Method and device for web page searching | |
CN112256372B (en) | Information processing method and device and electronic equipment | |
CN114428925A (en) | Page rendering method and device, electronic equipment and computer readable medium | |
CN109587553A (en) | Method for playing music, device, electronic equipment and computer storage medium | |
CN111756953A (en) | Video processing method, device, equipment and computer readable medium | |
CN111460211A (en) | Audio information playing method and device and electronic equipment | |
CN112307393A (en) | Information issuing method and device and electronic equipment | |
CN111212296B (en) | Live broadcast room gift list configuration method, device, medium and electronic equipment | |
CN112306593A (en) | Page display method and device, electronic equipment and storage medium | |
CN111241368A (en) | Data processing method, device, medium and equipment | |
CN111641692B (en) | Session data processing method and device and electronic equipment | |
CN110099122B (en) | Method and apparatus for sending network request | |
CN112948108B (en) | Request processing method and device and electronic equipment | |
CN112084440B (en) | Data verification method, device, electronic equipment and computer readable medium | |
CN116360710B (en) | Data storage method applied to server cluster, electronic device and readable medium |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210202 |