A method, device, equipment and medium for online coding to take effect dynamically
A dynamic and coding technology, applied in the computer field, can solve problems such as inability to dynamically compile, unable to meet business needs, and low efficiency, and achieve the effect of efficient software development and quick and easy implementation and deployment
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] The present embodiment provides a method for online encoding to take effect dynamically, comprising the following steps:
[0034] S1, such as figure 1 As shown, the enhanced code written by the listening event of the foreground control is accepted, and the enhanced code includes a pre-agreed string used to obtain page parameters, and the code fragment of the enhanced code, the control ID or code block name, the code fragment type (The code fragment type is intended to indicate whether the enhanced code fragment is a code fragment that acts on control events, or a general code block fragment that can be called by the enhanced code) passed as a parameter to the background;
[0035] S2, such as figure 2 As shown in the figure, after receiving the parameters in the background, the regular matching rules are used to replace the strings used to obtain page parameters in the code fragment with the values of the corresponding page controls in order, that is, parameters of t...
Embodiment 2
[0044] In this embodiment, a device for dynamically validating online coding is provided, such as Figure 5 shown, including:
[0045] The foreground control is used to accept the enhanced code written by listening to the event, the enhanced code includes a pre-agreed string used to obtain page parameters, and the code fragment of the enhanced code, the control ID or code block name, and the code fragment type are used as Parameters are passed to the background;
[0046] The parameter replacement module is used to replace the strings used to obtain page parameters in the code fragment with the values of the corresponding page controls in order after receiving the parameters in the background, using regular matching rules to obtain the replacement enhanced code; in order The substitution is: replace the first parameter with args.get(0), replace the second parameter with args.get(1), and so on.
[0047] The class class name generation module is used to query the latest versi...
Embodiment 3
[0056] This embodiment provides an electronic device, such as Image 6 As shown, a memory, a processor and a computer program stored in the memory and running on the processor are included. When the processor executes the computer program, any one of the implementation manners of the first embodiment can be implemented.
[0057] Since the electronic device introduced in this embodiment is the device used to implement the method in the first embodiment of the present application, based on the method introduced in the first embodiment of the present application, those skilled in the art can understand the electronic device in this embodiment. The specific implementation manner and various modifications thereof, so how the electronic device implements the methods in the embodiments of the present application will not be described in detail here. As long as the devices used by those skilled in the art to implement the methods in the embodiments of the present application fall with...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com