CN118502884A - Page warning frame positioning method and device, computer equipment and storage medium - Google Patents

Page warning frame positioning method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN118502884A
CN118502884A CN202410758354.6A CN202410758354A CN118502884A CN 118502884 A CN118502884 A CN 118502884A CN 202410758354 A CN202410758354 A CN 202410758354A CN 118502884 A CN118502884 A CN 118502884A
Authority
CN
China
Prior art keywords
page
warning frame
position information
warning
event
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
CN202410758354.6A
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.)
China Construction Bank Corp
CCB Finetech Co Ltd
Original Assignee
China Construction Bank Corp
CCB Finetech 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 China Construction Bank Corp, CCB Finetech Co Ltd filed Critical China Construction Bank Corp
Priority to CN202410758354.6A priority Critical patent/CN118502884A/en
Publication of CN118502884A publication Critical patent/CN118502884A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The present application relates to the field of data processing technology, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for positioning a page warning frame. The method comprises the following steps: creating an event instance associated with a call event in response to the call event of a target function, wherein the target function is a function for creating a page warning frame; analyzing the event instance, and acquiring warning frame position information associated with the page warning frame, wherein the warning frame position information comprises execution positions and execution stack information; acquiring a target unique identifier of a page where a calling event of the target function is located, and adding the target unique identifier to the warning frame position information; and positioning the page warning frame based on the updated warning frame position information. By adopting the method, the positioning efficiency and accuracy of the page warning frame can be improved.

Description

