CN113626743A - Method and device for determining target display page, electronic equipment and storage medium - Google Patents

Method and device for determining target display page, electronic equipment and storage medium Download PDF

Info

Publication number
CN113626743A
CN113626743A CN202110890049.9A CN202110890049A CN113626743A CN 113626743 A CN113626743 A CN 113626743A CN 202110890049 A CN202110890049 A CN 202110890049A CN 113626743 A CN113626743 A CN 113626743A
Authority
CN
China
Prior art keywords
page
display
parameters
target display
embedded
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
Application number
CN202110890049.9A
Other languages
Chinese (zh)
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.)
Guahao Net Hangzhou Technology Co Ltd
Original Assignee
Guahao Net Hangzhou 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 Guahao Net Hangzhou Technology Co Ltd filed Critical Guahao Net Hangzhou Technology Co Ltd
Priority to CN202110890049.9A priority Critical patent/CN113626743A/en
Publication of CN113626743A publication Critical patent/CN113626743A/en
Pending legal-status Critical Current

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

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a method, a device, electronic equipment and a storage medium for determining a target display page, wherein the method comprises the following steps: when the operation of triggering the display of the target display page is detected, determining the area parameters of each target display area in the target display page; determining page embedding parameters of an embedded page corresponding to each target display area; adjusting the page display parameters of each embedded page based on the region parameters and the page embedding parameters of each target display region; and displaying the corresponding embedded page in the target display page based on each page display parameter. The technical scheme of the embodiment of the invention solves the problems that in the prior art, when the embedded page is changed, the page layout of the target display page needs to be manually adjusted, the development cost is higher, the manual adjustment is complicated, the complexity and the efficiency are lower, and the embedded parameters of all the embedded pages are automatically adjusted according to the regional parameters of the target display page, so that the target display page is self-adaptive.

Description

