Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Module analysis method and device

A technology for generating modules and loading modules, applied in the field of module parsing, can solve the problems of inability to reduce requests, complex module merging, and large amount of code, so as to achieve the effect of speeding up page response, simplifying module merging process, and reducing returned files

Active Publication Date: 2018-12-11
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If no id is added, only the last module definition is recognized, which makes module merging more complicated and prone to problems
[0011] 2. The management of module id is relatively broad, and there is no guarantee that a module id corresponds to a module
When parsing, use a module id to reflect the corresponding complete url according to the configuration file and other information, and then match it with the module, which increases the difficulty of module parsing and increases the risk of module confusion
[0012] 3. The update of the module is more complicated, and it is difficult for developers to select the required version of the module
[0013] 4. Modules are not cached locally, requests cannot be reduced, and bandwidth waste is increased
[0014] 5. The amount of code is large, and there is no support for loading css files

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Module analysis method and device
  • Module analysis method and device
  • Module analysis method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0044] The modular development method is an important method in program development, especially for complex projects, it is often necessary to call multiple modules with required functions. For example, in the front-end javascript development process, the project is often divided into multiple js modules such as public component modules and business code modules for develo...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention provides a module analysis method and device, the process of module merging can be simplified, and the difficulty of analyzing modules is reduced. At the same time, theupdate of the modules can be controlled, and different versions of the modules are provided. The module analysis method of the embodiment of the present invention includes a step of generating a module link according to an ID and a version number of the module and generating a module acquiring request based on the module link, a step of sending the module acquiring request, and a step of loadingthe module to obtain an external interface of the module.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a module analysis method and device. Background technique [0002] Front-end development of mobile web is a very important link in Internet technology. The various forms of pages presented in front of users are finally completed by front-end development. The work that needs to be completed by front-end development includes page html, style css and logic javascript. [0003] For the modular development of javascript (javascript, referred to as js), as the complexity of the page increases, developers need to work together, and public modules need to be introduced in advance. These public modules often depend on each other, and the dependent js files must Introduce in advance, which puts strict requirements on the order of introduction, and at the same time, the coupling between codes is relatively large. [0004] The prior art generally adopts common modules, such as seajs, to sol...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/65G06F8/71G06F9/445G06F9/455G06F17/30
CPCG06F8/65G06F8/71G06F9/44536G06F9/45529
Inventor 李大双李刚松刘文冈李铭铜
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products