Page warning frame positioning method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of data processing technology, and in particular, to a method, an apparatus, a computer device, a storage medium, and a computer program product for positioning a page warning frame.
Background
Webpage warning information refers to content which presents important information, prompts or warnings to a user in the form of warnings in a webpage. Typically presented in the form of pop-up boxes for attracting the attention of the user, conveying important information, or requiring the user to take corresponding action. The use scenario of the webpage warning information includes, but is not limited to, the following cases: inputting and verifying; a warning notification; system prompts, user interactions, etc. Benefits of using web page warning information include: the user's attention can be improved: the webpage warning information is highlighted in the form of a pop-up box, so that the visual attention of a user can be attracted, and the user can be ensured to find important information in time. The interaction is flexible: the webpage warning information can realize interaction between a user and the system through a simple confirmation button and text content, so that the user can conveniently process a request or information provided by the system. Real-time feedback: the webpage warning information can convey some important information or state change to the user in real time, so that the user is ensured to know the state of the system in time.
In practice, the alert method of Javascript is often used to create a warning box through which some important information is passed to the user. Since the alert box is a native dialog provided by the browser, we cannot locate where the alert box was created in the code, so it is very cumbersome when we want to know where the alert message originated in the code, requiring manual row-by-row investigation inside the code. This situation creates a lot of confusion for the developer in locating the problem.
In the related art, a method for positioning a warning frame is generally used, in which a special identifier is added to the information of the warning frame, and when the warning frame is popped up on a page, the pop-up frame initiated in the code is positioned according to the special identifier.
However, the current method for positioning the page warning frame has the following technical problems:
the existing mode requires a developer to check the code line by line according to the identifier, so that the positioning efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a page warning frame positioning method, apparatus, computer device, computer readable storage medium, and computer program product that can improve the positioning efficiency and accuracy of page warning frames.
In a first aspect, the present application provides a method for positioning a page warning frame. The method comprises the following steps:
creating an event instance associated with a call event in response to the call event of a target function, wherein the target function is a function for creating a page warning frame;
analyzing the event instance, and acquiring warning frame position information associated with the page warning frame, wherein the warning frame position information comprises execution positions and execution stack information;
Acquiring a target unique identifier of a page where a calling event of the target function is located, and adding the target unique identifier to the warning frame position information;
And positioning the page warning frame based on the updated warning frame position information.
In one embodiment, the creating an event instance associated with a call event in response to the call event of an objective function, where the objective function is a function for creating a page warning box, before further includes:
monitoring the change of the page structure is established, and an inline frame tag in the page is obtained in response to the change of the page structure;
A unique identifier associated with the inline frame tag is generated, and the unique identifier is distributed to the inline frame tag in response to the inline frame tag loading being completed.
In one embodiment, the positioning the page warning frame based on the updated warning frame position information includes:
Sending the updated warning frame position information to a top page and outputting the information;
and positioning the page warning frame based on the warning frame position information.
In one embodiment, the sending the updated warning frame location information to a top page and outputting includes:
If the page where the calling event of the target function is located is not the top page, uploading the warning frame position information step by step from the page where the calling event is located;
And when the warning frame position information approaches a parent page and/or a top page, adding unique identifiers of the parent page and the top page of the approach to the warning frame position information.
In one embodiment, the parsing the event instance, and obtaining the warning frame location information associated with the page warning frame, where the warning frame location information includes an execution location and execution stack information includes:
Dividing the character string corresponding to the event instance into a plurality of groups;
and analyzing a plurality of groups of character strings through a preset regular matching method to obtain the position information of the warning frame.
In one embodiment, the establishing the monitoring of the page structure change, and responding to the page structure change, obtaining the inline frame tag in the page includes:
If the page structure changes, directly reading the inline frame tag;
And if the page result is unchanged, reading the inline frame tag after a preset time interval.
In a second aspect, the application further provides a page warning frame positioning device. The device comprises:
An instance creation module for creating an event instance associated with a call event in response to the call event of an objective function, the objective function being a function for creating a page warning frame;
The instance analysis module is used for analyzing the event instance and acquiring warning frame position information associated with the page warning frame, wherein the warning frame position information comprises execution positions and execution stack information;
the page identification module is used for acquiring a target unique identifier of a page where a calling event of the target function is located and adding the target unique identifier to the warning frame position information;
And the warning frame positioning module is used for positioning the page warning frame based on the updated warning frame position information.
In one embodiment, before the instance creation module, the method further includes:
the page monitoring module is used for establishing monitoring on the change of the page structure and responding to the change of the page structure to acquire an inline frame tag in the page;
An identification configuration module for generating a unique identifier associated with the inline frame tag, and distributing the unique identifier to the inline frame tag in response to the inline frame tag loading being completed.
In one embodiment, the warning frame positioning module includes:
The information uploading module is used for sending the updated warning frame position information to a top page and outputting the information;
and the positioning module is used for positioning the page warning frame based on the warning frame position information.
In one embodiment, the information uploading module includes:
The multi-stage uploading module is used for uploading the position information of the warning frame step by step from the page where the calling event of the target function is located if the page where the calling event is located is not the top page;
and the multi-level information adding module is used for adding the unique identifiers of the parent level page and the top level page of the approach to the warning frame position information when the warning frame position information approaches the parent level page and/or the top level page.
In one embodiment, the instance parsing module includes:
an instance segmentation module, configured to segment a character string corresponding to the event instance into multiple groups;
And the grouping analysis module is used for analyzing a plurality of groups of character strings through a preset regular matching method to obtain the position information of the warning frame.
In one embodiment, the page listening module includes:
the monitoring response module is used for directly reading the inline frame tag if the page structure changes;
and the overtime response module is used for reading the inline frame tag after a preset time interval if the page result is unchanged.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of a page warning frame positioning method according to any one of the embodiments of the first aspect when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of a method for positioning a page warning frame according to any one of the embodiments of the first aspect.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of a method for locating a page warning box according to any one of the embodiments of the first aspect.
The page warning frame positioning method, the page warning frame positioning device, the page warning frame positioning computer device, the page warning frame positioning storage medium and the page warning frame positioning computer program product can achieve the beneficial effects of corresponding technical problems in the background art through deduction through technical features in the claims:
The application provides a page warning frame positioning method, which comprises the steps of responding to a calling event of a target function, and creating an event instance associated with the calling event, wherein the target function is a function for creating a page warning frame; analyzing the event instance, and acquiring warning frame position information associated with the page warning frame, wherein the warning frame position information comprises execution positions and execution stack information; acquiring a target unique identifier of a page where a calling event of the target function is located, and adding the target unique identifier to the warning frame position information; and positioning the page warning frame based on the updated warning frame position information. In implementation, by monitoring the page, the call event of the objective function can be responded in a proxy or other modes, so that when the page warning frame is created, an event instance corresponding to the call event is generated, the position information of the warning frame can be acquired through analyzing the event instance, and finally the unique identifier of the page can be added to the position information of the warning frame, thereby realizing the positioning of the page warning frame, being beneficial to timely responding to the generation event of the page warning frame through page monitoring, accurately positioning the position information of the page warning frame through the unique identifier, and improving the positioning efficiency.
Drawings
FIG. 1 is an application environment diagram of a page warning frame positioning method in one embodiment;
FIG. 2 is a first flow chart illustrating a method for positioning a page warning frame according to one embodiment;
FIG. 3 is a second flow chart of a method for positioning a page warning frame according to another embodiment;
FIG. 4 is a third flow chart illustrating a method for positioning a page warning frame according to another embodiment;
FIG. 5 is a fourth flowchart of a method for positioning a page warning frame according to another embodiment;
FIG. 6 is a fifth flowchart of a method for positioning a page warning frame according to another embodiment;
FIG. 7 is a sixth flowchart of a method for positioning a page warning frame according to another embodiment;
FIG. 8 is a block diagram of a page warning frame positioning device in one embodiment;
fig. 9 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In the related art, a method for positioning a warning frame is generally used, in which a special identifier is added to the information of the warning frame, and when the warning frame is popped up on a page, the pop-up frame initiated in the code is positioned according to the special identifier.
However, the current method for positioning the page warning frame has the following technical problems:
the existing mode requires a developer to check the code line by line according to the identifier, so that the positioning efficiency is low.
Based on this, the page warning frame positioning method provided by the embodiment of the application can be applied to an application environment as shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, where the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a method for positioning a page warning frame is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
step 202: in response to a call event of an objective function, an event instance associated with the call event is created.
The objective function is a function for creating a page warning box, and may be an alert function native to Javascript.
Illustratively, the terminal may, in response to a call event of the objective function, create an event instance associated with the call event. The method can be realized in a proxy mode, and the proxy alert method function flow can firstly save the alert function of the Javascript as a variable; a proxy method is created for the global alert method such that the alert proxy method is executed when the alert method is executed, thereby responding to call events of the objective function.
Step 204: analyzing the event instance, and acquiring warning frame position information associated with the page warning frame.
The warning frame position information comprises execution positions and execution stack information. The code execution position refers to the position where the code currently being executed by the program is located. During program execution, the computer executes code piece by piece, i.e., sequentially from top to bottom, in the order of the instruction set. The execution location may be used to indicate which line of code the program is currently executing to help the developer track the execution flow of the program, handle errors and debug. The execution stack is an important data structure used by the program runtime to manage function call and return addresses. A stack is a last-in first-out (LIFO) data structure that stores information such as local variables, function parameters, and return addresses when a function is called. Each function call pushes a frame (frame) in the execution stack, stores the information of the function, pops the frame out of the stack when the function returns, and resumes execution of the function of the previous layer. The execution stack information can show the call chain and function call relation of the program, and help a developer track the function call stack and locate errors and performance problems.
For example, the terminal may parse the event instance to obtain alert box location information associated with the page alert box.
Step 206: and acquiring a target unique identifier of a page where the calling event of the target function is located, and adding the target unique identifier to the warning frame position information.
For example, the terminal may acquire the target unique identifier of the page where the call event of the target function is located, and add the target unique identifier to the warning frame location information.
Step 208: and positioning the page warning frame based on the updated warning frame position information.
For example, the terminal may perform positioning of the page warning frame based on the updated warning frame position information.
In the page warning frame positioning method, the technical characteristics in the embodiment are combined to carry out reasonable deduction, so that the beneficial effects of solving the technical problems in the background technology can be realized:
The embodiment of the application provides a page warning frame positioning method, which comprises the steps of responding to a calling event of a target function, and creating an event instance associated with the calling event, wherein the target function is a function for creating a page warning frame; analyzing the event instance, and acquiring warning frame position information associated with the page warning frame, wherein the warning frame position information comprises execution positions and execution stack information; acquiring a target unique identifier of a page where a calling event of the target function is located, and adding the target unique identifier to the warning frame position information; and positioning the page warning frame based on the updated warning frame position information. In implementation, by monitoring the page, the call event of the objective function can be responded in a proxy or other modes, so that when the page warning frame is created, an event instance corresponding to the call event is generated, the position information of the warning frame can be acquired through analyzing the event instance, and finally the unique identifier of the page can be added to the position information of the warning frame, thereby realizing the positioning of the page warning frame, being beneficial to timely responding to the generation event of the page warning frame through page monitoring, accurately positioning the position information of the page warning frame through the unique identifier, and improving the positioning efficiency.
In one embodiment, as shown in fig. 3, before the step 202, the method further includes:
step 302: and monitoring the change of the page structure, and responding to the change of the page structure to acquire the inline frame tag in the page.
Wherein an inline frame tag (iframe) may refer to an element in HTML that may be used to embed another separate HTML document in the current web page. The content of other webpages can be displayed in the page through the inline frame tag, so that nested display of the page is realized.
For example, the terminal may establish a snoop for changes in the page structure, and obtain inline frame tags within the page in response to the changes in the page structure.
Step 304: a unique identifier associated with the inline frame tag is generated, and the unique identifier is distributed to the inline frame tag in response to the inline frame tag loading being completed.
For example, a terminal may generate a unique identifier associated with the inline frame tag, distribute the unique identifier to the inline frame tag in response to the inline frame tag loading being completed
In this embodiment, in the preprocessing, the change of the page structure is monitored, the unique identifier is configured for the inline frame tag, and the unique identifier is distributed after the page loading is completed, so that accurate positioning by the unique identifier is facilitated.
In one embodiment, as shown in fig. 4, the step 208 includes:
Step 402: and sending the updated warning frame position information to a top page and outputting the information.
The top page refers to the top page in the current browser window or tab page, that is, the page currently seen by the user. In a browser window or tab page, multiple nested iframes or frames may be included, while the "top page" refers to the outermost layer of the entire page, not including any nested pages.
For example, the terminal may send the updated position information of the warning frame to a top page and output the updated position information.
Step 404: and positioning the page warning frame based on the warning frame position information.
For example, the terminal may perform positioning of the page warning frame based on the warning frame position information.
In this embodiment, after the updated position information of the warning frame is sent to the top page for output, the efficiency of positioning the position of the warning frame is improved.
In one embodiment, as shown in fig. 5, the step 402 includes:
Step 502: and if the page where the calling event of the target function is located is not the top page, uploading the warning frame position information step by step from the page where the calling event is located.
If the page of the calling event of the objective function is not the top page, the warning frame position information is uploaded step by step from the page of the calling event.
Step 504: and when the warning frame position information approaches a parent page and/or a top page, adding unique identifiers of the parent page and the top page of the approach to the warning frame position information.
Where a parent page refers to the most recent parent page that contains the current page. In Web development, parent objects in JavaScript may be used to access parent pages of a current page, typically for communication and operation between nested pages. For example, an iframe page may obtain some properties or perform some operations of the parent page that contains it through a parent object.
Illustratively, when the alert box location information approaches a parent page and/or a top page, the parent page of the approach and a unique identifier of the top page are added to the alert box location information.
In this embodiment, when there are multiple levels of pages, in the process of uploading the warning frame position information step by step, the unique identifier of each level of the path is added to the warning frame position information one by one, which is helpful to improve the positioning efficiency of the page warning frame in a complex page structure.
In one embodiment, as shown in fig. 6, the step 204 includes:
Step 602: and dividing the character string corresponding to the event instance into a plurality of groups.
Step 604: and analyzing a plurality of groups of character strings through a preset regular matching method to obtain the position information of the warning frame.
The regular matching method can refer to a powerful text matching and processing tool for performing pattern matching in a character string.
The terminal can analyze the plurality of groups of character strings through a preset regular matching method to obtain the position information of the warning frame.
In this embodiment, the warning frame position information is grouped, which is helpful for improving the analysis efficiency of the warning frame position information.
In one embodiment, as shown in fig. 7, the step 302 includes:
Step 702: if the page structure changes, directly reading the inline frame tag;
Step 704: and if the page result is unchanged, reading the inline frame tag after a preset time interval.
In this embodiment, the triggering is automatically performed by a timing mechanism, which is helpful to maintain flexibility of page monitoring.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a page warning frame positioning device for realizing the above-mentioned page warning frame positioning method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more page warning frame positioning devices provided below may refer to the limitation of a page warning frame positioning method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 8, there is provided a page warning frame positioning apparatus, including: an instance creation module, an instance analysis module, a page identification module and a warning frame positioning module, wherein:
An instance creation module for creating an event instance associated with a call event in response to the call event of an objective function, the objective function being a function for creating a page warning frame;
The instance analysis module is used for analyzing the event instance and acquiring warning frame position information associated with the page warning frame, wherein the warning frame position information comprises execution positions and execution stack information;
the page identification module is used for acquiring a target unique identifier of a page where a calling event of the target function is located and adding the target unique identifier to the warning frame position information;
And the warning frame positioning module is used for positioning the page warning frame based on the updated warning frame position information.
In one embodiment, before the instance creation module, the method further includes:
the page monitoring module is used for establishing monitoring on the change of the page structure and responding to the change of the page structure to acquire an inline frame tag in the page;
An identification configuration module for generating a unique identifier associated with the inline frame tag, and distributing the unique identifier to the inline frame tag in response to the inline frame tag loading being completed.
In one embodiment, the warning frame positioning module includes:
The information uploading module is used for sending the updated warning frame position information to a top page and outputting the information;
and the positioning module is used for positioning the page warning frame based on the warning frame position information.
In one embodiment, the information uploading module includes:
The multi-stage uploading module is used for uploading the position information of the warning frame step by step from the page where the calling event of the target function is located if the page where the calling event is located is not the top page;
and the multi-level information adding module is used for adding the unique identifiers of the parent level page and the top level page of the approach to the warning frame position information when the warning frame position information approaches the parent level page and/or the top level page.
In one embodiment, the instance parsing module includes:
an instance segmentation module, configured to segment a character string corresponding to the event instance into multiple groups;
And the grouping analysis module is used for analyzing a plurality of groups of character strings through a preset regular matching method to obtain the position information of the warning frame.
In one embodiment, the page listening module includes:
the monitoring response module is used for directly reading the inline frame tag if the page structure changes;
and the overtime response module is used for reading the inline frame tag after a preset time interval if the page result is unchanged.
The modules in the page warning frame positioning device can be all or partially realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure thereof may be as shown in fig. 9. The computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input means. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program when executed by a processor implements a page warning frame positioning method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 9 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards of the related country and region.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method for positioning a page warning frame, the method comprising:
creating an event instance associated with a call event in response to the call event of a target function, wherein the target function is a function for creating a page warning frame;
analyzing the event instance, and acquiring warning frame position information associated with the page warning frame, wherein the warning frame position information comprises execution positions and execution stack information;
Acquiring a target unique identifier of a page where a calling event of the target function is located, and adding the target unique identifier to the warning frame position information to obtain updated warning frame position information;
And positioning the page warning frame based on the updated warning frame position information.
2. The method of claim 1, wherein the creating an event instance associated with a call event in response to the call event of an objective function, the objective function being a function used to create a page warning box, further comprising, prior to:
monitoring the change of the page structure is established, and an inline frame tag in the page is obtained in response to the change of the page structure;
A unique identifier associated with the inline frame tag is generated, and the unique identifier is distributed to the inline frame tag in response to the inline frame tag loading being completed.
3. The method of claim 1, wherein the locating the page warning frame based on the updated warning frame location information comprises:
Sending the updated warning frame position information to a top page and outputting the information;
and positioning the page warning frame based on the warning frame position information.
4. The method of claim 3, wherein said sending the updated alert box location information to a top page and outputting comprises:
If the page where the calling event of the target function is located is not the top page, uploading the warning frame position information step by step from the page where the calling event is located;
And when the warning frame position information approaches a parent page and/or a top page, adding unique identifiers of the parent page and the top page of the approach to the warning frame position information.
5. The method of any one of claims 1 to 4, wherein the parsing the event instance to obtain alert box location information associated with the page alert box, the alert box location information including execution location and execution stack information includes:
Dividing the character string corresponding to the event instance into a plurality of groups;
and analyzing a plurality of groups of character strings through a preset regular matching method to obtain the position information of the warning frame.
6. The method of claim 2, wherein establishing a snoop for a change in page structure, and wherein obtaining an inline frame tag within a page in response to a change in page structure comprises:
If the page structure changes, directly reading the inline frame tag;
And if the page result is unchanged, reading the inline frame tag after a preset time interval.
7. A page warning frame positioning apparatus, the apparatus comprising:
An instance creation module for creating an event instance associated with a call event in response to the call event of an objective function, the objective function being a function for creating a page warning frame;
The instance analysis module is used for analyzing the event instance and acquiring warning frame position information associated with the page warning frame, wherein the warning frame position information comprises execution positions and execution stack information;
the page identification module is used for acquiring a target unique identifier of a page where a calling event of the target function is located and adding the target unique identifier to the warning frame position information;
And the warning frame positioning module is used for positioning the page warning frame based on the updated warning frame position information.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202410758354.6A 2024-06-13 2024-06-13 Page warning frame positioning method and device, computer equipment and storage medium Pending CN118502884A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410758354.6A CN118502884A (en) 2024-06-13 2024-06-13 Page warning frame positioning method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410758354.6A CN118502884A (en) 2024-06-13 2024-06-13 Page warning frame positioning method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118502884A true CN118502884A (en) 2024-08-16

