CN108241492A - The performance optimization method and device of webpage front-end exploitation - Google Patents

The performance optimization method and device of webpage front-end exploitation Download PDF

Info

Publication number
CN108241492A
CN108241492A CN201611204178.3A CN201611204178A CN108241492A CN 108241492 A CN108241492 A CN 108241492A CN 201611204178 A CN201611204178 A CN 201611204178A CN 108241492 A CN108241492 A CN 108241492A
Authority
CN
China
Prior art keywords
business information
configuration file
business
webpage
information
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
Application number
CN201611204178.3A
Other languages
Chinese (zh)
Inventor
孙鸿鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201611204178.3A priority Critical patent/CN108241492A/en
Publication of CN108241492A publication Critical patent/CN108241492A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses the performance optimization methods and device of a kind of exploitation of webpage front-end, it is related to field of computer technology, the problem of main purpose is to solve when needing to be modified business tine, to need to change all business information in Service Component, cause maintenance cost excessive.The present invention main technical schemes be:Setting is used for the configuration file of storage service information;Obtain the business information that webpage front-end exploitation is related to;In the business information storage to the configuration file that webpage front-end exploitation is related to;After detecting that business information changes, the business information in the configuration file is updated according to the business information after change.It is mainly used for the performance optimization of webpage front-end exploitation.

Description

