CN110309475B - Page display method and device, terminal equipment and storage medium - Google Patents

Page display method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN110309475B
CN110309475B CN201910580552.7A CN201910580552A CN110309475B CN 110309475 B CN110309475 B CN 110309475B CN 201910580552 A CN201910580552 A CN 201910580552A CN 110309475 B CN110309475 B CN 110309475B
Authority
CN
China
Prior art keywords
content
displayed
control
display control
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.)
Active
Application number
CN201910580552.7A
Other languages
Chinese (zh)
Other versions
CN110309475A (en
Inventor
刘海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910580552.7A priority Critical patent/CN110309475B/en
Publication of CN110309475A publication Critical patent/CN110309475A/en
Application granted granted Critical
Publication of CN110309475B publication Critical patent/CN110309475B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a page display method, a page display device, terminal equipment and a storage medium. The method comprises the following steps: when the trigger operation of a preset control is detected on a current application program interface, determining a target program for providing the content to be displayed corresponding to the preset control; and loading the content to be displayed from the target program, and displaying the loaded content to be displayed on the current application program interface. According to the technical scheme, the content to be displayed loaded from the target program is displayed through the current application program interface without entering the target program, the display effect of the page is enriched, the functions of the application program are enriched, and the use experience of a user is improved.

Description

Page display method and device, terminal equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a page display method, a page display device, terminal equipment and a storage medium.
Background
With the rapid popularization of intelligent terminal equipment and the rapid promotion of mobile network speed, content resources and the like, various content services can be rapidly popularized and used, the traditional life style of people is effectively changed, and with the technical breakthroughs of different forms, the service styles of different forms can be rapidly released and subjected to online experiments.
When a user accesses a page of an application program (APP) through a mobile terminal, another APP is called based on some trigger operations of the user, and relevant contents are displayed in an interface of the third-party APP after the user enters the other third-party APP. For example, when the user uses the encyclopedia assistant APP and clicks the "novel" Tab on the top of the page, the system calls up a third party APP related to another novel and displays the page of the third party APP, such as the top page of the third party APP.
According to the page display scheme, the APP triggered by the user can only display related contents by calling other APPs, so that the page display method of the APP is single, and further improvement is urgently needed.
Disclosure of Invention
The invention provides a page display method, a page display device, terminal equipment and a storage medium, which are used for enriching the display effect of a page and further improving the user experience.
In a first aspect, an embodiment of the present invention provides a page display method, including:
when the trigger operation of a preset control is detected on a current application program interface, determining a target program for providing the content to be displayed corresponding to the preset control;
and loading the content to be displayed from the target program, and displaying the loaded content to be displayed on the current application program interface.
In a second aspect, an embodiment of the present invention further provides a page display apparatus, including:
the program determining module is used for determining a target program for providing the content to be displayed corresponding to the preset control when the triggering operation of the preset control is detected on the current application program interface;
and the content display module is used for loading the content to be displayed from the target program and displaying the loaded content to be displayed on the current application program interface.
In a third aspect, an embodiment of the present invention further provides a terminal device, including:
one or more processors;
a memory 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 a page showing method as provided in an embodiment of the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a page showing method as provided in the first aspect.
After the triggering operation of the preset control is detected on the current application program interface, determining a target program for providing the content to be displayed corresponding to the preset control; and loading the content to be displayed from the target program, and displaying the loaded content to be displayed on the current application program interface. According to the technical scheme, the corresponding relation between the current application program and the target program is established through the preset control, the content to be displayed loaded by the target program is displayed through the current application program interface, the target program does not need to be accessed, the display effect of the page is enriched, the functions of the application program are enriched, and the use experience of a user is improved.
Drawings
FIG. 1 is a flowchart of a page display method according to a first embodiment of the present invention;
FIG. 2A is a flowchart of a page display method according to a second embodiment of the present invention;
FIG. 2B is a diagram illustrating a display page of an application according to a second embodiment of the present invention;
FIG. 2C is a diagram of a display page of another application program according to a second embodiment of the present invention;
FIG. 3 is a block diagram of a page display apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device in the fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a page display method according to a first embodiment of the present invention. The embodiment of the invention is suitable for triggering the preset control in the application program interface to show the corresponding content. The method is executed by a page display device, which is realized by software and/or hardware and is specifically configured in terminal equipment. The terminal equipment can be mobile terminals such as smart phones, tablet computers and personal computers, and can also be fixed equipment such as desktop computers.
A page display method as shown in fig. 1 includes:
s110, when the trigger operation of the preset control is detected on the current application program interface, determining a target program for providing the content to be displayed corresponding to the preset control.
Wherein the current application is an application having a specific service function of providing at least one other program. Accordingly, other end programs may be set inside the current application program, and may also exist independently of the current application program. Illustratively, the other program may be at least one of an application program, a component set in the current application program, a plug-in, and an applet.
The preset control can be understood as a control which is arranged in an application program interface for navigation and is established with an association relationship between the application program and other programs. Illustratively, the preset control may be a Tab (Tab) control, a Button (Button) control, or the like.
Illustratively, the preset control may be a primary control. Of course, in order to implement flexible extension of the application program, the preset control may also be other sub-controls nested under the primary control, such as a secondary control, a tertiary control, and the like. The preset control can be arranged in a set area in the application program interface, such as the bottom and/or the top.
The target program is other programs which correspond to the preset control and have an association relation with the application program. Accordingly, the target program may be at least one of an application program, a component set in the current application program, a plug-in, and an applet.
In the step, a current application program interface is displayed in the terminal equipment, and when a user triggers a preset control on the application program interface according to the requirement of the user, a content display instruction is generated; and the content display instruction comprises control identification information of the triggered preset control. When the content display instruction is detected to be generated, analyzing the content display instruction to obtain control identification information of a preset control; and determining the content to be displayed and providing the target program of the content to be displayed according to the control identification information of the preset control. The control identification information of the preset control may be position information of the preset control on the application program interface.
For example, a first mapping relationship between the preset control and the content to be displayed may be preset, and the first mapping relationship is stored in the terminal device locally, in other storage devices or in a cloud that have an association relationship with the terminal device, and is directly obtained when needed. For example, the first mapping relationship may be a mapping relationship between control identification information of a preset control and content identification information of content to be presented.
It can be understood that, in order to facilitate the determination of the target program, a second mapping relationship between the content to be displayed and the target program may be preset, and the second mapping relationship is stored in another storage device or a cloud terminal that is local to the terminal device and has an association relationship with the terminal device, and is directly obtained when needed. For example, the second mapping relationship may be a mapping relationship between content identification information of the content to be presented and program identification information of the target program.
The content identification information of the content to be displayed comprises a page identification and/or a content item identification.
S120, loading the content to be displayed from the target program, and displaying the loaded content to be displayed on the current application program interface.
In the step, after the content to be displayed and the target program corresponding to the content to be displayed are determined, the content to be displayed is loaded through the target program, and the loaded content to be displayed is displayed through the current application program interface. It should be noted that, because the content to be displayed does not need to be displayed through the target program, but is directly displayed in the interface of the current application program displayed in the terminal device in advance, the display effect of the page is enriched, and the function of the application program is further improved; meanwhile, the page jump times of the terminal equipment are reduced, and the use experience of a user is improved.
After the triggering operation of the preset control is detected on the current application program interface, determining a target program for providing the content to be displayed corresponding to the preset control; and loading the content to be displayed from the target program, and displaying the loaded content to be displayed on the current application program interface. According to the technical scheme, the corresponding relation between the application program and the target program is established through the preset control, the content to be displayed loaded by the target program is displayed through the application program interface, the target program does not need to be accessed, the display effect of the page is enriched, the functions of the application program are enriched, and the use experience of a user is improved.
Example two
Fig. 2A is a flowchart of a page showing method in the second embodiment of the present invention, and the second embodiment of the present invention performs optimization and improvement on the basis of the technical solutions of the above embodiments.
Further, the operation of loading the content to be displayed from the target program and displaying the loaded content to be displayed on the current application program interface is refined to obtain content identification information of the content to be displayed corresponding to the preset control, and a display control for displaying the content to be displayed corresponding to the preset control is generated; sending the content identification information and the display control to the target program, so that the target program adds the content to be displayed to the display control based on the content identification information, and returns the display control containing the content to be displayed; and displaying the content to be displayed in the returned display control so as to perfect a page display mechanism of the application program.
A page display method as shown in fig. 2A includes:
s210, when the trigger operation of the preset control is detected on the current application program interface, determining a target program for providing the content to be displayed corresponding to the preset control.
S220, acquiring content identification information of the content to be displayed corresponding to the preset control, and generating a display control for displaying the content to be displayed corresponding to the preset control.
Wherein, the display control can be a view rendering display control or a WINDOW WINDOW control. Wherein the VIEW rendering display control comprises a VIEW control and/or a FRAGMENT FRAGMENT control.
S230, sending the content identification information and the display control to the target program, so that the target program adds the content to be displayed to the display control based on the content identification information, and returning the display control containing the content to be displayed.
S240, displaying the returned content to be displayed in the display control.
In an alternative implementation of this embodiment of the present invention, the presentation control is a VIEW control.
Correspondingly, the target program adds the content to be displayed to the display control based on the content identification information, which may be that the target program acquires the content to be displayed based on the content identification information, draws the acquired content to be displayed in the VIEW control, and returns the VIEW control including the content to be displayed.
Correspondingly, the content to be displayed in the returned display control is displayed, which may be displaying the content to be displayed included in the returned VIEW control in a content display area of the current application program interface.
Specifically, the returned VIEW control may replace the placeholder VIEW control in the content display area of the current application program interface, so as to display the content to be displayed in the content display area.
When each application program displays an interface, at least one Activity needs to be set as an interface carrier, so that a user can draw the interface on the Activity. After the VIEW control is initialized through the Activity, the size of each element in the VIEW control is determined, the size of the VIEW control is adjusted, the size and the position of each element are distributed in the VIEW control, and after distribution is completed, detail rendering is performed on each element, so that the content to be displayed is drawn in the VIEW control. After the drawing is completed, the VIEW control containing the content to be shown is returned. Referring to FIG. 2B, a schematic diagram of a presentation page of an application program is shown to illustrate a page presentation process.
And displaying the application program interface. The application program interface includes a navigation area 21 and a content display area 22. The navigation area 21 is provided with at least one preset control for implementing the navigation function, and the content display area 22 is provided with a display control for displaying a page.
The preset control in fig. 2B includes a primary control 211 and a secondary control 212 after the primary control is expanded. Wherein, the primary control comprises recommendation, game, small video, software and management; wherein, the secondary control corresponding to the recommendation comprises classification, selection, video, ranking and novel. Wherein, the show control may be a VIEW control.
When a user triggers a preset control corresponding to the novel, determining a target program of the content to be displayed corresponding to the preset control; acquiring content identification information of the content to be displayed, and generating a VIEW control to display the content to be displayed corresponding to a preset control 'novel'; sending the content identification information and the VIEW control to a target program; the target program receives the content identification information and the VIEW control, and obtains the content to be displayed based on the content identification information; and the target program draws the acquired content to be displayed in the VIEW control and returns the VIEW control which draws the content to be displayed.
And replacing the VIEW control returned by the target program with the occupied VIEW control of the content display area 22 of the current application program interface, thereby realizing the display of the content to be displayed in the content display area 22 of the current application program interface.
It can be understood that, in order to facilitate the effect of dynamic layout and reduce memory consumption during page display, in another optional implementation manner of the embodiment of the present invention, the display control may be further configured as a lightweight interface carrier, which is a FRAGMENT control.
Correspondingly, the target program adds the content to be displayed to the display control based on the content identification information, which may be that the target program acquires the content to be displayed based on the content identification information, draws the acquired content to be displayed to the FRAGMENT control, and returns the FRAGMENT control containing the content to be displayed.
Correspondingly, the content to be displayed in the returned display control is displayed, which may be displaying the content to be displayed contained in the returned FRAGMENT control in a content display area of the current application program interface.
Specifically, the returned FRAGMENT control may replace the placeholder FRAGMENT control in the content display area of the current application program interface, so as to display the content to be presented in the content display area.
It is to be understood that, in order to implement decoupling of an interface carrier activity (activity) of an application program interface from a presentation control (for example, a VIEW control or a FRAGMENT control), and simultaneously perform unified management on the presentation controls, in yet another alternative implementation manner of the embodiment of the present invention, the presentation control may also be set as a WINDOW control.
Correspondingly, the target program adds the content to be displayed to the display control based on the content identification information, wherein the target program may determine a content class corresponding to the content identification information, generate a view control containing the content to be displayed by calling a view generation method function of the content class, add the view control to the WINDOW control, and return to the WINDOW control containing the view control;
correspondingly, the returned content to be displayed in the display control is displayed, and the returned WINDOW control may be added to a root WINDOW control of a current program interface, so as to display the content to be displayed on the current application program interface.
Referring to the schematic diagram of the presentation page of an application shown in fig. 2C, the content contained in the returned WINDOW control is presented in the presentation page 23 of the current application.
The description continues with the foregoing example. When a user triggers a preset control corresponding to the novel, determining a target program of the content to be displayed corresponding to the preset control; acquiring content identification information of content to be displayed, and generating a WINDOW control to display the content to be displayed corresponding to a preset control 'novel'; sending the content identification information and the WINDOW control to a target program; the target program receives the content identification information and the WINDOW control, determines a content class corresponding to the content identification information through a reflection mechanism, calls a view generation method function of the content class, and generates a view control containing the content to be displayed; wherein, the VIEW control may be a VIEW control; and the target program adds the view control into the WINDOW control and returns the WINDOW control containing the view control.
And adding the WINDOW control returned by the target program into the root WINDOW control of the display page 23 of the current application program interface, thereby realizing the display of the content to be displayed on the display page 23 of the current application program interface.
The content to be displayed is loaded from a target program, the loaded content to be displayed is displayed on a current application program interface, content identification information of the content to be displayed corresponding to the preset control is obtained in a detailed mode, and a display control used for displaying the content to be displayed corresponding to the preset control is generated; sending the content identification information and the display control to the target program, so that the target program adds the content to be displayed to the display control based on the content identification information, and returns the display control containing the content to be displayed; and displaying the content to be displayed in the returned display control, so that different display controls are adopted to display the content to be displayed, different display requirements are better adapted, and the page display mechanism of the application program is further improved.
EXAMPLE III
Fig. 3 is a structural diagram of a page presenting apparatus according to a third embodiment of the present invention. The embodiment of the invention is suitable for triggering the preset control in the application program interface to show the corresponding content. The device is realized by software and/or hardware and is specifically configured in the terminal equipment. The terminal equipment can be mobile terminals such as smart phones, tablet computers and personal computers, and can also be fixed equipment such as desktop computers.
A page presentation apparatus as shown in fig. 3, comprising: a program determination module 310 and a content presentation module 320.
The program determining module 310 is configured to determine, when a trigger operation on a preset control is detected on a current application program interface, a target program for providing content to be displayed corresponding to the preset control;
the content display module 320 is configured to load the content to be displayed from the target program, and display the loaded content to be displayed in a current application program interface.
After detecting the triggering operation of the preset control on the current application program interface through the program determining module, determining a target program for providing the content to be displayed corresponding to the preset control; and loading the content to be displayed from the target program through the content display module, and displaying the loaded content to be displayed on the current application program interface. According to the technical scheme, the corresponding relation between the application program and the target program is established through the preset control, the content to be displayed loaded by the target program is displayed through the application program interface, the target program does not need to be accessed, the display effect of the page is enriched, the functions of the application program are enriched, and the use experience of a user is improved.
Further, the content presentation module 320 includes:
the display control generating unit is used for acquiring content identification information of the content to be displayed corresponding to the preset control and generating a display control for displaying the content to be displayed corresponding to the preset control;
the display control returning unit is used for sending the content identification information and the display control to the target program so as to enable the target program to add the content to be displayed to the display control based on the content identification information and return the display control containing the content to be displayed;
and the display control display unit is used for displaying the returned content to be displayed in the display control.
Further, the display control is a view rendering display control; the VIEW rendering display control includes a VIEW control and/or a FRAGMENT FRAGMENT control.
Further, the display control is a VIEW control; the target program adds the content to be displayed to the display control based on the content identification information, and is specifically configured to:
the target program acquires the content to be displayed based on the content identification information, draws the acquired content to be displayed in the VIEW control, and returns the VIEW control containing the content to be displayed;
correspondingly, the display control display unit is specifically configured to:
and displaying the content to be displayed contained in the returned VIEW control in a content display area of the current application program interface.
Further, the display control display unit is specifically configured to:
and replacing the returned VIEW control with an occupied VIEW control in a content display area of the current application program interface so as to display the content to be displayed in the content display area.
Further, the presentation control is a FRAGMENT FRAGMENT control; the target program adds the content to be displayed to the display control based on the content identification information, and is specifically configured to:
the target program acquires the content to be displayed based on the content identification information, draws the acquired content to be displayed into the FRAGMENT control, and returns the FRAGMENT control containing the content to be displayed;
correspondingly, the display control display unit is specifically configured to:
and displaying the content to be displayed contained in the returned FRAGMENT control in a content display area of the current application program interface.
Further, the display control display unit is specifically configured to:
replacing the returned FRAGMENT control with a placeholder FRAGMENT control in a content display area of the current application program interface so as to display the content to be shown in the content display area.
Further, the display control is a WINDOW WINDOW control; the target program adds the content to be displayed to the display control based on the content identification information, and is specifically configured to:
the target program determines a content class corresponding to the content identification information, generates a view control containing the content to be displayed by calling a view generation method function of the content class, adds the view control into the WINDOW control, and returns the WINDOW control containing the view control;
correspondingly, the display control display unit is specifically configured to:
and adding the returned WINDOW control into a root WINDOW control of the current application program interface so as to display the content to be displayed on the current application program interface.
Further, the preset controls comprise a first-level control and a multi-level control;
the multi-level control is a sub-control nested under the primary control;
the primary control includes a label control and/or a button control.
Further, the content identification information includes: a page identification and/or a content item identification;
further, the type of the target program is: an application, a component, a plug-in, or an applet that is set in the current application.
The page display device provided by the embodiment of the invention can execute the page display method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of executing the page display method.
Example four
Fig. 4 is a schematic structural diagram of a terminal device according to a fourth embodiment of the present invention. Fig. 4 illustrates a block diagram of an exemplary terminal device 412 suitable for use in implementing embodiments of the present invention. The terminal device 412 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 4, terminal device 412 is in the form of a general purpose computing device. The components of the terminal device 412 may include, but are not limited to: one or more processors or processing units 416, a system memory 428, and a bus 418 that couples the various system components including the system memory 428 and the processing unit 416.
Bus 418 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Terminal device 412 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by terminal device 412 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 428 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)430 and/or cache memory 432. The terminal device 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 418 by one or more data media interfaces. Memory 428 can include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in memory 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methodologies of the described embodiments of the invention.
The terminal device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing device, display 424, etc.), with one or more devices that enable a user to interact with the terminal device 412, and/or with any devices (e.g., network card, modem, etc.) that enable the terminal device 412 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 422. Also, the terminal device 412 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through the network adapter 420. As shown, the network adapter 420 communicates with the other modules of the terminal device 412 over a bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the terminal device 412, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 416 executes various functional applications and data processing by executing at least one of the programs stored in the system memory 428, for example, to implement a page rendering method provided by the embodiments of the present invention.
EXAMPLE five
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a page display method provided in any embodiment of the present invention, and the method includes: when the trigger operation of a preset control is detected on a current application program interface, determining a target program for providing the content to be displayed corresponding to the preset control; and loading the content to be displayed from the target program, and displaying the loaded content to be displayed on the current application program interface.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. 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 (a non-exhaustive list) of the computer readable storage medium would include the following: 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 context of this document, 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, 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 wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like 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).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A page display method is characterized by comprising the following steps:
when the trigger operation of a preset control is detected on a current application program interface, determining a target program for providing the content to be displayed corresponding to the preset control;
loading the content to be displayed from the target program, and displaying the loaded content to be displayed on a current application program interface;
loading the content to be displayed from the target program, and displaying the loaded content to be displayed on a current application program interface, wherein the method comprises the following steps:
acquiring content identification information of the content to be displayed corresponding to the preset control, and generating a display control for displaying the content to be displayed corresponding to the preset control;
sending the content identification information and the display control to the target program, so that the target program adds the content to be displayed to the display control based on the content identification information, and returns the display control containing the content to be displayed;
and displaying the content to be displayed in the returned display control.
2. The method of claim 1, wherein the presentation control is a view rendering display control; the target program adds the content to be displayed to the display control based on the content identification information, including:
the target program acquires the content to be displayed based on the content identification information, draws the acquired content to be displayed in the view rendering display control, and returns the view rendering display control containing the content to be displayed;
displaying the content to be displayed in the returned display control, wherein the displaying comprises the following steps:
and displaying the content to be displayed contained in the returned view rendering display control in a content display area of the current application program interface.
3. The method of claim 2, wherein the VIEW rendering display control comprises a VIEW control and/or a FRAGMENT FRAGMENT control.
4. The method of claim 1, wherein the presentation control is a WINDOW WINDOWs control; the target program adds the content to be displayed to the display control based on the content identification information, including:
the target program determines a content class corresponding to the content identification information, generates a view control containing the content to be displayed by calling a view generation method function of the content class, adds the view control into the WINDOW control, and returns the WINDOW control containing the view control;
displaying the content to be displayed in the returned display control, wherein the displaying comprises the following steps:
and adding the returned WINDOW control into a root WINDOW control of the current application program interface so as to display the content to be displayed on the current application program interface.
5. The method according to any one of claims 1-4, wherein the content identification information comprises: a page identification and/or a content item identification.
6. The method according to any of claims 1-4, wherein the type of the target program is: an application, a component, a plug-in, or an applet that is set in the current application.
7. A page presentation apparatus, comprising:
the program determining module is used for determining a target program for providing the content to be displayed corresponding to the preset control when the triggering operation of the preset control is detected on the current application program interface;
the content display module is used for loading the content to be displayed from the target program and displaying the loaded content to be displayed on a current application program interface;
wherein the content presentation module comprises:
the display control generating unit is used for acquiring content identification information of the content to be displayed corresponding to the preset control and generating a display control for displaying the content to be displayed corresponding to the preset control;
the display control returning unit is used for sending the content identification information and the display control to the target program so as to enable the target program to add the content to be displayed to the display control based on the content identification information and return the display control containing the content to be displayed;
and the display control display unit is used for displaying the returned content to be displayed in the display control.
8. A terminal device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a page rendering method as claimed in any one of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a page rendering method according to any one of claims 1 to 6.
CN201910580552.7A 2019-06-28 2019-06-28 Page display method and device, terminal equipment and storage medium Active CN110309475B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910580552.7A CN110309475B (en) 2019-06-28 2019-06-28 Page display method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910580552.7A CN110309475B (en) 2019-06-28 2019-06-28 Page display method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110309475A CN110309475A (en) 2019-10-08
CN110309475B true CN110309475B (en) 2021-01-29

