Method and system for loading module based on JavaScript
A module loading and cyclic loading technology, which is applied in the direction of program loading/starting, program control devices, etc., can solve the problems of poor code readability, low maintainability, and low reusability, and achieve good readability and high practicality High performance, applicability and reusability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0045] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.
[0046] Such as figure 1 As shown, it is a schematic flowchart of a JavaScript-based module loading method provided by an embodiment of the present invention, and the method includes:
[0047] S101. Obtain multiple html modules and combination information between multiple html modules, and store them in a configuration file as configuration data;
[0048] S102, calling the loading function through JavaScript code, and reading the configuration data from the configuration file;
[0049] S103, according to the configuration data, cyclically load multiple html modules, and respectively obtain the files to be loaded of each html module;
[0050] S104, extracting the content to be loaded and the position information of ...
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