Element positioning method and device, electronic equipment and storage medium
A positioning method and element technology, applied in the Internet field, can solve problems such as increased workload, error-prone, time-consuming and labor-intensive problems, and achieve the effect of improving efficiency and improving experience
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0029] figure 1 It is a schematic flowchart of an element positioning method provided by the embodiment of the present invention. This embodiment is applicable to the situation of determining the position information of the elements in the page in the source file during the page debugging stage. This method can be determined by the page's The positioning device is implemented, and the device may be implemented in the form of software and / or hardware.
[0030] Such as figure 1 As described above, the positioning method of the page in the embodiment of the present invention specifically includes the following steps:
[0031] S110. When a trigger operation is detected, determine a target element corresponding to the trigger operation.
[0032] Wherein, the trigger operation refers to a click operation on one or more elements on the detected page. The manner of detecting the trigger operation may be to detect the trigger operation of the enter function key, or to detect the tri...
Embodiment 2
[0049] figure 2 It is a schematic flowchart of an element positioning method provided by the embodiment of the present invention. The embodiment of the present invention is based on the optional solution of the above embodiment, and adds the preset element attribute information to the source file to be compiled. Step, the specific content of this step will be described in detail in the embodiment of the present invention. Wherein, technical terms that are the same as or similar to those in the foregoing embodiments will not be described in detail.
[0050] Such as figure 2 As described above, the positioning method of the page in the embodiment of the present invention specifically includes the following steps:
[0051] S210. When the compiler compiles each element to be compiled in the page, write the preset element attribute information of each element to be compiled into the source file to be compiled.
[0052] It should be noted that, in the application scenario in th...
Embodiment 3
[0071] image 3 It is a schematic diagram of an element positioning method provided by an embodiment of the present invention. The embodiment of the present invention is an optional embodiment of the above-mentioned embodiment. In the embodiment of the present invention, the page and the compiler of the browser of the webpage or mobile terminal are set in linkage, so that when an element is selected on the page, it can be quickly located The location of page elements in the source file improves the efficiency of debugging as a whole. Among them, the editor refers to a tool for writing software source files such as Vscode Webstorm Idea. The source file refers to the text content written in the editor. Elements refer to the tags used in the Vue framework, which is a superset of the tags provided by native browsers. Element attribute information refers to attribute information such as the row, column, and file absolute address of the current element in the editor. Browser / ope...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