Method and device for determining target display page, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method and a device for determining a target display page, electronic equipment and a storage medium.
Background
With the development of computer technology, more and more users rely on computer networks for obtaining information. For example, the user can browse various web pages to obtain corresponding information. Most of the existing web pages integrate a plurality of sub-pages in one page.
At the moment, the sub-page is not adaptive to the main page, so that a plurality of scroll bars are arranged on one main page, and the use experience of a user is greatly reduced.
Disclosure of Invention
The invention provides a method and a device for determining a target display page, electronic equipment and a storage medium, which are used for realizing self-adaptive adjustment of an embedded page in the target display page and improving the adaptability between the target display page and the embedded page, thereby improving the technical effect of user experience.
In a first aspect, an embodiment of the present invention provides a method for determining a target display page, where the method includes:
when the operation of triggering the display of a target display page is detected, determining the area parameters of each target display area in the target display page;
determining page embedding parameters of an embedded page corresponding to each target display area;
adjusting the page display parameters of each embedded page based on the region parameters and the page embedding parameters of each target display region;
and displaying the corresponding embedded page in the target display page based on each page display parameter.
In a second aspect, an embodiment of the present invention further provides an apparatus for determining a target display page, where the apparatus includes:
the system comprises a region parameter determining module, a region parameter determining module and a region parameter determining module, wherein the region parameter determining module is used for determining the region parameters of each target display region in a target display page when the operation of triggering the display of the target display page is detected;
the page embedding parameter determining module is used for determining page embedding parameters of the embedded page corresponding to each target display area;
the page display parameter determining module is used for adjusting the page display parameters of each embedded page based on the region parameters and the page embedding parameters of each target display region;
and the target display page display module is used for displaying the corresponding embedded page in the target display page based on the display parameters of each page.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device 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 method for determining a target presentation page according to any one of the embodiments of the present invention.
In a fourth aspect, the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method for determining a target presentation page according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, when the operation of triggering the display of the target display interface is detected, the region parameters of each display region in the target display page are determined, and each region parameter is sent to the corresponding embedded page, so that each embedded page adjusts the page display parameters of the embedded page according to the received region parameters, and then the corresponding embedded page is displayed in each display region in the target display interface based on the page display parameters, the technical problem that the user experience is poor due to the fact that the embedded page is not adapted to the target display page in the prior art is solved, the page display parameters of the embedded page are automatically adjusted according to the region information of each display region in the target display page, and then the corresponding embedded page is displayed in the corresponding target display region based on the adjusted page display parameters, and the adaptability between the embedded page and the target display page is realized, thereby improving the technical effect of the user experience.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart of a method for determining a target display page according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for determining a target display page according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for determining a target display page according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a 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 method for determining a target presentation page according to an embodiment of the present invention, where the embodiment is applicable to a situation that page presentation parameters of an embedded page in the target presentation page can be adaptively adjusted when the target presentation page includes the embedded page, and the method can be executed by a device for determining the target presentation page, where the device can be implemented in a form of software and/or hardware, and the hardware can be an electronic device, such as a mobile terminal or a PC terminal.
As shown in fig. 1, the method of this embodiment includes:
s110, when the operation of triggering the display of the target display page is detected, determining the area parameters of each target display area in the target display page.
It should be noted that the technical solution can be applied to any third-party system that needs to access to a target display page. For example, the pages corresponding to the multiple third-party systems are integrated in the current system, the main page corresponding to the current system may be used as the target display page, and the pages corresponding to the other third-party systems may be used as the embedded pages.
The display interface can comprise a control for displaying the display page, and when the user triggers the control, the corresponding target display page can be displayed. The target display page can be a page corresponding to the current system. For example, if the current system is a medical system and another third-party system related to the medical system needs to be accessed to the medical system, the page corresponding to the medical system may be used as the target presentation page. And taking the page corresponding to the accessed third-party system as an embedded page. And displaying the embedded page in a corresponding area in the target display page. If the third-party system only has one page, the target display area is also one. If the number of the third-party systems is more than one, the number of the target display areas is also more than one, and the specific number of the target display areas is consistent with the number of the third-party systems. That is, the number of target presentation areas corresponds to the number of third party systems accessed. The region parameter may be understood as a region area parameter of each target display region, or a region width and height parameter, etc.
Specifically, when the operation of displaying the target presentation page triggered by the user is detected, the target presentation areas included in the target presentation page may be determined, and area parameters of each presentation area, such as a height parameter and a width parameter of each target presentation area, may be determined.
In this embodiment, the determining the area parameters of each target display area in the target display page when detecting an operation of triggering display of the target display page includes: when a control triggering display of a target display page is detected, loading the target display page; and determining the region height parameter and the region width parameter of each target display region in the target display page according to the page layout information of the target display page and the display region information of the target display page.
Specifically, the display interface may include a control for displaying the target presentation page, and the target presentation page may be loaded after the user triggers the control. Meanwhile, the layout information of the target display page can be acquired. The layout information comprises the specific position of the target display area in the target display page. After determining the page layout information, a width parameter and a height parameter for each target presentation area may be determined.
In this embodiment, the purpose of determining the width parameter and the height parameter of each target display area is to adjust the display information of the embedded page in the corresponding target display area, so as to implement the adaptation of each embedded page and the target display page.
And S120, determining page embedding parameters of the embedded page corresponding to each target display area.
The page corresponding to the third-party system can be used as an embedded page. The page embedding parameter may be an original display parameter of the embedded page. The page embedding parameter may be an original parameter embedded in the page when the page is manufactured.
It should be noted that the embedded pages corresponding to different target display areas are different. The page embedding parameters may be the same or different.
In this embodiment, the determining the page embedding parameters of the embedded page corresponding to each target display area includes: determining at least one embedded page associated with the target display page according to a pre-established mapping relation, and determining page embedding parameters of each embedded page; the mapping relation comprises a corresponding relation between a display page identifier and an embedded page identifier associated with the display page identifier, and the page embedding parameters comprise an initial page width parameter and an initial page height parameter of the embedded page.
The embedded pages which can be displayed on different target display pages can be preset. In general, one or more embedded pages may be embedded on one target presentation page. In order to call and display the corresponding embedded page as soon as possible when the target display page is displayed, a corresponding relationship between the identifier of the target display page and the identifier of the associated embedded page may be established. The page embedding parameters include an initial page width parameter and an initial page height parameter, namely, the width and height of the embedded page.
Specifically, after the target display page is determined, an identifier of the target display page may be determined, an embedded page associated with the identifier may be determined according to the mapping relationship, and meanwhile, a target display area corresponding to each embedded page in the target display page may also be determined. Further, in order to make the embedded page adaptable to each target presentation area in the target presentation page, a page embedding parameter of the embedded page may be obtained.
S130, adjusting the page display parameters of each embedded page based on the region parameters and the page embedding parameters of each target display region.
The page display parameter may be understood as a parameter of each target display area displayed in the target display page by each embedded page.
Specifically, after the area parameter of the target display area is determined, whether the page display parameter of the corresponding embedded page is adjusted or not may be determined according to the area parameter and the corresponding page embedding parameter, so that the embedded page is displayed in the target display area based on the page display parameter.
In this embodiment, the adjusting the page display parameter of each embedded page based on the region parameter and the page embedding parameter of each target display region includes: and aiming at each target display area, sending the area parameters of the current target display area to an embedded page corresponding to the current target display area through a postMessage, and adjusting the page parameters based on the area parameters to obtain the page display parameters.
Wherein, iframe may be: the HTML inline frame element (< iframe >) represents the nested browsing context. It can embed another HTML page into the current page. postMessage window. postMessage () method cross-source communication can be securely implemented. Typically, for scripts of two different pages, the two scripts can communicate with each other only if the pages on which they are executed are located with the same protocol (usually https), port number (default value for https), and host (modulus document. domain of the two pages is set to the same value).
It should be noted that the target display page may include a plurality of target display areas, and in order to clearly understand how to adjust the page embedding parameter of the embedded page corresponding to each target display area, the adjustment of one of the page embedding parameters may be taken as an example for description.
Specifically, for the current target display area, the area parameter of the current target display area may be sent to the corresponding embedded page by a postMessage method. And adjusting the page display parameters of the embedded page before according to the page embedding parameters and the area parameters of the embedded page.
Illustratively, the width and height of the area parameter are 20cm and 15cm respectively, the page embedding parameter of the embedded page corresponding to the display area is 16m and 12cm respectively, and the area parameter and the page embedding parameter are processed, which may be proportional amplification of the page embedding parameter to fit the target display area. If the page embedding parameters of the embedded page corresponding to the presentation area are 40 and 30, respectively, the page embedding parameters can be scaled down equally to fit the target presentation area. By the method, the effect of automatically adjusting the adaptation of the embedded page and the target display page is achieved.
On the basis of the technical scheme, the adjusting the page parameter based on the region parameter to obtain the page display parameter includes: and scaling the page parameters of the embedded page in an equal proportion based on the region adjustment parameters to obtain the page display parameters of the embedded page.
It will be appreciated that the page embedding parameters of the embedded page may be scaled according to the region adjustment parameters. The scaling may be equal scaling, or length scaling, width scaling, and the values of length and width scaling may be the same or different, as long as the scaling is adapted to the target display area.
And S140, displaying the corresponding embedded page in the target display page based on the page display parameters.
Specifically, after the display parameters of each page are determined, the corresponding embedded page may be displayed in the target display page. At the moment, the embedded page is matched with the target display page, and the problem that the embedded page cannot be automatically adjusted in the prior art, so that the user experience is poor is solved.
In this embodiment, the displaying, based on each page display parameter, a corresponding embedded page in the target display page includes: and embedding each embedded page into a corresponding target display area according to the page display parameters of each embedded page to obtain the target display page.
Specifically, after the page display parameters of each embedded page are determined, each embedded page may be displayed in each target display area in the target display page according to the page display parameters.
According to the technical scheme of the embodiment of the invention, when the operation of triggering the display of the target display interface is detected, the area parameters of each display area in the target display page are determined, and each area parameter is sent to the corresponding embedded page, so that each embedded page adjusts the page display parameters of the embedded page according to the received area parameters, and then the corresponding embedded page is displayed in each display area in the target display interface based on the page display parameters, the technical problem that the embedded page and the target display page are not adaptive in the prior art and cause poor user experience is solved, the page display parameters of the embedded page are automatically adjusted according to the information of each display area in the target display page, and then the corresponding embedded page is displayed in the corresponding target display area based on the adjusted page display parameters, so that the adaptability between the embedded page and the target display page is realized, thereby improving the technical effect of the user experience.
On the basis of the above technical solution, it should be further noted that when it is detected that the page size of the target display page is adjusted, repeatedly performing the determination of the area parameter of each target display area in the target display page and the page embedding parameter of each embedded page, so as to adjust the page display parameter of each embedded page in the target display page based on the area parameter and the page embedding parameter.
It can be understood that, in practical applications, there are situations where the user enlarges or reduces the page size of the target presentation page, that is, enlarges or reduces the target presentation page. When the situation is detected to occur, the target display page is adjusted, at this time, the region parameters of each target display region in the target display page need to be determined again, the page display parameters of each embedded page are readjusted according to the region parameters and the page embedding parameters, and then the corresponding embedded page is displayed based on the readjusted page display parameters. The method realizes the technical effect of dynamically adjusting the page display parameters of the embedded page according to the area parameters of each display area in the target display page, so that the embedded page and the display areas are dynamically adapted when the page is displayed.
It should be further noted that if the user manually switches to another page and the other page still includes an embedded page, the page display parameters of each embedded page in the target presentation page may be determined according to the technical solution of the embodiment of the present invention. Namely, the steps are repeatedly executed, and the page display parameters of the embedded page are determined.
Example two
As an optional embodiment of the foregoing embodiment, fig. 2 is a flowchart illustrating a method for determining a target display page according to a second embodiment of the present invention.
As shown in fig. 2, the method includes:
referring to fig. 2, when an operation of triggering entry into a target page is detected, a loading state of the target page is acquired. The target page may be the target presentation page mentioned in the above embodiments, and may also be referred to as a host page. The purpose of acquiring the page state is to determine whether a target page has been acquired, and further acquire region parameters of each target display region in the target page. If the loading of the host page is completed, the layout information of the host page can be obtained, that is, the host page includes several target display areas, and what the area parameter of each target display area is. The region parameters may be the width and length of the target display region. Meanwhile, whether the external module is loaded completely can be determined, and the external module is the embedded page corresponding to the third-party system. If the loading is finished, page embedding parameters of the corresponding embedded page can be adjusted according to the region parameters of each target display region in the host page, so that page display parameters of each embedded page are obtained. Of course, if the embedded page is not loaded, then the embedded page may wait to be loaded. After the page display parameters are determined, each embedded page can be displayed in the corresponding target display area according to the page display parameters.
That is to say, the technical solution provided by the embodiment of the present invention provides a self-adaptive iframe page delivery solution, and the problem that multiple embedded pages need to be repeatedly developed or multiple host pages with different width and height parameters need to be developed to adapt to each embedded page is solved by automatically obtaining the width and height parameters of the host page and adjusting the page layout of the embedded pages. Meanwhile, whether the width and height parameters of the host page change or not can be monitored dynamically, so that when the width and height parameters change is detected, the page layout of the embedded page can be adjusted, and the embedded page is adaptive to the adjusted host page.
According to the technical scheme, the width and height parameters (area parameters of each display area in the target display page) of the actual display area of the host container (target display page) can be obtained after the host page (target display page) is loaded. An embedded iframe page (embedded page) is loaded, and the width and height parameters of the host container are transferred to the iframe page through the postMessage. And the embedded iframe page automatically adjusts according to the transmitted width and height parameters of the host container. When the browser window changes, the steps are triggered again, so that the display areas in the embedded page and the target page are matched, the problems that in the prior art, the layout needs to be manually adjusted, the layout is inaccurate, and if the number of the embedded pages is too large, a user needs to repeatedly execute the same operation, and the labor cost is high are solved. Furthermore, when the window of the browser changes, the page size of the embedded page cannot be adjusted manually, which causes a problem that each display area in the displayed embedded page and the target display page is not adapted to each other extremely.
According to the technical scheme of the embodiment of the invention, when the operation of triggering the display of the target display interface is detected, the area parameters of each display area in the target display page are determined, and each area parameter is sent to the corresponding embedded page, so that each embedded page adjusts the page display parameters of the embedded page according to the received area parameters, and then the corresponding embedded page is displayed in each display area in the target display interface based on the page display parameters, the technical problem that the embedded page and the target display page are not adaptive in the prior art and cause poor user experience is solved, the page display parameters of the embedded page are automatically adjusted according to the information of each display area in the target display page, and then the corresponding embedded page is displayed in the corresponding target display area based on the adjusted page display parameters, so that the adaptability between the embedded page and the target display page is realized, thereby improving the technical effect of the user experience.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an indicator light control device applied to a vehicle according to a third embodiment of the present invention, where the device includes: a region parameter determination module 310, a page embedding parameter determination module 320, a page display parameter determination module 330, and a target presentation page display module 340.
The area parameter determining module 310 is configured to determine an area parameter of each target display area in a target display page when an operation of triggering display of the target display page is detected; a page embedding parameter determining module 320, configured to determine page embedding parameters of an embedded page corresponding to each target display area; the page display parameter determining module 330 adjusts the page display parameters of each embedded page based on the region parameters and the page embedding parameters of each target display region; and the target display page display module 340 is configured to display the corresponding embedded page in the target display page based on each page display parameter.
On the basis of the above technical solution, the region parameter includes a length parameter and a width parameter, and the region parameter determining module includes:
the target display page loading unit is used for loading the target display page when a control triggering the display of the target display page is detected;
and the area parameter determining unit is used for determining the area height parameter and the area width parameter of each target display area in the target display page according to the page layout information of the target display page and the display area information of the target display page.
On the basis of the above technical solution, the page embedding parameter determining module is further configured to:
determining at least one embedded page associated with the target display page according to a pre-established mapping relation, and determining page embedding parameters of each embedded page; the mapping relation comprises a corresponding relation between a display page identifier and an embedded page identifier associated with the display page identifier, and the page embedding parameters comprise an initial page width parameter and an initial page height parameter of the embedded page.
On the basis of the above technical solution, the page display parameter determining module is further configured to:
and aiming at each target display area, sending the area parameters of the current target display area to an embedded page corresponding to the current target display area through a postMessage, and adjusting the page parameters based on the area parameters to obtain the page display parameters.
On the basis of the above technical solution, the page display parameter determining module is further configured to:
and scaling the page parameters of the embedded page in an equal proportion based on the region adjustment parameters to obtain the page display parameters of the embedded page.
On the basis of the technical scheme, the target display page display module is further configured to:
and embedding each embedded page into a corresponding target display area according to the page display parameters of each embedded page to obtain the target display page.
On the basis of the above technical solution, the apparatus further includes: and the monitoring module is used for repeatedly determining the area parameters of each target display area in the target display page and the page embedding parameters of each embedded page when detecting that the page size of the target display page is adjusted, so as to adjust the page display parameters of each embedded page in the target display page based on the area parameters and the page embedding parameters.
According to the technical scheme of the embodiment of the invention, when the operation of triggering the display of the target display interface is detected, the area parameters of each display area in the target display page are determined, and each area parameter is sent to the corresponding embedded page, so that each embedded page adjusts the page display parameters of the embedded page according to the received area parameters, and then the corresponding embedded page is displayed in each display area in the target display interface based on the page display parameters, the technical problem that the embedded page and the target display page are not adaptive in the prior art and cause poor user experience is solved, the page display parameters of the embedded page are automatically adjusted according to the information of each display area in the target display page, and then the corresponding embedded page is displayed in the corresponding target display area based on the adjusted page display parameters, so that the adaptability between the embedded page and the target display page is realized, thereby improving the technical effect of the user experience.
The device for determining the target display page provided by the embodiment of the invention can execute the method for determining the target display page provided by any embodiment of the invention, 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 for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary electronic device 40 suitable for use in implementing embodiments of the present invention. The electronic device 40 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 4, electronic device 40 is embodied in the form of a general purpose computing device. The components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
Bus 403 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.
Electronic device 40 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 40 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache memory 405. The electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and 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 the bus 403 by one or more data media interfaces. Memory 402 may 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 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 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. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), with one or more devices that enable a user to interact with the electronic device 40, and/or with any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may be through input/output (I/O) interface 411. Also, the electronic device 40 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) via the network adapter 412. As shown, the network adapter 412 communicates with the other modules of the electronic device 40 over the bus 403. It should be appreciated that although not shown in FIG. 4, other hardware and/or software modules may be used in conjunction with electronic device 40, 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 401 executes various functional applications and data processing by executing programs stored in the system memory 402, for example, to implement the method for determining a target presentation page provided by the embodiment of the present invention.
EXAMPLE five
The fifth embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are used for executing a method for determining a target presentation page.
The method comprises the following steps:
when the operation of triggering the display of a target display page is detected, determining the area parameters of each target display area in the target display page;
determining page embedding parameters of an embedded page corresponding to each target display area;
adjusting the page display parameters of each embedded page based on the region parameters and the page embedding parameters of each target display region;
and displaying the corresponding embedded page in the target display page based on each page display parameter.
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 embodiments 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 (10)

