CN107450927A - A kind of front-end business provides method and apparatus - Google Patents
A kind of front-end business provides method and apparatus Download PDFInfo
- Publication number
- CN107450927A CN107450927A CN201710652515.3A CN201710652515A CN107450927A CN 107450927 A CN107450927 A CN 107450927A CN 201710652515 A CN201710652515 A CN 201710652515A CN 107450927 A CN107450927 A CN 107450927A
- Authority
- CN
- China
- Prior art keywords
- business
- page request
- business module
- module
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of front-end business to provide method and apparatus.It is related to front-end business development technique;Solves the problems, such as code leakage.This method includes:Page request is received, determines the class of business that the page request is related to, and then determines the business module being related to, every kind of business is realized by least one business module;The business module that page request is related to is packed, and the page request is responded.Technical scheme provided by the invention is applied to above page code management, realizes service code to the opaque of user.
Description
Technical field
The present invention relates to front-end business development technique, espespecially a kind of front-end business provides method and apparatus.
Background technology
Front-end business code contains a large number of services logical sum business datum, for one side of service is provided, front-end business
The information included in code is most important.However, under existing application environment, front-end business code is relatively saturating for user
It is bright, it is possible to trigger the safety issues such as code leakage, guarantee is lacked to security of system and service provider interests.
The content of the invention
In order to solve the above-mentioned technical problem, the invention provides a kind of front-end business to provide method and apparatus, by by before
Service code modularization is held, and is packed automatically, solves the problems, such as code leakage.
In order to reach the object of the invention, the invention provides a kind of front-end business to provide method, including:
Page request is received, determines the class of business that the page request is related to, and then determines the business module being related to, often
Kind business is realized by least one business module;
The business module that page request is related to is packed, and the page request is responded.
Preferably, this method also includes:
Front end structure is built, by front-end business code according to the business module being related to, every kind of business packet is containing at least one
Business module.
Preferably, after the step of receiving page request, in addition to:
Load the business module that the page request is related to;
The business module is merged and obscures compression, obtains business module allocation list.
Preferably, this method also includes:
Build the front end environment for carrying out business module packing.
Present invention also offers a kind of front-end business to provide device, including:
Business module extraction unit, for receiving page request, the class of business that the page request is related to is determined, and then
It is determined that the business module being related to, every kind of business is realized by least one business module;
Packaged unit, for the business module packing for being related to page request, the page request is responded.
Preferably, the device also includes:
Front end structure builds unit, for building front end structure, by front-end business code according to the business module being related to,
Every kind of business packet contains at least one business module.
Preferably, the device also includes:
Loading unit, the business module being related to for loading the page request;
Front end compilation unit, obscure compression for being merged to the business module, obtain business module allocation list.
Preferably, the device also includes:
Front end environment builds unit, and the front end environment of business module packing is carried out for building.
The invention provides a kind of front-end business to provide method and apparatus, please receiving the page by service code modularization
The class of business that the page request is related to is determined when asking, and then determines the business module being related to, every kind of business passes through at least one
Individual business module realizes that the business module for being related to page request is packed, and page request is responded.Realize service code
To the opaque of user, solves the problems, such as service code leakage.By building special front end structure and carrying out business module
The front end environment of packing, front-end code is managed independent, improves systematic function.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by specification, rights
Specifically noted structure is realized and obtained in claim and accompanying drawing.
Brief description of the drawings
Accompanying drawing is used for providing further understanding technical solution of the present invention, and a part for constitution instruction, with this
The embodiment of application is used to explain technical scheme together, does not form the limitation to technical solution of the present invention.
Fig. 1 is the schematic flow sheet that a kind of front-end business that embodiments of the invention one provide provides method;
Fig. 2 provides the structural representation of device for a kind of front-end business of the jacquard weave of embodiments of the invention two.
Embodiment
For the object, technical solutions and advantages of the present invention are more clearly understood, below in conjunction with accompanying drawing to the present invention
Embodiment be described in detail.It should be noted that in the case where not conflicting, in the embodiment and embodiment in the application
Feature can mutually be combined.
Can be in the computer system of such as one group computer executable instructions the flow of accompanying drawing illustrates the step of
Perform.Also, although logical order is shown in flow charts, in some cases, can be with suitable different from herein
Sequence performs shown or described step.
Under existing application environment, front-end business code relative transparent for user, it is possible to trigger code to leak
Etc. safety issue, guarantee is lacked to security of system and service provider interests.
In order to solve the above problems, the embodiment provides a kind of front-end business to provide method and apparatus, passes through
By front-end business code module, and packed automatically, realize service code to the opaque of user.
First with reference to accompanying drawing, embodiments of the invention one are illustrated.
The embodiments of the invention provide a kind of front-end business to provide method, and offer service is asked using this method response page
Flow as shown in figure 1, including:
Step 101, front end structure is built, front-end business code is contained according to the business module being related to, every kind of business packet
At least one business module;
Step 102, page request is received, determine the class of business that the page request is related to, and then determine the industry being related to
Business module, every kind of business are realized by least one business module;
The business module that step 103, the loading page request are related to;
Step 104, the business module is merged and obscures compression, obtain business module allocation list;
Step 105, the business module for being related to page request are packed, and the page request is responded;
In the embodiment of the present invention, the front end environment for carrying out business module packing has been built, has been generated in business module allocation list
Afterwards, you can packed.
Below in conjunction with the accompanying drawings, embodiments of the invention two are illustrated.
The embodiments of the invention provide a kind of front-end business provide device, its structure as shown in Fig. 2 including:
Business module extraction unit 201, for receiving page request, the class of business that the page request is related to is determined,
And then the business module being related to is determined, every kind of business is realized by least one business module;
Packaged unit 202, for the business module packing for being related to page request, the page request is responded.
Preferably, the device also includes:
Front end structure builds unit 203, for building front end structure, by front-end business code according to the business module being related to
Change, every kind of business packet contains at least one business module.
Preferably, the device also includes:
Loading unit 204, the business module being related to for loading the page request;
Front end compilation unit 205, obscure compression for being merged to the business module, obtain business module configuration
Table.
Preferably, the device also includes:
Front end environment builds unit 206, and the front end environment of business module packing is carried out for building.
The embodiment provides a kind of front-end business to provide method and apparatus, and service code modularization is connecing
The class of business that the page request is related to is determined when receiving page request, and then determines the business module being related to, every kind of business is led to
Cross at least one business module to realize, the business module that page request is related to is packed, and responds page request.Realize
Service code solves the problems, such as service code leakage to the opaque of user.By building special front end structure and progress
The front end environment of business module packing, front-end code is managed independent, improves systematic function.
Although disclosed herein embodiment as above, described content be only readily appreciate the present invention and use
Embodiment, it is not limited to the present invention.Technical staff in any art of the present invention, taken off not departing from the present invention
On the premise of the spirit and scope of dew, any modification and change, but the present invention can be carried out in the form and details of implementation
Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.
Claims (8)
1. a kind of front-end business provides method, it is characterised in that including:
Page request is received, determines the class of business that the page request is related to, and then determines the business module being related to, Mei Zhongye
Business is realized by least one business module;
The business module that page request is related to is packed, and the page request is responded.
2. front-end business according to claim 1 provides method, it is characterised in that this method also includes:
Front end structure is built, front-end business code is contained at least one business according to the business module being related to, every kind of business packet
Module.
3. front-end business according to claim 1 provides method, it is characterised in that after the step of receiving page request,
Also include:
Load the business module that the page request is related to;
The business module is merged and obscures compression, obtains business module allocation list.
4. front-end business according to claim 3 provides method, it is characterised in that this method also includes:
Build the front end environment for carrying out business module packing.
5. a kind of front-end business provides device, it is characterised in that including:
Business module extraction unit, for receiving page request, the class of business that the page request is related to is determined, and then determine
The business module being related to, every kind of business are realized by least one business module;
Packaged unit, for the business module packing for being related to page request, the page request is responded.
6. front-end business according to claim 5 provides device, it is characterised in that the device also includes:
Front end structure builds unit, every kind of by front-end business code according to the business module being related to for building front end structure
Business packet contains at least one business module.
7. front-end business according to claim 5 provides device, it is characterised in that the device also includes:
Loading unit, the business module being related to for loading the page request;
Front end compilation unit, obscure compression for being merged to the business module, obtain business module allocation list.
8. front-end business according to claim 7 provides device, it is characterised in that the device also includes:
Front end environment builds unit, and the front end environment of business module packing is carried out for building.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710652515.3A CN107450927A (en) | 2017-08-02 | 2017-08-02 | A kind of front-end business provides method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710652515.3A CN107450927A (en) | 2017-08-02 | 2017-08-02 | A kind of front-end business provides method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107450927A true CN107450927A (en) | 2017-12-08 |
Family
ID=60489445
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710652515.3A Pending CN107450927A (en) | 2017-08-02 | 2017-08-02 | A kind of front-end business provides method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107450927A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103020155A (en) * | 2012-11-23 | 2013-04-03 | 中国电信股份有限公司云计算分公司 | Web front end resource request processing method and device |
CN103092581A (en) * | 2011-10-28 | 2013-05-08 | 阿里巴巴集团控股有限公司 | Method and device for setting up Web front-end local development environment |
CN103593354A (en) * | 2012-08-15 | 2014-02-19 | 腾讯科技(深圳)有限公司 | Method, device, server and system for filtering network page advertisements |
CN104991860A (en) * | 2015-06-24 | 2015-10-21 | 深圳欧德蒙科技有限公司 | WEB front-end automated development method and system |
CN105187389A (en) * | 2015-08-07 | 2015-12-23 | 北京思特奇信息技术股份有限公司 | Webpage access method and system based on digital mixed encryption |
CN105468412A (en) * | 2015-11-26 | 2016-04-06 | 金蝶软件(中国)有限公司 | Dynamic packaging method and dynamic packaging device |
CN106250128A (en) * | 2016-07-26 | 2016-12-21 | 网易(杭州)网络有限公司 | The display processing method of user interface and device |
CN106843869A (en) * | 2017-01-16 | 2017-06-13 | 百融(北京)金融信息服务股份有限公司 | A kind of front end Development Engineering system and method |
-
2017
- 2017-08-02 CN CN201710652515.3A patent/CN107450927A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103092581A (en) * | 2011-10-28 | 2013-05-08 | 阿里巴巴集团控股有限公司 | Method and device for setting up Web front-end local development environment |
CN103593354A (en) * | 2012-08-15 | 2014-02-19 | 腾讯科技(深圳)有限公司 | Method, device, server and system for filtering network page advertisements |
CN103020155A (en) * | 2012-11-23 | 2013-04-03 | 中国电信股份有限公司云计算分公司 | Web front end resource request processing method and device |
CN104991860A (en) * | 2015-06-24 | 2015-10-21 | 深圳欧德蒙科技有限公司 | WEB front-end automated development method and system |
CN105187389A (en) * | 2015-08-07 | 2015-12-23 | 北京思特奇信息技术股份有限公司 | Webpage access method and system based on digital mixed encryption |
CN105468412A (en) * | 2015-11-26 | 2016-04-06 | 金蝶软件(中国)有限公司 | Dynamic packaging method and dynamic packaging device |
CN106250128A (en) * | 2016-07-26 | 2016-12-21 | 网易(杭州)网络有限公司 | The display processing method of user interface and device |
CN106843869A (en) * | 2017-01-16 | 2017-06-13 | 百融(北京)金融信息服务股份有限公司 | A kind of front end Development Engineering system and method |
Non-Patent Citations (6)
Title |
---|
ADMIN: "webpack将多个.js文件打包成1个,体积好大!如何按需加载?", 《HTTP://WWW.CAOTAMA.COM/83012.HTML》 * |
佚名: "JavaScript Modules Part 2_ Module Bundling", 《HTTPS://WWW.FREECODECAMP.ORG/NEWS/JAVASCRIPT-MODULES-PART-2-MODULE-BUNDLING-5020383CF306/》 * |
佚名: "JavaScript 模块化入门Ⅱ:模块打包构建", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/22945985》 * |
佚名: "webpack如何分别打包多个js文件?", 《HTTPS://SEGMENTFAULT.COM/Q/1010000006018592》 * |
张晓红: "网站前端模块化开发策略研究", 《计算机时代》 * |
毛焱颖;罗森林: "融合多种技术的堆喷射方法研究", 《信息网络安全》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103324872B (en) | Based on the guard method of Android application program and the system of order confusion | |
CN103257929B (en) | A kind of virutal machine memory mapping method and system | |
CN104408366B (en) | Android application program authority usage behavior tracking based on Program instrumentation | |
US20140325193A1 (en) | Dynamic instrumentation | |
CN113126990B (en) | Page development method, device, equipment and storage medium | |
CN111381817A (en) | Method, device, medium and electronic equipment for realizing cross-platform multi-language development | |
CN113377661A (en) | Interface testing method and device, electronic equipment and storage medium | |
CN102156650B (en) | Method and device capable of implementing automatic analysis of patch | |
CN102999602A (en) | Data parsing method and system | |
CN106354731A (en) | Document inspection method and device | |
CN106557350B (en) | JAVA byte code conversion method, device and equipment in application program installation package | |
CN107450927A (en) | A kind of front-end business provides method and apparatus | |
CN112416303B (en) | Software development kit hot repair method and device and electronic equipment | |
CN112052000A (en) | Component multiplexing and rendering method and device | |
CN106446064A (en) | Data conversion method and device | |
US20240005446A1 (en) | Methods, systems, and non-transitory storage media for graphics memory allocation | |
CN110489164B (en) | Acquisition method, device, medium and equipment of hidden assertion information | |
CN102567126B (en) | Method and device for site reproduction of hardware | |
CN109344353A (en) | A kind of the local cache method for refreshing and terminal of configurableization | |
CN106033364A (en) | Method and system for upgrading Web application programs | |
US11755298B2 (en) | Deterministic memory allocation for real-time applications | |
CN116107543A (en) | Project changing method and device based on VUE engineering code project | |
CN111274551B (en) | Compiler-based java code protection method and device and electronic equipment | |
US7661092B1 (en) | Intelligent reuse of local variables during bytecode compilation | |
CN111008178B (en) | Data processing method, device, electronic equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171208 |
|
RJ01 | Rejection of invention patent application after publication |