The performance optimization method and device of webpage front-end exploitation
Technical field
The present invention relates to the performance optimization methods and dress that field of computer technology more particularly to a kind of webpage front-end are developed It puts.
Background technology
Webpage (World Wide Web, abbreviation Web) exploitation is risen with the continuous development of Internet technology, and And with web development technologies, i.e., gradually deep, the webpage no longer only carrying of the webpage front-end technology based on JavaScript Single word and the page of picture can also carry various abundant lively media informations.
At present, the existing webpage front-end development technique based on JavaScript is the business information progress with various structures Coupling, will each the data of business and executive mode by written in code in a code segment, by multiple code segments according to The Configuration Framework scheme of webpage development merges, and forms a webpage.But when needing to be modified business tine When, parameter and content that technical staff is needed to change in all business information, in addition, when business tine updates too fast, business number When quantitative change is more frequent, maintenance cost of the technical staff to webpage is considerably increased, leads to the less efficient of webpage development.
Invention content
In view of the above problems, it is proposed that the performance optimization method and dress that the present invention develops in order to provide a kind of webpage front-end It puts, main purpose is solved when needing to be modified business tine, needs to change all business information in Service Component, The problem of causing maintenance cost excessive.
By above-mentioned technical proposal, a kind of performance optimization method of webpage front-end exploitation provided by the invention, including:
Setting is used for the configuration file of storage service information;
Obtain the business information that webpage front-end exploitation is related to;
In the business information storage to the configuration file that webpage front-end exploitation is related to;
After detecting that business information changes, according to the business information after change to the business in the configuration file Information is updated.
Further, the method further includes:
Global static constant is defined in the inlet of webpage front-end exploitation program, the global static constant is used to read institute State the business information in configuration file.
Further, the method further includes:
Obtain the business unit involved by the business information changed;
Updated business information in the configuration file is read by the global static constant, after the update Business information fill the business unit.
Further, the method further includes:
Obtain the store path of the configuration file;
The store path is parsed, obtains the storage location of the configuration file;
The configuration file is searched, and obtain the business information in the configuration file according to the storage location;
Obtain the business information after change;
Business information in the configuration file is substituted using the business information after the change.
Further, the business information includes:Web page subject, webpage title, webpage attribute-identifier and page layout One or more of mode.
By above-mentioned technical proposal, a kind of performance optimization device of webpage front-end exploitation provided by the invention, including:
Setting unit, for setting the configuration file for storage service information;
First acquisition unit, for obtaining the business information that webpage front-end exploitation is related to;
Storage unit, the business information for webpage front-end exploitation to be related to are stored into the configuration file;
Updating unit, for after detecting that business information changes, being matched according to the business information after change to described The business information put in file is updated.
Further, described device further includes:
Definition unit, it is described global static for defining global static constant in the inlet of webpage front-end exploitation program Constant is used to read the business information in the configuration file.
Further, described device further includes:
Second acquisition unit, for obtaining the business unit involved by the business information changed;
Reading unit, for reading updated business information in the configuration file by the global static constant, The business unit is filled using the updated business information.
Further, the updating unit includes:
First acquisition module, for obtaining the store path of the configuration file;
Parsing module for being parsed to the store path, obtains the storage location of the configuration file;
Searching module for searching the configuration file according to the storage location, and is obtained in the configuration file Business information;
Second acquisition module, for obtaining the business information after changing;
Alternative module, for substituting the business information in the configuration file using the business information after the change.
Further, the business information includes:Web page subject, webpage title, webpage attribute-identifier and page layout One or more of mode.
By above-mentioned technical proposal, technical solution provided in an embodiment of the present invention at least has following advantages:
The performance optimization method and device of a kind of webpage front-end exploitation provided in an embodiment of the present invention, set to deposit first The configuration file of business information is stored up, then obtains the business information that webpage front-end exploitation is related to, then the webpage front-end is developed In the business information storage to the configuration file being related to, after detecting that business information changes, according to the industry after change Business information is updated the business information in the configuration file.With existing when needing to be modified business tine, need All business information changed in Service Component compare, and the present invention has been configured by the way that business information is stored in one in advance It in configuration file, after detecting that business information changes, is updated by the business information in configuration file, realizes industry Business and the separation of general frame, each business can be handled individually, when business information updates, avoid changing all industry Business information, so as to fulfill the optimization of webpage front-end exploitation performance.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field Technical staff will become clear.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of the performance optimization method of a kind of webpage front-end exploitation that inventive embodiments provide;
Fig. 2 shows the flow charts of the performance optimization method of another webpage front-end exploitation that inventive embodiments provide;
Fig. 3 shows a kind of block diagram of the performance optimization device for webpage front-end exploitation that inventive embodiments provide;
Fig. 4 shows the block diagram of the performance optimization device for another webpage front-end exploitation that inventive embodiments provide.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
The embodiment of the present invention provides a kind of performance optimization method of webpage front-end exploitation, as shown in Figure 1, the method packet It includes:
101st, setting is used for the configuration file of storage service information.
Wherein, the business information is each business or project in web page code frame, and the business information includes net One or more of page theme, webpage title, webpage attribute-identifier and page layout mode, the embodiment of the present invention is not done It is specific to limit, it can be stored with multiple business information and the corresponding business tine of different business information in the configuration file Deng the embodiment of the present invention is not specifically limited.
It should be noted that the form of the configuration file of configuration can be a kind of data interchange format of lightweight, such as Json forms, the embodiment of the present invention are not particularly limited,
102nd, the business information that webpage front-end exploitation is related to is obtained.
Wherein, webpage front-end exploitation is the method that exploitation language is compiled webpage exploitation, the webpage The business information that front end exploitation is related to is to build the particular content of each project in webpage.
It should be noted that in webpage front-end development process, each business information can be according to different web page frames It is combined, passes through the webpage after being developed after code compilation.
103rd, in the business information storage to the configuration file for being related to webpage front-end exploitation.
Wherein, the business information that the webpage front-end exploitation is related to can be 1 or multiple, the embodiment of the present invention It being not specifically limited, by being stored in configuration file, being realized with will pass through the business information in modification configuration file to business The update of information avoids rewriteeing and writes code.
104th, after detecting that business information changes, according to the business information after change in the configuration file Business information is updated.
Wherein, the change of the business information can be by receiving modification information input by user, can also be according to default Time interval detects the modification information of business information automatically, and the update can include modification, increase, reduce, and the present invention is implemented Example is not specifically limited, and the newer method can be that the business information in configuration file is replaced with to the business after change to believe Breath.
A kind of performance optimization method of webpage front-end exploitation provided in an embodiment of the present invention, ought need in business with existing When appearance is modified, all business information changed in Service Component is needed to compare, the present invention is by advance depositing business information It stores up in the configuration file being configured at one, after detecting that business information changes, is believed by the business in configuration file Breath is updated, and realizes the separation of business and general frame, and each business can be handled individually, is updated in business information When, it avoids changing all business information, so as to fulfill the optimization of webpage front-end exploitation performance.
The embodiment of the present invention provides a kind of performance optimization method of webpage front-end exploitation, as shown in Fig. 2, the method packet It includes:
201st, in the global static constant of inlet definition of webpage front-end exploitation program.
Wherein, the global static constant is used to read the business information in the configuration file, the business information packet Include one or more of Web page subject, webpage title, webpage attribute-identifier and page layout mode, the embodiment of the present invention It is not specifically limited, the global static constant can define one or more, for the different business information in configuration file The static constant of the different overall situations being defined, being believed with will pass through the different business in global static constant reading configuration file Breath.
It should be noted that when compiled code is developed in the inlet of webpage front-end exploitation program for webpage front-end, journey is compiled The beginning of sequence.
202nd, setting is used for the configuration file of storage service information.
This step is identical with the method described in step 101 described in Fig. 1, and which is not described herein again.
203rd, the business information that webpage front-end exploitation is related to is obtained.
This step is identical with the method described in step 102 described in Fig. 1, and which is not described herein again.
204th, in the business information storage to the configuration file for being related to webpage front-end exploitation.
This step is identical with the method described in step 103 described in Fig. 1, and which is not described herein again.
205th, after detecting that business information changes, according to the business information after change in the configuration file Business information is updated.
Wherein, the newer content develops the business information being related to for being stored in configuration file with webpage front-end, The content that change is needed to configure in business information is corresponding with business interface information, can write each business pair exactly in configuration file The configuration content answered, as which theme, title, page indications (pageId), template, layout type and the page include Module etc., the present invention is not specifically limited.
For the embodiment of the present invention, step 205 is specifically as follows:Obtain the store path of the configuration file;To described Store path is parsed, and obtains the storage location of the configuration file;The configuration file is searched according to the storage location, And obtain the business information in the configuration file;Obtain the business information after change;Using the business information after the change Substitute the business information in the configuration file.
Wherein, the store path is the path in storage configuration file, can find to be stored with by store path and match The storage location of file is put, the storage location can be in the local content or caching of current device, and the embodiment of the present invention is not It is specifically limited, the business information after the change can be automatically updated by receiving fresh information input by user or for system It obtains, the embodiment of the present invention is not specifically limited.
For example, the store path for getting configuration file is dddd, it is stored in by the configuration file that is resolved to path In local memory, configuration file A is found according to store path, and it is that Web page subject is to get business information in configuration file A Health, the entitled cardiovascular and cerebrovascular symptoms of webpage, the business information for getting change are that Web page subject is that education, webpage are entitled small The importance of students psychology education, by Web page subject be health, the business information of the entitled cardiovascular and cerebrovascular symptoms of webpage replaces net Page theme is the importance of education, the entitled pupil's psychological education of webpage.
206th, the business unit involved by the business information changed is obtained.
Wherein, the business unit is the webpage projects module of applied business information, passes through the composition of multiple business unit It can obtain a complete webpage.By obtaining the business unit changed, will pass through updated business information pair The business unit answered realizes the performance optimization of webpage front-end exploitation.
207th, updated business information in the configuration file is read by the global static constant, using it is described more Business information after new fills the business unit.
For the embodiment of the present invention, by using the business sheet in the filling webpage front-end exploitation of updated business information Member, avoiding business information, cumbersome, service code is distributed in disorder, shortage with code skeleton authorization policy caused by close coupling Support the flexibility of business information change.
For the embodiment of the present invention, specific application scenarios can be as follows, but not limited to this, including:It is opened from webpage The global static constant a of definition at the program entry of front end is sent out, the configuration file of a j son form is set, before getting webpage The business information that end exploitation is related to is that webpage attribute-identifier is SS and page layout mode is from left to right arranges successively, is passed through The store path of the configuration file of acquisition finds the configuration file stored in memory, and the business information after change is webpage attribute Identifier is uu and page layout mode is arranges successively from top to bottom, by the webpage attribute-identifier in configuration file for SS and Page layout mode for from left to right successively arrangement replace with webpage attribute-identifier be uu and page layout mode be on to Under arrange successively, it is uu and page layout to read newer webpage attribute-identifier in configuration file by global static constant a Mode fills business unit to arrange successively from top to bottom, using updated business information.
The performance optimization method of another kind webpage front-end exploitation provided in an embodiment of the present invention, the present invention are global by defining Then business information is stored in a configuration file being configured by static constant in advance, when detecting business information It after variation, is updated by the business information in configuration file, is filled out updated business information by global static constant It fills in standby service unit, realizes that the business information of webpage front-end exploration project is unified and be configured, reduce maintenance cost, realize expansible Property and portability, so as to fulfill webpage front-end exploitation performance optimization.
Further, the specific implementation as method shown in Fig. 1, the embodiment of the present invention provide a kind of webpage front-end exploitation Performance optimizes device, as shown in figure 3, described device can include:Setting unit 31, first acquisition unit 32, storage unit 33, Updating unit 34.
Setting unit 31, for setting the configuration file for storage service information;Setting unit 31 is opened for webpage front-end The performance optimization device of hair performs function module of the setting for the configuration file of storage service information.
First acquisition unit 32, for obtaining the business information that webpage front-end exploitation is related to;First acquisition unit 32 is net The performance optimization device of page front end exploitation, which performs, obtains the function module of business information that webpage front-end exploitation is related to.
Storage unit 33, the business information for webpage front-end exploitation to be related to are stored into the configuration file; Storage unit 33 optimizes device execution for the performance of webpage front-end exploitation and deposits the business information that webpage front-end exploitation is related to Store up the function module in the configuration file.
Updating unit 34, for after detecting that business information changes, according to the business information after change to described Business information in configuration file is updated.Updating unit 34 optimizes device execution for the performance of webpage front-end exploitation and detects After business information changes, the work(that is updated according to the business information after change to the business information in the configuration file It can module.
The device embodiment is corresponding with preceding method embodiment, and for ease of reading, present apparatus embodiment is no longer to aforementioned side Detail content in method embodiment is repeated one by one, it should be understood that the device in the present embodiment can correspond to realize it is aforementioned Full content in embodiment of the method.
A kind of performance optimization device of webpage front-end exploitation provided in an embodiment of the present invention, ought need in business with existing When appearance is modified, all business information changed in Service Component is needed to compare, the present invention is by advance depositing business information It stores up in the configuration file being configured at one, after detecting that business information changes, is believed by the business in configuration file Breath is updated, and realizes the separation of business and general frame, and each business can be handled individually, is updated in business information When, it avoids changing all business information, so as to fulfill the optimization of webpage front-end exploitation performance.
Further, the specific implementation as method shown in Fig. 2, the embodiment of the present invention provide another webpage front-end exploitation Performance optimization device, as shown in figure 4, described device can include:Setting unit 41, first acquisition unit 42, storage unit 43rd, updating unit 44, definition unit 45, second acquisition unit 46, reading unit 47.
Setting unit 41, for setting the configuration file for storage service information;
First acquisition unit 42, for obtaining the business information that webpage front-end exploitation is related to;
Storage unit 43, the business information for webpage front-end exploitation to be related to are stored into the configuration file;
Updating unit 44, for after detecting that business information changes, according to the business information after change to described Business information in configuration file is updated.
Further, described device further includes:
Definition unit 45, for defining global static constant in the inlet of webpage front-end exploitation program, the overall situation is quiet State constant is used to read the business information in the configuration file.Definition unit 45 optimizes device for the performance of webpage front-end exploitation It performs and global static constant is defined in the inlet of webpage front-end exploitation program, the global static constant is used to read described match Put the function module of the business information in file.
Further, described device further includes:
Second acquisition unit 46, for obtaining the business unit involved by the business information changed;Second obtains list Member 46 performs the business unit involved by the business information for obtaining and changing for the performance optimization device of webpage front-end exploitation Function module.
Reading unit 47 is believed for reading updated business in the configuration file by the global static constant Breath fills the business unit using the updated business information.Reading unit 47 is by the global static constant Updated business information in the configuration file is read, the business unit is filled using the updated business information Function module.
Further, it is described so as to fulfill the change of business information in order to by changing the business information in configuration file Updating unit 44 includes:
First acquisition module 4401, for obtaining the store path of the configuration file;
Parsing module 4402 for being parsed to the store path, obtains the storage location of the configuration file;
Searching module 4403 for searching the configuration file according to the storage location, and obtains the configuration file In business information;
Second acquisition module 4404, for obtaining the business information after changing;
Alternative module 4405, for substituting the business letter in the configuration file using the business information after the change Breath.
The performance optimization device of another kind webpage front-end exploitation provided in an embodiment of the present invention, the present invention are global by defining Then business information is stored in a configuration file being configured by static constant in advance, when detecting business information It after variation, is updated by the business information in configuration file, is filled out updated business information by global static constant It fills in standby service unit, realizes that the business information of webpage front-end exploration project is unified and be configured, reduce maintenance cost, realize expansible Property and portability, so as to fulfill webpage front-end exploitation performance optimization.
The performance optimization device of the webpage front-end exploitation includes processor and memory, and above-mentioned setting unit, first are obtained Unit, storage unit and updating unit etc. is taken in memory, to be stored in as program unit storage by processor execution Above procedure unit in reservoir realizes corresponding function.
Comprising kernel in processor, gone in memory to transfer corresponding program unit by kernel.Kernel can set one Or more, it is solved by adjusting kernel parameter when needing to be modified business tine, needs to change in Service Component All business information, the problem of causing maintenance cost excessive.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory includes at least one deposit Store up chip.
Present invention also provides a kind of computer program products, first when being performed on data processing equipment, being adapted for carrying out The program code of beginningization there are as below methods step:Setting is used for the configuration file of storage service information;Obtain webpage front-end exploitation The business information being related to;In the business information storage to the configuration file that webpage front-end exploitation is related to;It is detecting After business information changes, the business information in the configuration file is updated according to the business information after change.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware can be used in the application Apply the form of example.Moreover, the computer for wherein including computer usable program code in one or more can be used in the application The computer program production that usable storage medium is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, CD-ROM read-only memory (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic tape cassette, the storage of tape magnetic rigid disk or other magnetic storage apparatus Or any other non-transmission medium, available for storing the information that can be accessed by a computing device.It defines, calculates according to herein Machine readable medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It these are only embodiments herein, be not limited to the application.To those skilled in the art, The application can have various modifications and variations.All any modifications made within spirit herein and principle, equivalent replacement, Improve etc., it should be included within the scope of claims hereof.

Claims (10)

1. a kind of performance optimization method of webpage front-end exploitation, which is characterized in that including:
Setting is used for the configuration file of storage service information;
Obtain the business information that webpage front-end exploitation is related to;
In the business information storage to the configuration file that webpage front-end exploitation is related to;
After detecting that business information changes, according to the business information after change to the business information in the configuration file It is updated.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
Global static constant is defined in the inlet of webpage front-end exploitation program, the global static constant is used to read described match Put the business information in file.
3. according to the method described in claim 2, it is characterized in that, according to the business information after change to the configuration file In business information be updated after, the method further includes:
Obtain the business unit involved by the business information changed;
Updated business information in the configuration file is read by the global static constant, using the updated industry Information of being engaged in fills the business unit.
4. according to the method described in claim 1, it is characterized in that, the business information according to after change is to the configuration text Business information in part is updated, including:
Obtain the store path of the configuration file;
The store path is parsed, obtains the storage location of the configuration file;
The configuration file is searched, and obtain the business information in the configuration file according to the storage location;
Obtain the business information after change;
Business information in the configuration file is substituted using the business information after the change.
5. method according to any one of claims 1 to 4, which is characterized in that the business information includes:
One or more of Web page subject, webpage title, webpage attribute-identifier and page layout mode.
6. a kind of performance optimization device of webpage front-end exploitation, which is characterized in that including:
Setting unit, for setting the configuration file for storage service information;
First acquisition unit, for obtaining the business information that webpage front-end exploitation is related to;
Storage unit, the business information for webpage front-end exploitation to be related to are stored into the configuration file;
Updating unit, for after detecting that business information changes, text to be configured to described according to the business information after change Business information in part is updated.
7. device according to claim 6, which is characterized in that described device further includes:
Definition unit, in the global static constant of the inlet definition of webpage front-end exploitation program, the global static constant For reading the business information in the configuration file.
8. device according to claim 7, which is characterized in that described device further includes:
Second acquisition unit, for obtaining the business unit involved by the business information changed;
Reading unit for reading updated business information in the configuration file by the global static constant, uses The updated business information fills the business unit.
9. device according to claim 6, which is characterized in that the updating unit includes:
First acquisition module, for obtaining the store path of the configuration file;
Parsing module for being parsed to the store path, obtains the storage location of the configuration file;
Searching module for searching the configuration file according to the storage location, and obtains the business in the configuration file Information;
Second acquisition module, for obtaining the business information after changing;
Alternative module, for substituting the business information in the configuration file using the business information after the change.
10. according to claim 6 to 9 any one of them device, which is characterized in that the business information includes:Web page subject, One or more of webpage title, webpage attribute-identifier and page layout mode.
CN201611204178.3A 2016-12-23 2016-12-23 The performance optimization method and device of webpage front-end exploitation Pending CN108241492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611204178.3A CN108241492A (en) 2016-12-23 2016-12-23 The performance optimization method and device of webpage front-end exploitation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611204178.3A CN108241492A (en) 2016-12-23 2016-12-23 The performance optimization method and device of webpage front-end exploitation

Publications (1)

Publication Number Publication Date
CN108241492A true CN108241492A (en) 2018-07-03

Family

ID=62703902

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611204178.3A Pending CN108241492A (en) 2016-12-23 2016-12-23 The performance optimization method and device of webpage front-end exploitation

Country Status (1)

Country Link
CN (1) CN108241492A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102323931A (en) * 2011-08-25 2012-01-18 百度在线网络技术(北京)有限公司 Method for updating browser configuration information and equipment
US20120180026A1 (en) * 2008-04-18 2012-07-12 Ibm Corporation System and method for updating initialization parameters for application software from within a software development environment
CN102622215A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for editing image-text units based on script
CN103186401A (en) * 2011-12-31 2013-07-03 北京新媒传信科技有限公司 Method for updating software system and configuration thereof
CN103942218A (en) * 2013-01-22 2014-07-23 阿里巴巴集团控股有限公司 Method and device for generating and updating special subject pages
CN104598277A (en) * 2015-01-13 2015-05-06 北京中交兴路车联网科技有限公司 Method for building mobile terminal applications, mobile terminal and system
CN104965691A (en) * 2014-04-18 2015-10-07 腾讯科技(深圳)有限公司 Method, apparatus and system for configuring page elements of a webpage
CN105487889A (en) * 2015-11-26 2016-04-13 小米科技有限责任公司 Application interface updating method and device
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications
CN105843613A (en) * 2016-03-21 2016-08-10 乐视网信息技术(北京)股份有限公司 Method and apparatus for updating user interface layout of application

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120180026A1 (en) * 2008-04-18 2012-07-12 Ibm Corporation System and method for updating initialization parameters for application software from within a software development environment
CN102622215A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for editing image-text units based on script
CN102323931A (en) * 2011-08-25 2012-01-18 百度在线网络技术(北京)有限公司 Method for updating browser configuration information and equipment
CN103186401A (en) * 2011-12-31 2013-07-03 北京新媒传信科技有限公司 Method for updating software system and configuration thereof
CN103942218A (en) * 2013-01-22 2014-07-23 阿里巴巴集团控股有限公司 Method and device for generating and updating special subject pages
CN104965691A (en) * 2014-04-18 2015-10-07 腾讯科技(深圳)有限公司 Method, apparatus and system for configuring page elements of a webpage
CN105574049A (en) * 2014-10-30 2016-05-11 阿里巴巴集团控股有限公司 Page processing method, device and system of mobile applications
CN104598277A (en) * 2015-01-13 2015-05-06 北京中交兴路车联网科技有限公司 Method for building mobile terminal applications, mobile terminal and system
CN105487889A (en) * 2015-11-26 2016-04-13 小米科技有限责任公司 Application interface updating method and device
CN105843613A (en) * 2016-03-21 2016-08-10 乐视网信息技术(北京)股份有限公司 Method and apparatus for updating user interface layout of application

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
乔峰: "基于模板化网络爬虫技术的Web网页信息抽取", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Similar Documents

Publication Publication Date Title
CN108279932B (en) Method and device for dynamically configuring user interface of mobile terminal
CN105335412B (en) For data conversion, the method and apparatus of Data Migration
CN105574049A (en) Page processing method, device and system of mobile applications
CN106611345A (en) A method and apparatus for acquiring user behavior data
US9152619B2 (en) System and method for constructing markup language templates and input data structure specifications
CN107066266A (en) Unity data processing method and device is supported in Android application
CN106933887A (en) A kind of data visualization method and device
CN109460540A (en) A kind of table paging display methods and device
CN107945248A (en) A kind of bubble diagram word methods of exhibiting and device
CN105630522A (en) Web application updating method, apparatus and system
TW201903662A (en) Data object display method and device
CN103377039A (en) Webgame developing and analyzing method, editor and analyzer
CN110019111A (en) Data processing method, device, storage medium and processor
CN112181432A (en) System for realizing bundle modular packaging processing in ReactNative framework
CN104978169B (en) The SDK processing method and processing devices of Periodical Reading application
CN106802901A (en) The method and device of data base querying
CN106610824A (en) Page height self-adaptation method and apparatus
CN110457010A (en) Method and device based on cooperation platform mass change job order
CN108073595A (en) It is a kind of to realize data update and the method and device of snapshot in olap database
CN106155754B (en) Display template processing method and device
CN116301856B (en) Design method, device, equipment and medium of visual form designer
CN116860357A (en) Dynamic adjustment method, equipment and medium for page
CN106843819A (en) The method and device of object serialization
CN108241492A (en) The performance optimization method and device of webpage front-end exploitation
CN106649317A (en) Method and device for displaying graph

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
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20180703

RJ01 Rejection of invention patent application after publication