1. A method for determining a target presentation page, comprising:
when the operation of triggering the display of a target display page is detected, determining the area parameters of each target display area in the target display page;
determining page embedding parameters of an embedded page corresponding to each target display area;
adjusting the page display parameters of each embedded page based on the region parameters and the page embedding parameters of each target display region;
and displaying the corresponding embedded page in the target display page based on each page display parameter.
2. The method according to claim 1, wherein the area parameters comprise a length parameter and a width parameter, and the determining the area parameters of each target presentation area in the target presentation page when the operation of triggering the display of the target presentation page is detected comprises:
when a control triggering display of a target display page is detected, loading the target display page;
and determining the region height parameter and the region width parameter of each target display region in the target display page according to the page layout information of the target display page and the display region information of the target display page.
3. The method according to claim 1, wherein the determining the page embedding parameters of the embedded page corresponding to each target display area comprises:
determining at least one embedded page associated with the target display page according to a pre-established mapping relation, and determining page embedding parameters of each embedded page;
the mapping relation comprises a corresponding relation between a display page identifier and an embedded page identifier associated with the display page identifier, and the page embedding parameters comprise an initial page width parameter and an initial page height parameter of the embedded page.
4. The method of claim 1, wherein the adjusting the page display parameters of each embedded page based on the region parameters and the page embedding parameters of each target display region comprises:
and aiming at each target display area, sending the area parameters of the current target display area to an embedded page corresponding to the current target display area in a postMessage mode, and adjusting the page parameters based on the area parameters to obtain the page display parameters.
5. The method of claim 1, wherein the adjusting the page parameter based on the region parameter to obtain the page display parameter comprises:
and scaling the page parameters of the embedded page in an equal proportion based on the region adjustment parameters to obtain the page display parameters of the embedded page.
6. The method of claim 1, wherein the displaying a corresponding embedded page in the target presentation page based on each page display parameter comprises:
and embedding each embedded page into a corresponding target display area according to the page display parameters of each embedded page to obtain the target display page.
7. The method of claim 1, further comprising:
when the adjustment of the page size of the target display page is detected, repeatedly determining the area parameter of each target display area in the target display page and the page embedding parameter of each embedded page, and adjusting the page display parameter of each embedded page in the target display page based on the area parameter and the page embedding parameter.
8. An apparatus for determining a target presentation page, comprising:
the system comprises a region parameter determining module, a region parameter determining module and a region parameter determining module, wherein the region parameter determining module is used for determining the region parameters of each target display region in a target display page when the operation of triggering the display of the target display page is detected;
the page embedding parameter determining module is used for determining page embedding parameters of the embedded page corresponding to each target display area;
the page display parameter determining module is used for adjusting the page display parameters of each embedded page based on the region parameters and the page embedding parameters of each target display region;
and the target display page display module is used for displaying the corresponding embedded page in the target display page based on the display parameters of each page.
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 a method of determining a target presentation page as recited in any of claims 1-7.
10. A storage medium containing computer-executable instructions for performing a method of determining a target presentation page as claimed in any one of claims 1-7 when executed by a computer processor.
CN202110890049.9A 2021-08-04 2021-08-04 Method and device for determining target display page, electronic equipment and storage medium Pending CN113626743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110890049.9A CN113626743A (en) 2021-08-04 2021-08-04 Method and device for determining target display page, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110890049.9A CN113626743A (en) 2021-08-04 2021-08-04 Method and device for determining target display page, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113626743A true CN113626743A (en) 2021-11-09

