CN114721758A - Page positioning method and device, electronic equipment and storage medium - Google Patents

Page positioning method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114721758A
CN114721758A CN202210328007.0A CN202210328007A CN114721758A CN 114721758 A CN114721758 A CN 114721758A CN 202210328007 A CN202210328007 A CN 202210328007A CN 114721758 A CN114721758 A CN 114721758A
Authority
CN
China
Prior art keywords
container
current
page
data
acquiring
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
CN202210328007.0A
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.)
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 CN202210328007.0A priority Critical patent/CN114721758A/en
Publication of CN114721758A publication Critical patent/CN114721758A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Abstract

The present disclosure provides a page positioning method, device, electronic device and storage medium, which relate to the technical field of data processing, in particular to the technical field of computer software, and include: responding to the click operation of the user, and judging whether the click operation generates page jump or container switching; if so, acquiring page data of the current page; determining whether a first container exists in the current page according to the page data; responding to the first container in the current page, and acquiring container data of all the first containers in the current page; determining a current first container according to the container data; determining the identifier of the current first container as a current identifier; and positioning the current first container according to the current identifier.

Description

Page positioning method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing technology, and more particularly, to the field of computer software technology.
Background
The existing page positioning method can only position to the page level, and when a plurality of first containers are arranged in a page, the current first container cannot be accurately positioned, and the accuracy of page positioning is not high enough.
Disclosure of Invention
The disclosure provides a page positioning method, a page positioning device, electronic equipment and a storage medium.
According to an aspect of the present disclosure, there is provided a page positioning method, including:
responding to a user click operation, and judging whether the click operation generates page skipping or container switching;
if so, acquiring page data of the current page;
determining whether a first container exists in the current page according to the page data;
responding to the first container in the current page, and acquiring container data of all the first containers in the current page;
determining a current first container according to the container data;
determining the identifier of the current first container as a current identifier;
and positioning the current first container according to the current identifier.
According to another aspect of the present disclosure, there is provided a page positioning apparatus including:
the judging module is used for responding to the click operation of a user and judging whether the click operation generates page jump or container switching;
the acquisition module is used for acquiring page data of the current page if the page data is generated;
the processing module is used for determining whether a first container exists in the current page according to the page data;
the acquisition module is further used for responding to the first container in the current page and acquiring container data of all the first containers in the current page;
the processing module is further configured to determine a current first container according to the container data;
the processing module is further configured to determine the identifier of the current first container as a current identifier;
the processing module is further configured to locate the current first container according to the current identifier.
According to another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform any of the methods described above.
According to another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any of the above.
According to another aspect of the disclosure, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the method of any of the above.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flowchart of a page positioning method provided in an embodiment of the present disclosure;
fig. 2 is a schematic flow chart illustrating setting of an identifier for a page or a first container according to an embodiment of the disclosure;
FIG. 3 is a schematic flow chart diagram illustrating another page positioning method according to an embodiment of the disclosure;
FIG. 4 is a schematic flow chart diagram for determining a current path provided by an embodiment of the present disclosure;
FIG. 5 is a schematic flow chart diagram for determining a current first container provided by an embodiment of the present disclosure;
FIG. 6 is a schematic flow chart diagram illustrating another process for determining a current first container provided in accordance with an embodiment of the present disclosure;
FIG. 7 is a schematic flow chart diagram for determining a current operating position provided in accordance with an embodiment of the present disclosure;
FIG. 8 is a schematic flowchart of another page positioning method provided in accordance with an embodiment of the present disclosure;
FIG. 9 is a schematic diagram of setting an identification for a page or a first container provided in accordance with an embodiment of the present disclosure;
FIG. 10 is a schematic diagram of determining a current path provided in accordance with an embodiment of the present disclosure;
FIG. 11 is a schematic illustration of a determination of a current first container provided in accordance with an embodiment of the present disclosure;
FIG. 12 is a schematic illustration of another determination of a current first container provided in accordance with an embodiment of the present disclosure;
FIG. 13 is a schematic structural diagram of a page positioning apparatus provided in accordance with an embodiment of the present disclosure;
FIG. 14 is a block diagram of an electronic device for implementing a page positioning method of an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In order to improve the accuracy of positioning a page, so as to further position a container in the page, as shown in fig. 1, an embodiment of the present disclosure provides a page positioning method, including:
step 101, responding to a user click operation, and judging whether the click operation generates page jump or container switching.
Responding to the click operation of a user, and judging whether the click operation generates page jump or container switching;
for example, if the user clicks a jump button of the home page, the click operation generates a page jump;
for another example, if the user clicks the "my" button in the bottom column of the top page, the "my" container is switched to, the page does not jump, but the container is switched to "my", then the container switch is generated by this clicking operation.
And 102, if so, acquiring the page data of the current page.
If the user click operation generates page jump or container switching, the page data of the current page is acquired after the page jump.
And 103, determining whether a first container exists in the current page according to the page data.
Determining whether a first container exists in the current page according to the acquired page data of the current page;
for example, in android, the first container is Fragment (a container in android).
And step 104, responding to the first container existing in the current page, and acquiring container data of all the first containers in the current page.
If the first container exists in the current page, container data of all the first containers in the current page are obtained;
for example, in android, container data for all fragments in the current page is obtained.
Step 105, determining the current first container according to the container data.
Determining the first container displayed currently as a current first container according to the container data;
for example, in android, when a user opens a page, switches to a first container, and then switches to another first container in the first container, the second first container is the current first container, so that it is necessary to determine which first container is the current first container according to container data.
And 106, determining the identifier of the current first container as the current identifier.
The identity of the current first container is determined as the current identity.
And 107, positioning the current first container according to the current identifier.
By determining whether the first container exists in the current page or not, after the first container exists in the current page, the container data is obtained, the current first container is determined according to the container data, and finally the identifier of the current first container is determined as the current identifier, so that the page can be positioned to the container level, and the accuracy of positioning the page is remarkably improved.
As shown in fig. 2, in step 101, before determining whether the click operation generates a page jump or a container switch, in an embodiment, the method further includes:
step 201, setting identifiers corresponding to each page and each first container one by one.
As shown in fig. 9, a page a, a page B, a page C, a first container D, a first container E, a page F, a page G, and a first container H are provided in an application, each page and each first container are provided with a page code corresponding to each page one to one, that is, a flag, the page code of the page a is "a 001", the page code of the page B is "a 002", the page code of the page C is "a 003", the page code of the first container D is "a 004", the page code of the first container E is "a 005", the page code of the page F is "a 006", the page code of the page G is "a 007", the page code of the first container H is "a 008", and each page and each first container are provided with a corresponding page code, the page can be positioned to the container level, and the accuracy of positioning the page is obviously improved.
As shown in fig. 3, after determining whether the first container exists in the current page according to the page data in step 103, in an embodiment, the method further includes:
step 301, in response to that no first container exists in the current page, acquiring an identifier of the current page as a current identifier.
If the first container does not exist in the current page, the identifier of the current page is directly obtained to be used as the current identifier, and if the first container does not exist in the current page, the identifier of the current page is used as the current identifier, so that the stability of page positioning is improved.
As shown in fig. 4, after obtaining the current identifier in step 106 or step 301, in an embodiment, the method further includes:
step 401, obtaining a history path.
And step 402, merging the historical path and the current identifier to obtain a current path.
As shown in fig. 10, when the user enters a first page, that is, page a, the historical path is empty, the current page is page a, the identifier of page a is a001, and the current identifier is a001, the current path is obtained by merging the historical path and the current identifier: "a 001";
when the user clicks in the page a to jump to the page B, the historical path is "a 001" at this time, the current page is the page B, the identifier of the page B is a002, the current identifier is a002, and the current path at this time is obtained by merging the historical path and the current identifier: "a 001, a 002";
when a user clicks in the page B to switch to the first container C in the page B, the historical path is "a 001, a 002", the current page is the page B, but the first container C exists in the page B, the container data of all the first containers in the page B is obtained, the current first container is the first container C according to the container data, the identifier of the first container C is a003, the current identifier is a003, and the current path is obtained by merging the historical path and the current identifier: "a 001, a002, a 003";
the current path can represent a jump path of a user when the user reaches the current page or the current first container, the operation behavior of the user can be clearly known, and the current path can enable the page to be positioned more accurately.
As shown in fig. 5, in step 105, determining a current first container according to the container data includes, in an embodiment:
step 501, all first containers containing first specific attributes in the current page are obtained.
For example, in android, a first container is obtained in which all visibility attributes in the current page are visible.
Step 502, determining a first container with the highest second specific attribute in all first containers containing the first specific attribute as a current first container.
For example, in android, the first container with the highest hierarchical property in the first container in which all visibility properties in the current page are visible is determined as the current first container;
when the container switching is performed in the page, other first containers may be further nested in the first container, even a plurality of layers of first containers are nested in the first container, and after the first container is switched by a user, the visibility attribute of the first container becomes visible, and the hierarchy of the first container nested in the first container is higher than that of the nested first container, so that the first container with all the visibility attributes visible in the current page is obtained, the first container with the highest hierarchy attribute in the first container with all the visibility attributes visible in the current page is determined as the current first container, the current first container can be accurately determined, and the accuracy of positioning the page is remarkably improved;
for example, as shown in fig. 11, the current page is a page B, the page B includes 3 first containers, which are a first container C, a first container D, and a first container E, and according to the container data of the three first containers, the visibility attributes of the first container C and the first container D are visible, the visibility attribute of the first container E is invisible, the level attribute of the first container C is 1, and the level attribute of the first container D is 2, so that the first container D is finally determined as the current first container, and the identifier "a 004" corresponding to the first container D is the current identifier.
As shown in fig. 6, in step 105, determining a current first container according to the container data includes, in an embodiment:
step 601, obtaining container data of a current container.
Step 602, determining whether the current container is the first container according to the container data.
Step 603, if not, acquiring the container data of the parent container of the current container.
Step 604, determining whether the container is a first container according to the container data until the first container is found, and determining the first container as a current first container.
For example, as shown in fig. 12, View (a container in android) and View wGroup (a container in android) in fig. 12 are both containers different from Fragment in android, and in fig. 12, the current container is View groupm and View groupm is not Fragment, so that obtaining a parent container of View groupm, that is, View wk, and View wk is not Fragment, continues to obtain a parent container of View k, that is, Fragment d, and Fragment d is Fragment, and determines Fragment d as the current first container, so that the current first container can be accurately determined, and accuracy of locating a page is significantly improved.
As shown in fig. 7, in step 101, before determining whether the click operation generates a page jump or a container switch, in an embodiment, the method further includes:
step 701, responding to a user click operation, and acquiring a click position corresponding to the user click operation.
Step 702, determining whether the click position has a pre-marked operation position.
The corresponding operation positions, such as a jump button and a switch button, are set in advance for some operable areas, and the corresponding operation positions are set for the areas, so that the corresponding operation of the user can be recorded.
And step 703, if the operation position exists, determining the operation position as the current operation position.
When the current operation position is determined, the operation position and the corresponding path may be bound, for example, when the user clicks the skip button B in the page a to skip to the page C, the operation position of the skip button B and the identifier of the page a in the current path are bound, in addition, data such as a timestamp and an operation type when the user clicks the skip button B may be bound together with the identifier of the page a in the current path, so that the user operation may be accurately recorded, and how the user enters the data of the current page is increased.
As shown in fig. 8, an embodiment of the present disclosure provides another page positioning method, including:
step 101, responding to a user click operation, and judging whether the click operation generates page jump or container switching;
step 102, if so, acquiring page data of the current page;
103, judging whether a first container exists in the current page according to the page data;
if the first container does not exist in the current page, executing step 301 to complete the positioning of the page;
step 301, in response to that no first container exists in the current page, acquiring an identifier of the current page as a current identifier;
if the first container exists in the current page, continuing to execute the step 104;
step 104, responding to the first container in the current page, and acquiring container data of all the first containers in the current page;
after step 104 is executed, the container data of all the first containers in the current page are acquired, and step 105 is continuously executed;
step 105, determining a current first container according to the container data;
step 106, determining the identifier of the current first container as a current identifier;
and 107, positioning the current first container according to the current identifier.
An embodiment of the present disclosure provides a page positioning apparatus, as shown in fig. 13, the apparatus includes:
the judging module 10 is configured to respond to a user click operation and judge whether the click operation generates page skip or container switching;
the acquisition module 20 is configured to, if the page data is generated, acquire page data of the current page;
the processing module 30 is configured to determine whether a first container exists in the current page according to the page data;
the acquisition module 20 is further configured to respond to that a first container exists in the current page, and acquire container data of all first containers in the current page;
the processing module 30 is further configured to determine a current first container according to the container data;
the processing module 30 is further configured to determine the identifier of the current first container as a current identifier;
the processing module 30 is further configured to locate the current first container according to the current identifier.
The processing module 30 is further configured to set, for each page and each first container, an identifier corresponding to each page and each first container.
The acquiring module 20 is further configured to, in response to that the first container does not exist in the current page, acquire an identifier of the current page as the current identifier.
The acquisition module 20 is further configured to acquire a historical path;
the processing module 30 is further configured to merge the historical path and the current identifier to obtain a current path.
The acquiring module 20 is further configured to acquire all first containers containing the first specific attribute in the current page;
the processing module 30 is further configured to determine a first container with a highest second specific attribute in all first containers containing the first specific attribute as a current first container.
The acquisition module 20 is further configured to acquire container data of a current container;
the judging module 10 is further configured to judge whether the current container is a first container according to the container data;
the acquisition module 20 is further configured to, if not, obtain container data of a parent container of the current container;
the processing module 30 is further configured to determine whether the container is a first container according to the container data until the first container is found, and determine that the first container is a current first container.
The acquisition module 20 is further configured to respond to a user click operation and acquire a click position corresponding to the user click operation;
the judging module 10 is further configured to judge whether a pre-marked operation position exists in the click position;
the processing module 30 is further configured to determine the operation position as the current operation position if the operation position exists.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, and do not violate the good customs of the public order.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
FIG. 14 shows a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 14, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data required for the operation of the device 800 can also be stored. The calculation unit 801, the ROM802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 801 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 801 performs the respective methods and processes described above, such as the page positioning method. For example, in some embodiments, the page location method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto device 800 via ROM802 and/or communications unit 809. When the computer program is loaded into RAM803 and executed by the computing unit 801, one or more steps of the page positioning method described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the page locating method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (17)

