Page processing method and device, electronic equipment and storage medium
Through automated processing and modular identification technology, the problems of long development cycle, low efficiency and complex maintenance caused by manual coding in traditional front-end development are solved, and efficient, flexible and stable page development and updates are achieved.
Patent Information
- Application Number
- CN202411897876.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-04-25
AI Technical Summary
Traditional front-end development relies on manual coding, resulting in long development cycles, tight resources, high costs, low development efficiency, difficult code reuse, complex maintenance and prone to errors, affecting project progress and product quality.
By automatically obtaining and analyzing the target page code, modular processing is performed and specifying identifiers are added to each module code, automatic modification and update of the page is achieved. After the target identifier contained in the content entered on the user interaction page is recognized, the corresponding target module changes to generate the modified target page.
It improves the efficiency of page updates, reduces the need for manual coding, and through automated code adjustments and real-time user interaction, it greatly improves development flexibility and user experience, reduces human errors, improves code quality, and ensures the stability and maintainability of the application.
Smart Images

Figure CN119883253A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of large model technology, specifically to the field of front-end technology based on large models, and especially to page processing methods, devices, electronic devices and storage media. Background Art
[0002] In the current front-end development field, technical implementation mainly relies on manual coding by developers. Although this traditional method gives the development process extremely high flexibility and customization, it also brings some challenges. First of all, manual coding is a time-consuming process. Developers need to invest a lot of time to write, test and debug HTML (Hypertext Markup Language), CSS (Cascading Style Sheets) and JavaScript (a lightweight, interpreted programming language) code. This long coding work not only increases the development cycle of the project, but may also lead to a shortage of development resources and an increase in development costs.
[0003] Secondly, manual coding limits development efficiency to a certain extent. Since each project needs to write code from scratch, it is difficult to reuse code during the development process. For scenarios where the front-end page needs to be modified multiple times, manual coding greatly increases the workload of developers and increases the complexity of code maintenance. In addition, manual coding may also cause developers to make mistakes when writing and maintaining code, which will not only affect the progress of the project, but also the quality of the final product. Summary of the invention
[0004] The present disclosure provides a page processing method, device, electronic device and storage medium.
[0005] According to one aspect of the present disclosure, a page processing method is provided, the method comprising:
[0006] Get the page code corresponding to the target page and obtain the target page code;
[0007] Modularizing the target page code to obtain a page code of at least one module, and adding a designated identifier to the page code of the at least one module;
[0008] If a user interaction page trigger instruction is received, the user interaction page is displayed in the target page;
[0009] The target identifier contained in the content inputted by the user interaction page is identified, and the target module corresponding to the target identifier is modified according to the target identifier to obtain a modified target page.
[0010] According to another aspect of the present disclosure, there is provided a page processing device, comprising:
[0011] The acquisition module is used to acquire the page code corresponding to the target page and obtain the target page code;
[0012] A processing module, used for performing modular processing on the target page code to obtain a page code of at least one module, and adding a specified identifier to the page code of the at least one module;
[0013] A display module, configured to display the user interaction page in the target page if a user interaction page triggering instruction is received;
[0014] The modification module is used to identify the target identifier contained in the content input by the user interaction page, and modify the target module corresponding to the target identifier according to the target identifier to obtain a modified target page.
[0015] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0016] at least one processor; and
[0017] a memory communicatively connected to the at least one processor; wherein,
[0018] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method in any of the above technical solutions.
[0019] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods described in the above technical solutions.
[0020] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements any one of the methods described in the above technical solutions when executed by a processor.
[0021] The present disclosure provides a page processing method, device, equipment and storage medium. The present disclosure automatically obtains and analyzes the page code of the target page, modularizes it, and adds specified tags to each module code to identify each module, so as to facilitate the subsequent response to the user's interactive instructions and display a customized interactive interface. When the user enters content in the interactive page and triggers the corresponding target identifier, these target identifiers are intelligently identified and the page code behind them is automatically and accurately modified. This process realizes visual page modification, which not only improves the efficiency of page updates and reduces the need for manual coding, but also greatly improves development flexibility and user experience through automated code adjustment and real-time user interaction, making dynamic adjustment and personalized settings of the page faster and more intuitive. In addition, this automated modification and update mechanism also helps to reduce human errors and improve code quality, thereby ensuring the stability and maintainability of the application while maintaining efficient development.
[0022] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.
[0024] Figure 1 is a schematic diagram of the steps of the page processing method in the embodiment of the present disclosure;
[0025] Figure 2 yes Figure 1 Flow chart of step S104;
[0026] Figure 3 yes Figure 2 Flow chart of step S203;
[0027] Figure 4 It is a schematic diagram of the overall flow of the page processing method in the embodiment of the present disclosure;
[0028] Figure 5 A principle block diagram of a page processing device in an embodiment of the present disclosure;
[0029] Figure 6 It is a block diagram of an electronic device used to implement the page processing method of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0031] The present disclosure provides a page processing method, see Figure 1 As shown, Figure 1 : is a schematic diagram of the steps of the page processing method in the embodiment of the present disclosure, which can be applied to the server side, and includes:
[0032] Step S101, obtaining a page code corresponding to a target page, and obtaining the target page code.
[0033] Specifically, "obtaining the page code corresponding to the target page" refers to identifying and extracting the source code of the web page that needs to be modified or updated. This process usually involves analyzing the web page to determine its structure and content, and then converting this information into editable code form. Once the code of the target page is obtained, it can be further processed, such as by adding specified tags after modular processing to identify different modules in the page. In this way, developers or automated tools can operate on specific parts of the page, such as modifying the style, adding functions, or optimizing performance, thereby achieving precise control and customization of the page. Obtaining the target page code is the basis for realizing automated modification and updating of the front-end page. It provides the necessary raw data for subsequent page code analysis, user interaction, and dynamic adjustment.
[0034] Step S102 : modularize the target page code to obtain the page code of at least one module, and add a designated identifier to the page code of at least one module.
[0035] Specifically, modularizing the target page code means breaking down the source code of a web page into smaller, logically independent parts, which are called modules. Each module is responsible for a specific function or display element of the page, such as a navigation bar, content area, or sidebar. Adding specified tags means adding specific identifiers to the code of these modules, which serve as unique identifiers of the modules so that they can be easily identified and referenced by the system or developers. To achieve this process, it is usually necessary to analyze the structure of the page, identify the boundaries of each module, and then embed tags in the corresponding code segments. In this way, when a specific part of the page needs to be updated or modified, the corresponding module can be directly located and operated through the tag, thereby improving the maintainability and scalability of the code, making page updates and functional enhancements more efficient and accurate.
[0036] In this way, by modularizing the target page code, each module is responsible for a specific function or display element. This structure makes the code clearer, easier to understand and manage. Adding designated tags to each module provides a unique identifier for each module, making it easier to quickly locate and operate a specific module during the development process.
[0037] Step S103: if a user interaction page triggering instruction is received, the user interaction page is displayed in the target page.
[0038] Specifically, "user interaction page trigger instructions" refer to specific actions or requests issued by users through controls or inputs on the interface, such as button clicks, form submissions, etc. When "user interaction page trigger instructions are received", these instructions are identified and the corresponding functions are executed. This process involves the interaction between the front-end interface and the back-end logic, where the front-end interface is responsible for collecting user inputs, while the back-end logic processes these inputs and returns corresponding results. To implement this solution, it is usually necessary to embed event listeners in the target page to capture user interaction actions and dynamically display the user interaction page through JavaScript or other front-end technologies. This may include popping up dialog boxes, displaying new content areas, or updating a part of the page. In this way, users can interact with web pages in real time, and the web pages can provide instant feedback based on user input, thereby enhancing the user experience and the dynamic interactivity of the page.
[0039] In this way, if a user interaction page trigger instruction is received, the user interaction page is displayed in the target page, which greatly improves the user experience and the interactivity of the page. When the user performs a specific operation on the page, such as clicking a button or submitting a form, the relevant user interaction page is responded to and displayed immediately, which not only speeds up the feedback speed of the user operation, but also enables the user to interact with the page content more intuitively and conveniently. In this way, not only user satisfaction is improved, but also the usability of the page is enhanced, and the dynamic nature of the page is improved. These improvements together promote a smoother and more attractive user interaction experience.
[0040] Step S104, identifying the target identifier contained in the content input by the user interaction page, and modifying the target module corresponding to the target identifier according to the target identifier to obtain a modified target page.
[0041] Specifically, "content entered by the user on the interactive page" refers to the data submitted by the user through a form, search box or other interactive elements, which may contain specific "target identifiers", that is, tags used to identify specific modules or elements on the page. The process of implementing this solution includes: listening to the user's input, parsing its content to identify these target identifiers, and then locating the target module based on these target identifiers. Once the identifier is identified, predefined changes or updates are automatically applied to the page code of the target module. This may include modifying the HTML structure, CSS style, or JavaScript logic to reflect changes in user input. In this way, the page can dynamically respond to user operations, achieve personalized content display or function adjustment, and thus provide a more customized and responsive user experience.
[0042] In this way, by accurately identifying the target identifier contained in the user's input content on the interactive page, and intelligently changing the page code of the target module accordingly, the dynamic update of the web page is achieved. In this way, not only the interactivity of the web page is enhanced, so that the user operation can be reflected in the page display immediately, thereby improving the user experience, but also the development efficiency is improved, allowing for rapid response to user needs and market changes. In addition, this method optimizes code management, simplifies code maintenance and upgrades through modularization and identification, and supports personalized customization, so that the page can display customized content based on the user's specific input. These advantages together promote a more flexible, efficient and user-friendly web page development and operation process.
[0043] The present disclosure provides a page processing method, apparatus, device and storage medium. The present disclosure automatically obtains and analyzes the page code of the target page, modularizes it, and adds specified tags to each module code to identify each module, so as to facilitate the subsequent response to the user's interactive instructions and display a customized interactive interface. When the user enters content in the interactive page and triggers the corresponding target identifier, these target identifiers are intelligently identified and the page code behind them is automatically and accurately modified. This process realizes visual page modification, which not only improves the efficiency of page updates and reduces the need for manual coding, but also greatly improves development flexibility and user experience through automated code adjustment and real-time user interaction, making dynamic adjustment and personalized settings of the page faster and more intuitive. In addition, this automated modification and update mechanism also helps to reduce human errors and improve code quality, thereby ensuring the stability and maintainability of the application while maintaining efficient development.
[0044] In some optional embodiments, modularizing the target page code to obtain the page code of at least one module includes:
[0045] The target page code is modularized according to the page display layout using a large model to obtain the page code of at least one module.
[0046] Specifically, after obtaining the target page code, the large model is called, and a prompt word is input in the prompt word input interface of the large model, where the prompt word can be, for example: please identify and extract the modules in the page according to the page display layout of the target page code. After the large model receives the input prompt word, it first identifies the layout structure of the page, which can include, for example, a header, a navigation bar, a content area, a sidebar, and a footer. Subsequently, according to different functions to be implemented, the area code corresponding to each function is defined as a module, and according to the identified modules, the target page code is divided into multiple independent module code blocks, so that the page code of each module can be obtained.
[0047] To facilitate understanding of the solution of the disclosed embodiment, an example is given below. Assuming that there is currently a product display page on an e-commerce website, in order to divide the page code corresponding to the page, it can be implemented in the following manner: first obtain the original page code corresponding to the product display page, and then enter "Please identify and extract the modules in the page according to the page display layout of the target page code" in the prompt word input interface of the large model. After receiving the prompt word, the large model will analyze the layout of the product display page and identify modules such as product lists, product details, user reviews, and purchase buttons. Then, the large model separates these modules from the original page code, so that the page code corresponding to each module can be obtained.
[0048] In this way, by using a large model to modularize the target page code, the page code of at least one module is obtained according to the page display layout. Since the modularization makes each module independent and has clear functions, developers can modify and optimize the code more efficiently, while reducing the coupling between different modules and reducing the risk of code conflicts and errors. In addition, this modularization method also facilitates code reuse, speeds up development, improves development efficiency, and makes page updates and function iterations more flexible and rapid.
[0049] In some optional embodiments, see Figure 2 , Figure 2 yes Figure 1 Flow diagram of step S104. Step S104, identifying the target identifier contained in the content input by the user interaction page, and modifying the target module corresponding to the target identifier according to the target identifier to obtain a modified target page, including:
[0050] Step S201, parse the content input by the user interaction page to obtain a parsing result.
[0051] Specifically, the user enters text information in the user interaction page and submits it, wherein the text information contains the target identifier to be operated and the operation instructions of the module corresponding to the target identifier. Subsequently, the content entered by the user on the interactive page is captured by the front-end event listener, and the input content is segmented, parsed and semantically understood using natural language processing technology, so that the parsing results can be obtained. The parsing results will be presented in the form of structured data, which may include keywords, operation instructions and other information.
[0052] Step S202: identifying and extracting a target identifier from the parsing result according to a preset matching rule.
[0053] The preset matching rule is used to identify the target identifier contained in the user input content. When extracting the target identifier, the keywords contained in the parsing result are matched with the keyword library preset in the matching rule, and the matched keywords are used as the target identifier.
[0054] Step S203: modify the target module corresponding to the target identifier according to the target identifier to obtain a modified target page.
[0055] Specifically, since each module corresponds to a designated identifier, once the target identifier is identified, the target module corresponding to the target identifier can be obtained. By changing the page code of the target module, such as updating interface elements, filling in data, etc., the modified target page can be finally obtained.
[0056] In this way, by receiving the user's input content on the interactive page and identifying the target identifier, the page code of the target module can be accurately located and dynamically changed, thereby quickly generating an updated page. This method can not only improve the real-time nature of user interaction, so that the page can instantly reflect the user's personalized needs and operations, allowing the user to adjust the page content according to their preferences, and enhancing the flexibility and customizability of the page, but also reduce human errors through this automated process, ensure the accuracy and consistency of page updates, and provide users with a more intuitive, responsive and personalized web page experience.
[0057] In some optional embodiments, see Figure 3 , Figure 3 yes Figure 2 Flow diagram of step S203. Step S203, modifying the target module corresponding to the target identifier according to the target identifier to obtain a modified target page, including:
[0058] Step S301: identifying and acquiring a page code of a target module from page codes of at least one module according to a target identifier.
[0059] Specifically, after obtaining the target identifier, the page code associated with the target identifier is extracted through the target identifier. For example, a regular expression or a parsing algorithm can be used to match and extract the code segment associated with the identifier. Alternatively, the code segmentation function of a build tool (such as Webpack) is used to manage and locate module codes, and custom parsing tools or scripts are developed, which can identify module identifiers according to predefined rules or patterns and accurately retrieve the corresponding module code from the page code.
[0060] Step S302: obtaining a modified page code according to the page code of the target module and the operation instruction contained in the user input content.
[0061] The "modified page code" refers to the code after the original page code is adjusted according to the operation instructions contained in the user input content. These adjustments may include adding new functions, modifying styles, fixing defects or updating content. After obtaining the page code corresponding to the target module, natural language processing (NLP) technology can be used to parse and understand the operation instructions contained in the user input content. The page code of the target module is modified according to the instructions of the operation instructions, so that the modified page code can be obtained.
[0062] Step S303, obtaining a modified target page according to the modified page code.
[0063] Specifically, "modified page code" refers to the updated or optimized web page source code, which may include changes to HTML, CSS and JavaScript to implement new features, improve the user interface or fix existing problems. "Target page" refers to the specific web page that the user visits in the browser, which is presented after the page code is parsed and rendered.
[0064] After obtaining the modified page code, it can be compiled through a build tool to obtain the modified target page.
[0065] In this way, this solution locates the page code according to the target identifier, and then accurately modifies the code according to the operation instructions contained in the user input content, and finally generates an updated target page. In this way, the dynamic interaction ability of the web page is improved, so that the user's operation can be reflected in the page display immediately, enhancing the user experience. In addition, since developers can quickly locate and modify the code of a specific module without manually searching and editing the entire page, this method improves development efficiency. At the same time, the modular structure makes management and updating easier, enhancing the maintainability of the code.
[0066] In some optional embodiments, obtaining a modified page code according to the page code of the target module and the operation instruction included in the user input content includes:
[0067] The large model is used to obtain the modified page code according to the page code of the target module and the operation instructions contained in the user input content.
[0068] Specifically, in order to obtain the modified page code, the large model is called and a prompt word is input in the prompt word input interface of the large model, where the prompt word can be, for example, "please modify the page of a certain module according to a certain instruction." After the large model receives the input prompt word, it intelligently analyzes and modifies the code of the target module according to the change requirements contained in the instruction, such as adding new functions, adjusting styles, or fixing defects, to obtain the modified page code. This process not only improves the efficiency of code updates, but also reduces human errors, allowing the page to quickly respond to user needs and market changes.
[0069] In this way, the modified page code is obtained based on the operation instructions contained in the user input content and the page code corresponding to the target module using the large model. The application of the large model enables the page to respond more accurately to the operation instructions contained in the user input content, and realizes fast and accurate code modification. This not only greatly improves development efficiency and shortens the development cycle, but also enhances the interactivity and flexibility of the web page, so that the user interface can adapt to user needs more dynamically. In addition, the intelligent analysis and processing capabilities of the large model help reduce human errors and improve code quality, thereby improving user experience and the overall performance of the page.
[0070] In some optional embodiments, obtaining a modified target page according to the modified page code includes:
[0071] The modified page code replaces the original page code of the target module, and the modified page code is compiled to obtain a modified target page.
[0072] Specifically, "modified page code" refers to the code adjusted for a specific module of a web page according to the operation instructions contained in the user input content or the analysis results of the large model. "Original page code of the target module" refers to the initial code of the web page module before any modification. After obtaining the modified page code, the original page code of the target module is replaced by the modified page code, so that the update of the web page can be reflected in the correct module. Then, the modified page code is compiled, and a compiler or a construction tool such as webpack (front-end engineering tool), vite (front-end engineering tool) can be used for compilation. After compilation, the compiler packages the processed code into a format that can be run in a browser. Finally, the compiled code is deployed to the server, and the user will see the updated content when accessing the web page. This method ensures that the update of the web page can be implemented quickly and accurately, and through the compilation process, the execution efficiency of the code and the performance of the web page are improved.
[0073] In this way, by replacing the original page code of the target module with the modified page code and compiling to obtain the modified target page, this method ensures the accuracy and timeliness of page updates, allowing users to immediately see the results of their operations.
[0074] See also Figure 4 , Figure 4 : is a schematic diagram of the overall flow of the page processing method in the embodiment of the present disclosure. Specifically, the flow chart of this solution includes:
[0075] S401, modularize the target page code to obtain the page code of at least one module, and add a specified mark to each module.
[0076] S402: If a user interaction page triggering instruction is received, the user interaction page is displayed in the target page.
[0077] S403: Identify a target identifier from the content input from the user interaction page.
[0078] S404, modifying the page code of the target module according to the target identifier.
[0079] S405, compile the modified page code to obtain a modified target page.
[0080] Since the contents of the embodiments of the present disclosure are similar to the aforementioned contents and have been explained in detail in the aforementioned contents, they will not be repeated here.
[0081] The following describes an apparatus embodiment of the present application, which can be used to execute the page processing method in the above-mentioned embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the above-mentioned embodiment of the page processing method of the present application.
[0082] The present disclosure also provides a page processing device 500, such as Figure 5 As shown, including:
[0083] The acquisition module 501 is used to acquire the page code corresponding to the target page and obtain the target page code;
[0084] The processing module 502 is used to perform modular processing on the target page code to obtain the page code of at least one module, and add a specified identifier to the page code of at least one module;
[0085] Display module 503, for displaying the user interaction page in the target page if a user interaction page triggering instruction is received;
[0086] The modification module 504 is used to identify the target identifier contained in the content input by the user in the interactive page, and modify the target module corresponding to the target identifier according to the target identifier to obtain a modified target page.
[0087] In some optional embodiments, the processing module 502 performs modular processing on the target page code to obtain a page code of at least one module, including:
[0088] The target page code is modularized according to the page display layout using a large model to obtain the page code of at least one module.
[0089] In some optional embodiments, the modification module 504 identifies the target identifier contained in the content input by the user interaction page, and modifies the target module corresponding to the target identifier according to the target identifier to obtain a modified target page, including:
[0090] Parse the content input by the user interaction page to obtain the parsing result;
[0091] According to the preset matching rules, the target identifier is identified and extracted from the parsing results;
[0092] According to the target identifier, the target module corresponding to the target identifier is modified to obtain a modified target page.
[0093] In some optional embodiments, the modifying module 504 modifies the target module corresponding to the target identifier according to the target identifier to obtain a modified target page, including:
[0094] Identify and obtain the page code of the target module from the page code of at least one module according to the target identifier;
[0095] According to the page code of the target module and the operation instructions contained in the user input content, a modified page code is obtained;
[0096] According to the modified page code, the modified target page is obtained.
[0097] In some optional embodiments, the modification module 504 obtains the modified page code according to the page code of the target module and the operation instruction included in the user input content, including:
[0098] The large model is used to obtain the modified page code according to the page code of the target module and the operation instructions contained in the user input content.
[0099] In some optional embodiments, the modifying module 504 obtains a modified target page according to the modified page code, including:
[0100] The modified page code replaces the original page code of the target module, and the modified page code is compiled to obtain a modified target page.
[0101] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0102] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
[0103] Figure 6 A schematic block diagram of an example electronic device 600 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can 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 merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0104] like Figure 6As shown, the electronic device 600 includes a computing unit 601, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 602 or a computer program loaded from a storage unit 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 can also be stored. The computing unit 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0105] A number of components in the device 600 are connected to the I / O interface 605, including: an input unit 606, such as a keyboard, a mouse, etc.; an output unit 607, such as various types of displays, speakers, etc.; a storage unit 608, such as a disk, an optical disk, etc.; and a communication unit 609, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0106] The computing unit 601 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 601 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, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 601 performs the various methods and processes described above, such as page processing methods. For example, in some embodiments, the page processing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 608. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 600 via ROM 602 and / or communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the applet distribution described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the page processing method in any other appropriate manner (e.g., by means of firmware).
[0107] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0108] The program code for implementing the method 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, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0109] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A 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, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0110] To provide interaction with a user, the systems and techniques described herein 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 the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the 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 input, voice input, or tactile input).
[0111] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0112] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0113] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0114] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A page processing method, the method comprising: Get the page code corresponding to the target page and obtain the target page code; Modularizing the target page code to obtain a page code of at least one module, and adding a designated identifier to the page code of the at least one module; If a user interaction page trigger instruction is received, the user interaction page is displayed in the target page; The target identifier contained in the content inputted by the user interaction page is identified, and the target module corresponding to the target identifier is modified according to the target identifier to obtain a modified target page.
2. The method according to claim 1, wherein: The modularizing of the target page code to obtain the page code of at least one module includes: The target page code is modularized according to the page display layout using a large model to obtain the page code of the at least one module.
3. The method according to claim 1, wherein: The identifying the target identifier contained in the content input by the user interaction page, and modifying the target module corresponding to the target identifier according to the target identifier to obtain a modified target page, includes: Parsing the content inputted by the user interaction page to obtain a parsing result; According to a preset matching rule, identifying and extracting a target identifier from the parsing result; The target module corresponding to the target identifier is modified according to the target identifier to obtain a modified target page.
4. The method according to claim 3, wherein: The step of modifying the target module corresponding to the target identifier according to the target identifier to obtain a modified target page includes: Identify and obtain the page code of the target module from the page code of the at least one module according to the target identifier; Obtaining a modified page code according to the page code of the target module and the operation instruction contained in the user input content; A modified target page is obtained according to the modified page code.
5. The method according to claim 4, wherein: The step of obtaining a modified page code according to the page code of the target module and the operation instruction contained in the user input content includes: The modified page code is obtained by using a large model according to the page code of the target module and the operation instructions contained in the user input content.
6. The method according to claim 4, wherein: The step of obtaining a modified target page according to the modified page code comprises: The modified page code replaces the original page code of the target module, and the modified page code is compiled to obtain the modified target page.
7. A page processing device, comprising: The acquisition module is used to acquire the page code corresponding to the target page and obtain the target page code; A processing module, used for performing modular processing on the target page code to obtain a page code of at least one module, and adding a specified identifier to the page code of the at least one module; A display module, configured to display the user interaction page in the target page if a user interaction page triggering instruction is received; The modification module is used to identify the target identifier contained in the content input by the user interaction page, and modify the target module corresponding to the target identifier according to the target identifier to obtain a modified target page.
8. The device according to claim 7, wherein: The processing module performs modular processing on the target page code to obtain a page code of at least one module, including: The target page code is modularized according to the page display layout using a large model to obtain the page code of the at least one module.
9. The device according to claim 7, wherein: The modification module identifies the target identifier contained in the content input by the user interaction page, and modifies the target module corresponding to the target identifier according to the target identifier to obtain a modified target page, including: Parsing the content inputted by the user interaction page to obtain a parsing result; According to a preset matching rule, identifying and extracting a target identifier from the parsing result; The target module corresponding to the target identifier is modified according to the target identifier to obtain a modified target page.
10. The device according to claim 9, wherein: The modifying module modifies the target module corresponding to the target identifier according to the target identifier to obtain a modified target page, including: Identify and obtain the page code of the target module from the page code of the at least one module according to the target identifier; Obtaining a modified page code according to the page code of the target module and the operation instruction contained in the user input content; A modified target page is obtained according to the modified page code.
11. The device according to claim 10, wherein: The modifying module obtains a modified page code according to the page code of the target module and the operation instruction included in the user input content, including: The modified page code is obtained by using a large model according to the page code of the target module and the operation instructions contained in the user input content.
12. The device according to claim 10, wherein: The modifying module obtains a modified target page according to the modified page code, including: The modified page code replaces the original page code of the target module, and the modified page code is compiled to obtain the modified target page.
13. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
14. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
15. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.
Citation Information
Cited By
Page updating method and device based on model, computer equipment and storage medium
CN120873310A
Visual code generation method and device for business travel service page
CN121050722A