Family

ID=92233253

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410758354.6A Pending CN118502884A (en) 2024-06-13 2024-06-13 Page warning frame positioning method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118502884A (en)

Similar Documents

Publication Publication Date Title
CN109901834B (en) Document page generation method, device, computer equipment and storage medium
US20150205847A1 (en) Database generation from a spreadsheet
US20220300698A1 (en) Techniques for web framework detection
US20130339834A1 (en) Dynamic presentation of a results set by a form-based software application
JP6505849B2 (en) Generation of element identifier
CN116258597A (en) Document processing method, device, computer equipment and storage medium
US9230022B1 (en) Customizable result sets for application program interfaces
CN118502884A (en) Page warning frame positioning method and device, computer equipment and storage medium
CN118277970A (en) Code processing method, apparatus, device, storage medium, and computer program product
CN117493113B (en) Data reporting method, device, computer equipment and storage medium
CN115878929A (en) Webpage rendering method and device
CN118245699A (en) Page acquisition method, device, equipment, storage medium and computer program product
CN117612192A (en) Electronic drawing information identification method, system, electronic equipment and storage medium
CN117130606A (en) Front-end page configuration method, front-end page configuration device, computer equipment and storage medium
CN116860576A (en) Method, device, computer equipment and storage medium for recording operation log
CN117591110A (en) Page generation method, device, equipment, storage medium and program product
CN117312619A (en) Character string processing method, device, computer equipment and storage medium
CN117389601A (en) Financial software influence traceability analysis method, device, equipment and storage medium
CN116431260A (en) Interface rendering method and device based on data model driving and computer equipment
CN116893811A (en) Processing method and device of man-machine interaction event, computer equipment and storage medium
CN118332214A (en) Page exception handling method, device, computer equipment and storage medium
CN116432229A (en) Browser screen capture prevention method, device, computer equipment, medium and program product
CN116737216A (en) Method, apparatus, device, storage medium and program product for managing technical resources
CN117453548A (en) Code module information determining method, apparatus, computer device and storage medium
CN117539932A (en) Exception information display method, device, computer 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