1. A page positioning method comprises the following steps:
responding to a user click operation, and judging whether the click operation generates page skipping or container switching;
if so, acquiring page data of the current page;
determining whether a first container exists in the current page according to the page data;
responding to the first container in the current page, and acquiring container data of all the first containers in the current page;
determining a current first container according to the container data;
determining the identity of the current first container as a current identity.
And positioning the current first container according to the current identifier.
2. The method of claim 1, wherein before determining whether the click operation causes a page jump or a container switch, further comprising:
and setting identifications corresponding to each page and each first container one by one.
3. The method of claim 1, after determining whether a first container exists in a current page according to the page data, further comprising:
and responding to the situation that the first container does not exist in the current page, and acquiring the identifier of the current page as the current identifier.
4. The method of claim 1 or 3, after obtaining the current identity, further comprising:
acquiring a historical path;
and combining the historical path and the current identifier to obtain a current path.
5. The method of claim 1, the determining a current first container from the container data, comprising:
acquiring all first containers containing first specific attributes in a current page;
and determining a first container with the highest second specific attribute in all first containers containing the first specific attribute as the current first container.
6. The method of claim 1, the determining a current first container from the container data, comprising:
acquiring container data of a current container;
judging whether the current container is a first container or not according to the container data;
if not, acquiring the container data of the parent container of the current container;
and judging whether the container is the first container according to the container data until the first container is found, and determining the first container as the current first container.
7. The method of claim 1, wherein before determining whether the click operation causes a page jump or a container switch, further comprising:
responding to the click operation of the user, and acquiring a click position corresponding to the click operation of the user;
judging whether the click position has a pre-marked operation position;
and if so, determining the operation position as the current operation position.
8. A page positioning apparatus, comprising:
the judging module is used for responding to the click operation of a user and judging whether the click operation generates page jump or container switching;
the acquisition module is used for acquiring page data of the current page if the page data is generated;
the processing module is used for determining whether a first container exists in the current page according to the page data;
the acquisition module is further used for responding to the first container in the current page and acquiring container data of all the first containers in the current page;
the processing module is further used for determining a current first container according to the container data;
the processing module is further configured to determine the identifier of the current first container as a current identifier;
the processing module is further configured to locate the current first container according to the current identifier.
9. The apparatus of claim 8, comprising:
the processing module is further configured to set, for each page and each first container, an identifier corresponding to each page and each first container one to one.
10. The apparatus of claim 8, comprising:
the acquisition module is further configured to acquire, in response to that the first container does not exist in the current page, an identifier of the current page as a current identifier.
11. The apparatus of claim 8 or 10, comprising:
the acquisition module is also used for acquiring a historical path;
the processing module is further configured to merge the historical path and the current identifier to obtain a current path.
12. The apparatus of claim 8, comprising:
the acquisition module is further used for acquiring all first containers containing the first specific attributes in the current page;
the processing module is further configured to determine, as the current first container, a first container with a highest second specific attribute among all first containers containing the first specific attribute.
13. The apparatus of claim 8, comprising:
the acquisition module is also used for acquiring container data of the current container;
the judging module is further used for judging whether the current container is a first container according to the container data;
the acquisition module is further used for acquiring container data of a parent container of the current container if the current container is not the parent container;
the processing module is further configured to determine whether the container is a first container according to the container data until the first container is found, and determine that the first container is a current first container.
14. The apparatus of claim 8, comprising:
the acquisition module is also used for responding to the click operation of the user and acquiring the click position corresponding to the click operation of the user;
the judging module is also used for judging whether the click position has a pre-marked operation position;
and the processing module is also used for determining the operation position as the current operation position if the operation position exists.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1-7.
CN202210328007.0A 2022-03-29 2022-03-29 Page positioning method and device, electronic equipment and storage medium Pending CN114721758A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210328007.0A CN114721758A (en) 2022-03-29 2022-03-29 Page positioning method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210328007.0A CN114721758A (en) 2022-03-29 2022-03-29 Page positioning method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114721758A true CN114721758A (en) 2022-07-08