Family

ID=78382516

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110890049.9A Pending CN113626743A (en) 2021-08-04 2021-08-04 Method and device for determining target display page, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113626743A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114296852A (en) * 2021-12-28 2022-04-08 挂号网(杭州)科技有限公司 Method and device for displaying target page, electronic equipment and storage medium
CN114489896A (en) * 2022-01-20 2022-05-13 北京有竹居网络技术有限公司 Content display method, content display device, storage medium and electronic equipment
CN114895901A (en) * 2022-03-28 2022-08-12 北京金堤科技有限公司 Page processing method and device, storage medium and electronic equipment
CN115966276A (en) * 2022-12-30 2023-04-14 中科搏锐(北京)科技有限公司 Data display method and device, electronic equipment and medium
WO2023093489A1 (en) * 2021-11-26 2023-06-01 北京字跳网络技术有限公司 Page view generation method and apparatus, electronic device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542017A (en) * 2010-12-17 2012-07-04 微软公司 Rendering source regions into target regions of web pages
CN105975576A (en) * 2016-05-04 2016-09-28 北京京东尚科信息技术有限公司 Terminal content adaptive display method and device as well as terminal
CN107589901A (en) * 2017-09-13 2018-01-16 广东欧珀移动通信有限公司 Page display method, device, terminal and computer-readable recording medium
CN111857471A (en) * 2020-07-15 2020-10-30 网易传媒科技(北京)有限公司 Page display method and device, computing equipment and medium
CN112800373A (en) * 2021-02-23 2021-05-14 广州虎牙科技有限公司 Webpage resource data generation method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102542017A (en) * 2010-12-17 2012-07-04 微软公司 Rendering source regions into target regions of web pages
CN105975576A (en) * 2016-05-04 2016-09-28 北京京东尚科信息技术有限公司 Terminal content adaptive display method and device as well as terminal
CN107589901A (en) * 2017-09-13 2018-01-16 广东欧珀移动通信有限公司 Page display method, device, terminal and computer-readable recording medium
CN111857471A (en) * 2020-07-15 2020-10-30 网易传媒科技(北京)有限公司 Page display method and device, computing equipment and medium
CN112800373A (en) * 2021-02-23 2021-05-14 广州虎牙科技有限公司 Webpage resource data generation method and device, computer equipment and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023093489A1 (en) * 2021-11-26 2023-06-01 北京字跳网络技术有限公司 Page view generation method and apparatus, electronic device and storage medium
CN114296852A (en) * 2021-12-28 2022-04-08 挂号网(杭州)科技有限公司 Method and device for displaying target page, electronic equipment and storage medium
CN114489896A (en) * 2022-01-20 2022-05-13 北京有竹居网络技术有限公司 Content display method, content display device, storage medium and electronic equipment
WO2023138464A1 (en) * 2022-01-20 2023-07-27 北京有竹居网络技术有限公司 Content display method and apparatus, and storage medium and electronic device
CN114489896B (en) * 2022-01-20 2024-04-30 北京有竹居网络技术有限公司 Content display method and device, storage medium and electronic equipment
CN114895901A (en) * 2022-03-28 2022-08-12 北京金堤科技有限公司 Page processing method and device, storage medium and electronic equipment
CN115966276A (en) * 2022-12-30 2023-04-14 中科搏锐(北京)科技有限公司 Data display method and device, electronic equipment and medium
CN115966276B (en) * 2022-12-30 2023-09-26 中科搏锐(北京)科技有限公司 Data display method, device, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN113626743A (en) Method and device for determining target display page, electronic equipment and storage medium
CN106991154B (en) Webpage rendering method and device, terminal and server
CN109618225B (en) Video frame extraction method, device, equipment and medium
CN107784011B (en) Webpage access method, client, webpage server and programmable device
CN107315729B (en) Data processing method, medium, device and computing equipment for chart
CN110032701B (en) Image display control method and device, storage medium and electronic equipment
US8726182B1 (en) Multi-stage throbber
CN112612546A (en) Page loading method and device, electronic equipment and storage medium
CN110781427A (en) Method, device, equipment and storage medium for calculating first screen time
CN107301220B (en) Method, device and equipment for data driving view and storage medium
WO2015088996A1 (en) Web page rendering on wireless devices
CN113312036B (en) Large screen display method, device and equipment of Web page and storage medium
CN109165372B (en) Webpage loading method, device, equipment and storage medium
CN110781063A (en) Method, device and equipment for measuring first screen time of webpage and storage medium
CN107862035B (en) Network reading method and device for conference record, intelligent tablet and storage medium
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN109831673B (en) Live broadcast room data processing method, device, equipment and storage medium
CN113626120A (en) Method and device for determining display page, electronic equipment and storage medium
CN108132767B (en) Application window preview method and system
CN114356475B (en) Display processing method, device, equipment and storage medium
US9001146B2 (en) Automatically determining an object display mode to display objects
CN114528509A (en) Page display processing method and device, electronic equipment and storage medium
CN114490265A (en) Data acquisition method, device, equipment and storage medium
CN114490266A (en) Data acquisition method, device, equipment and storage medium
CN113919997A (en) Watermark processing method and device, electronic equipment and 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