Family

ID=68078505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910580552.7A Active CN110309475B (en) 2019-06-28 2019-06-28 Page display method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110309475B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273984A (en) * 2020-01-20 2020-06-12 深圳震有科技股份有限公司 Extension method of numerical control, storage medium and terminal equipment
CN113268292A (en) * 2020-02-14 2021-08-17 北京沃东天骏信息技术有限公司 Method and device for displaying information, electronic equipment and storage medium
CN111354089B (en) * 2020-02-21 2023-08-15 上海米哈游天命科技有限公司 Multi-level special effect ordering method, device, equipment and storage medium
CN111370096A (en) * 2020-03-06 2020-07-03 北京三快在线科技有限公司 Interactive interface display method, device, equipment and storage medium
CN111459487A (en) * 2020-04-02 2020-07-28 上海极链网络科技有限公司 Method, device and equipment for displaying control and storage medium
CN112416374B (en) * 2020-11-18 2022-10-25 北京字跳网络技术有限公司 Data processing method, device, terminal and storage medium
CN113641274A (en) * 2021-08-16 2021-11-12 海尔数字科技(青岛)有限公司 Page display method, device and equipment for micro application
CN116483296A (en) * 2022-01-13 2023-07-25 深圳Tcl新技术有限公司 Screen projection control method and device, storage medium and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622385A (en) * 2011-06-30 2012-08-01 北京小米科技有限责任公司 Method for skin change of third-party application program
CN104424484B (en) * 2013-09-11 2019-01-15 阿里巴巴集团控股有限公司 Application program switching, the method and device for adding access information
CN104750722B (en) * 2013-12-30 2019-04-09 腾讯科技(深圳)有限公司 A kind of acquisition of information and methods of exhibiting and device
CN105630876B (en) * 2015-12-17 2019-10-22 百度在线网络技术(北京)有限公司 Information acquisition method and device across application
CN108664304A (en) * 2018-05-03 2018-10-16 广州腾讯科技有限公司 Applied program processing method, device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN110309475A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN110309475B (en) Page display method and device, terminal equipment and storage medium
US20200342338A1 (en) Method for preloading application, storage medium, and terminal
US20220075518A1 (en) Fast Data Copying Method and Electronic Device
US8468457B1 (en) Global keyboard shortcuts management for web applications
US9772861B2 (en) Accessing operating system elements via a tag cloud
US20160253318A1 (en) Apparatus and method for processing text
US20190107929A1 (en) Method and device for loading content of page, and electronic device
US20200220824A1 (en) Method, a device and a storage medium of forwarding voice information in instant messaging
CN112799760B (en) Form rendering method and device
CN110297575B (en) Page display method and device, terminal equipment and storage medium
CN110113443B (en) Social role management method, computer device and storage medium
CN109145241B (en) Browser and content display management method of browser
CN112492399A (en) Information display method and device and electronic equipment
CN115081423A (en) Document editing method and device, electronic equipment and storage medium
CN114647411A (en) Programming interface loading method and device, electronic equipment and storage medium
CN111610917B (en) Display method, display device and electronic equipment
US20170053263A1 (en) Apparatus and method for providing information of electronic device
CN114237743A (en) Interface loading method and device, electronic equipment and storage medium
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product
CN109460511B (en) Method and device for acquiring user portrait, electronic equipment and storage medium
CN111859999A (en) Message translation method, device, storage medium and electronic equipment
US10592081B2 (en) Multi-language input method and multi-language input apparatus using the same
CN111382204B (en) Hbase database processing method and device based on webpage interface
CN116501223B (en) Object display method and device, electronic equipment and storage medium
CN114780896B (en) Webpage content generation method and device and computer readable storage 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
GR01 Patent grant
GR01 Patent grant