Family

ID=82240453

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210328007.0A Pending CN114721758A (en) 2022-03-29 2022-03-29 Page positioning method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114721758A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103177096A (en) * 2013-03-15 2013-06-26 百度在线网络技术(北京)有限公司 Page element positioning method based on text attribute and page element positioning device based on text attribute
CN105824540A (en) * 2016-03-16 2016-08-03 百度在线网络技术(北京)有限公司 Method and apparatus for positioning page contents
CN106598435A (en) * 2016-12-16 2017-04-26 深圳Tcl新技术有限公司 Page locating method and apparatus
CN110069734A (en) * 2017-08-16 2019-07-30 阿里巴巴集团控股有限公司 A kind of page assembly shows method and apparatus
US20200042578A1 (en) * 2018-08-01 2020-02-06 Citrix Systems, Inc. Document Object Model (DOM) Element Location Platform
CN112100548A (en) * 2020-11-17 2020-12-18 浙江口碑网络技术有限公司 Page positioning display method and device
CN112199620A (en) * 2020-11-03 2021-01-08 百度时代网络技术(北京)有限公司 Page operation method and device, electronic equipment and storage medium
CN113688336A (en) * 2020-05-18 2021-11-23 北京沃东天骏信息技术有限公司 Page data loading method and loading device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103177096A (en) * 2013-03-15 2013-06-26 百度在线网络技术(北京)有限公司 Page element positioning method based on text attribute and page element positioning device based on text attribute
CN105824540A (en) * 2016-03-16 2016-08-03 百度在线网络技术(北京)有限公司 Method and apparatus for positioning page contents
CN106598435A (en) * 2016-12-16 2017-04-26 深圳Tcl新技术有限公司 Page locating method and apparatus
CN110069734A (en) * 2017-08-16 2019-07-30 阿里巴巴集团控股有限公司 A kind of page assembly shows method and apparatus
US20200042578A1 (en) * 2018-08-01 2020-02-06 Citrix Systems, Inc. Document Object Model (DOM) Element Location Platform
CN113688336A (en) * 2020-05-18 2021-11-23 北京沃东天骏信息技术有限公司 Page data loading method and loading device
CN112199620A (en) * 2020-11-03 2021-01-08 百度时代网络技术(北京)有限公司 Page operation method and device, electronic equipment and storage medium
CN112100548A (en) * 2020-11-17 2020-12-18 浙江口碑网络技术有限公司 Page positioning display method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曹瑞燕;: "基于页面布局技术的网页设计研究", 辽宁经济职业技术学院.辽宁经济管理干部学院学报, no. 03, 15 June 2020 (2020-06-15) *

Similar Documents

Publication Publication Date Title
CN113342345A (en) Operator fusion method and device of deep learning framework
CN110889056A (en) Page marking method and device
CN112100302A (en) Map information point display method, device, equipment and readable storage medium
CN114330249A (en) Information editing method, device, equipment and storage medium
CN114721758A (en) Page positioning method and device, electronic equipment and storage medium
CN114138397A (en) Page display method and device, electronic equipment and storage medium
CN114036249A (en) Map data processing method, map data processing device, electronic equipment and medium
CN113656533A (en) Tree control processing method and device and electronic equipment
CN113190766A (en) Path planning method and device, electronic equipment and storage medium
CN113138760A (en) Page generation method and device, electronic equipment and medium
CN113051510A (en) Interactive processing method and device, front-end equipment, back-end equipment and storage medium
CN113391870A (en) Page jump method and device, electronic equipment and readable storage medium
CN112948517A (en) Area position calibration method and device and electronic equipment
CN112988932A (en) High-precision map labeling method, device, equipment, readable storage medium and product
CN115202538B (en) Menu configuration method and device, electronic equipment and storage medium
CN114329205A (en) Method and device for pushing information
CN115455128A (en) Electronic fence remaining white processing method and device
CN113343005A (en) Searching method, searching device, electronic equipment and readable storage medium
CN116436883A (en) Method, device, electronic equipment and readable storage medium for link transmission
CN113342413A (en) Method, apparatus, device, medium and product for processing components
CN115373659A (en) Business system construction method and device, electronic equipment and storage medium
CN113836291A (en) Data processing method, device, equipment and storage medium
CN115098607A (en) Map data fusion method and device, electronic equipment and storage medium
CN113901095A (en) Data processing method, device, equipment and storage medium
CN114459494A (en) Reachable area acquisition 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