CN109460253A - The method and device of system file Version Control is realized based on iframe - Google Patents

The method and device of system file Version Control is realized based on iframe Download PDF

Info

Publication number
CN109460253A
CN109460253A CN201811341741.0A CN201811341741A CN109460253A CN 109460253 A CN109460253 A CN 109460253A CN 201811341741 A CN201811341741 A CN 201811341741A CN 109460253 A CN109460253 A CN 109460253A
Authority
CN
China
Prior art keywords
file
version
page
iframe
creating
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
CN201811341741.0A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811341741.0A priority Critical patent/CN109460253A/en
Publication of CN109460253A publication Critical patent/CN109460253A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of method and device that system file Version Control is realized based on iframe, and method: need to update file for version in Web page system and be packaged, and file introduces Web page system after being encapsulated by iframe;A kind of device: device for realizing system file Version Control based on iframe, comprising: empty page creation module, for creating empty page;Version file creation module, for creating version file in empty page;Application page creation module, for creating application page;Version file introduces module, for version file to be introduced application page by iframe.The present invention is introduced in the system page with the empty page in need for introducing file, the Version Control of system file can be realized by controlling the file version information in this empty page, simplify traditional work for adding version number to a version file, improve development efficiency, human resources are saved, guarantee mass of system.

Description

The method and device of system file Version Control is realized based on iframe
Technical field
The invention belongs to webpage Version Control fields, and in particular to one kind realizes system file Version Control based on iframe Method and device.
Background technique
B/S frame system popular at present, since system is constantly upgraded, the page of browser end is also continuous Be updated and beautify, and during renewal of the page beautification on the control page pattern css file of various elements and The JavaScript file of various interactive actions is also constantly being updated on the control page.It is most of main currently on the market Browser is flowed, such as Google, red fox can carry out text to developer to improve the caching mechanism that the loading efficiency of the page is taken It causes greatly to perplex when part version updating, if there is some general files need to carry out version updating, when page quantity is larger It will do it the work of many repetitive natures, and this undoubtedly just reduces working efficiency.
This is the deficiencies in the prior art, therefore, in view of the above-mentioned drawbacks in the prior art, is provided a kind of real based on iframe The method and device of existing system file Version Control, is necessary.
Summary of the invention
It is an object of the present invention to which the page of browser end is also continuous for above-mentioned since system is constantly upgraded Be updated and beautify, general file needs to carry out version updating, will do it many repetitive natures when page quantity is larger Work defect, provide it is a kind of based on iframe realize system file Version Control method and device, to solve above-mentioned skill Art problem.
To achieve the above object, the present invention provides following technical scheme:
A method of based on iframe realize system file Version Control, by version in Web page system need to update file into Row encapsulation, file introduces Web page system after being encapsulated by iframe.
Further, specifically comprise the following steps:
S1. empty page is created;
S2. version file is created in empty page;
S3. application page is created;
S4. version file is introduced by application page by iframe.
Further, the version file includes css pattern file and js script file.
Further, specific step is as follows by step S1:
S11. version.html file is created;
S12. the css pattern text that each page needs to introduce in version.html file page named web page application system Part and js script file.
Further, specific step is as follows by step S2:
S21. js script file folder is created;
S22. js script file is created in js script file folder;
S23. css pattern file is created;
S24. css pattern file is created in css pattern file.
Further, specific step is as follows by step S3:
S31. index.html file is created;
S32. application page attribute is set.
Further, specific step is as follows by step S4:
Version.html file page is introduced into index.html file page by iframe element.
Further, in step S32,300 pixel of application page width domain, 100 pixel of height domain, application page area are set The distance of domain surrounding is away from upper 50 pixel, away from lower 10 pixel, center ofthe.
The present invention gives following technical solution:
A kind of device for realizing system file Version Control based on iframe, comprising:
Empty page creation module, for creating empty page;
Version file creation module, for creating version file in empty page;
Application page creation module, for creating application page;
Version file introduces module, for version file to be introduced application page by iframe.
Further, empty page creation module includes:
Version.html file creating unit, for creating version.html file;
Version file designating unit is needed for the page each in version.html file page named web page application system The css pattern file and js script file to be introduced;
Version file creation module includes:
Js script file presss from both sides creating unit, for creating js script file folder;
Js script file creating unit, for creating js script file in js script file folder;
Css pattern folder creation unit, for creating css pattern file;
Css pattern file creating unit, for creating css pattern file in css pattern file;
Application page creation module includes:
Index.html file creating unit, for creating index.html file;
Application page attribute setting unit, for setting application page attribute.
The beneficial effects of the present invention are:
The present invention is introduced in the system page with the empty page in need for introducing file, by controlling in this empty page The Version Control of system file can be realized in file version information, simplifies traditional work for adding version number to a version file Make, improve development efficiency, save human resources, guarantees mass of system.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is flow chart of the method for the present invention one;
Fig. 2 is flow chart of the method for the present invention two;
Fig. 3 is system schematic of the invention;
Wherein, 1- empty page creation module;1.1-version.html file creating unit;1.2- version file is specified single Member;2- version file creation module;2.1-js script file presss from both sides creating unit;2.2-js script file creating unit;2.3-css Pattern folder creation unit;2.4-css pattern file creating unit;3- application page creation module;3.1-index.html File creating unit;3.2- application page attribute setting unit;4- version file introduces module.
Specific embodiment:
To enable the purpose of the present invention, feature, advantage more obvious and understandable, below in conjunction with of the invention specific The technical solution in the present invention is clearly and completely described in attached drawing in embodiment.
Embodiment 1:
The present invention provides a kind of method for realizing system file Version Control based on iframe, and version in Web page system is needed It updates file to be packaged, file introduces Web page system after encapsulating by iframe;
As shown in Figure 1, specifically comprising the following steps:
S1. empty page is created;
S2. version file is created in empty page;Version file includes css pattern file and js script file;
S3. application page is created;
S4. version file is introduced by application page by iframe.
Embodiment 2:
As shown in Fig. 2, a kind of method for realizing system file Version Control based on iframe, includes the following steps:
S1. empty page is created;Specific step is as follows:
S11. version.html file is created;
S12. the css pattern text that each page needs to introduce in version.html file page named web page application system Part and js script file;
S2. version file is created in empty page;Version file includes css pattern file and js script file;
Specific step is as follows:
S21. js script file folder is created;
S22. js script file is created in js script file folder;
S23. css pattern file is created;
S24. css pattern file is created in css pattern file;
S3. application page is created;Specific step is as follows:
S31. index.html file is created;
S32. application page attribute is set;
S4. version.html file page is introduced by index.html file page by iframe element.
In above-described embodiment 2, in step S32,300 pixel of application page width domain, 100 pixel of height domain, application are set The distance of page area surrounding is away from upper 50 pixel, away from lower 10 pixel, center ofthe.
Embodiment 3:
In above-described embodiment 2,
S1. empty page is created;It is realized by following code:
S2. version file is created in empty page;It is realized by following code:
New folder " js " then creates a js file in js file " testJs.js " new folder " Css " then creates a css file in css file " the newly-built application page of one.css " S3.;It is real by following code It is existing:
S4. version.html file page is introduced by index.html file page by iframe element;By such as Lower code is realized:
By above-mentioned code establishing js script file folder, css pattern file, version.html file and Version.html file;
Index.html is opened in a browser, is opened developer's tool, can be checked that current page is drawn in NetWork The version of the pattern and js file that enter;
The fileversion number in versiont.html file is modified, refreshes the index.html page in a browser, is checked Version information at this time, when page furbishing, have updated the cache file look in device, realize the version updating of file.
Embodiment 4:
As shown in figure 3, the present invention provides a kind of device for realizing system file Version Control based on iframe, comprising:
Empty page creation module 1, for creating empty page;
Version file creation module 2, for creating version file in empty page;
Application page creation module 3, for creating application page;
Version file introduces module 4, for version file to be introduced application page by iframe;
Empty page creation module 1 includes:
Version.html file creating unit 1.1, for creating version.html file;
Version file designating unit 1.2, for each page in version.html file page named web page application system Face needs the css pattern file and js script file introduced;
Version file creation module 2 includes:
Js script file presss from both sides creating unit 2.1, for creating js script file folder;
Js script file creating unit 2.2, for creating js script file in js script file folder;
Css pattern folder creation unit 2.3, for creating css pattern file;
Css pattern file creating unit 2.4, for creating css pattern file in css pattern file;
Application page creation module 3 includes:
Index.html file creating unit 3.1, for creating index.html file;
Application page attribute setting unit 3.2, for setting application page attribute.
The embodiment of the present invention be it is illustrative and not restrictive, above-described embodiment be only to aid in understanding the present invention, because The present invention is not limited to the embodiments described in specific embodiment for this, all by those skilled in the art's technology according to the present invention Other specific embodiments that scheme obtains, also belong to the scope of protection of the invention.

Claims (10)

1. a kind of method for realizing system file Version Control based on iframe, which is characterized in that need version in Web page system It updates file to be packaged, file introduces Web page system after encapsulating by iframe.
2. a kind of method for realizing system file Version Control based on iframe as described in claim 1, which is characterized in that tool Body includes the following steps:
S1. empty page is created;
S2. version file is created in empty page;
S3. application page is created;
S4. version file is introduced by application page by iframe.
3. a kind of method for realizing system file Version Control based on iframe as claimed in claim 2, which is characterized in that institute Stating version file includes css pattern file and js script file.
4. a kind of method for realizing system file Version Control based on iframe as claimed in claim 3, which is characterized in that step Specific step is as follows by rapid S1:
S11. version.html file is created;
S12. each page needs to introduce in version.html file page named web page application system css pattern file and Js script file.
5. a kind of method for realizing system file Version Control based on iframe as claimed in claim 3, which is characterized in that step Specific step is as follows by rapid S2:
S21. js script file folder is created;
S22. js script file is created in js script file folder;
S23. css pattern file is created;
S24. css pattern file is created in css pattern file.
6. a kind of method for realizing system file Version Control based on iframe as claimed in claim 4, which is characterized in that step Specific step is as follows by rapid S3:
S31. index.html file is created;
S32. application page attribute is set.
7. a kind of method for realizing system file Version Control based on iframe as claimed in claim 6, which is characterized in that step Specific step is as follows by rapid S4:
Version.html file page is introduced into index.html file page by iframe element.
8. a kind of method for realizing system file Version Control based on iframe as claimed in claim 6, which is characterized in that step In rapid S32,300 pixel of application page width domain is set, 100 pixel of height domain, the distance of application page region surrounding is away from upper 50 Pixel, away from lower 10 pixel, center ofthe.
9. a kind of device for realizing system file Version Control based on iframe characterized by comprising
Empty page creation module (1), for creating empty page;
Version file creation module (2), for creating version file in empty page;
Application page creation module (3), for creating application page;
Version file introduces module (4), for version file to be introduced application page by iframe.
10. a kind of device for realizing system file Version Control based on iframe as claimed in claim 9, which is characterized in that Empty page creation module (1) includes:
Version.html file creating unit (1.1), for creating version.html file;
Version file designating unit (1.2), for each page in version.html file page named web page application system The css pattern file and js script file for needing to introduce;
Version file creation module (2) includes:
Js script file presss from both sides creating unit (2.1), for creating js script file folder;
Js script file creating unit (2.2), for creating js script file in js script file folder;
Css pattern folder creation unit (2.3), for creating css pattern file;
Css pattern file creating unit (2.4), for creating css pattern file in css pattern file;
Application page creation module (3) includes:
Index.html file creating unit (3.1), for creating index.html file;
Application page attribute setting unit (3.2), for setting application page attribute.
CN201811341741.0A 2018-11-12 2018-11-12 The method and device of system file Version Control is realized based on iframe Pending CN109460253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811341741.0A CN109460253A (en) 2018-11-12 2018-11-12 The method and device of system file Version Control is realized based on iframe

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811341741.0A CN109460253A (en) 2018-11-12 2018-11-12 The method and device of system file Version Control is realized based on iframe

Publications (1)

Publication Number Publication Date
CN109460253A true CN109460253A (en) 2019-03-12

Family

ID=65610096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811341741.0A Pending CN109460253A (en) 2018-11-12 2018-11-12 The method and device of system file Version Control is realized based on iframe

Country Status (1)

Country Link
CN (1) CN109460253A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597738A (en) * 2019-09-19 2019-12-20 浪潮软件集团有限公司 Memory release method, terminal and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1987851A (en) * 2005-12-22 2007-06-27 腾讯科技(深圳)有限公司 Updating display method for webpage data
CN102722563A (en) * 2012-05-31 2012-10-10 优视科技有限公司 Method and device for displaying page
CN103279541A (en) * 2013-06-04 2013-09-04 天津市天安怡和信息技术有限公司 Method and device for reducing web browser load
CN103699600A (en) * 2013-12-13 2014-04-02 北京奇虎科技有限公司 Data processing method for web cache and browser
CN104461412A (en) * 2014-12-30 2015-03-25 广州视源电子科技股份有限公司 Web page designated area printing method and system
CN105868239A (en) * 2015-12-10 2016-08-17 乐视网信息技术(北京)股份有限公司 File updating method, device and terminal
CN107577469A (en) * 2017-08-21 2018-01-12 厦门悦讯教育科技有限公司 A kind of Software package method for release management
CN108021583A (en) * 2016-10-28 2018-05-11 阿里巴巴集团控股有限公司 Page loading method, the processing method and client of page operation instruction
CN108664456A (en) * 2017-03-31 2018-10-16 北京京东尚科信息技术有限公司 A kind of method of the function of display elements in dynamic construction document

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1987851A (en) * 2005-12-22 2007-06-27 腾讯科技(深圳)有限公司 Updating display method for webpage data
CN102722563A (en) * 2012-05-31 2012-10-10 优视科技有限公司 Method and device for displaying page
CN103279541A (en) * 2013-06-04 2013-09-04 天津市天安怡和信息技术有限公司 Method and device for reducing web browser load
CN103699600A (en) * 2013-12-13 2014-04-02 北京奇虎科技有限公司 Data processing method for web cache and browser
CN104461412A (en) * 2014-12-30 2015-03-25 广州视源电子科技股份有限公司 Web page designated area printing method and system
CN105868239A (en) * 2015-12-10 2016-08-17 乐视网信息技术(北京)股份有限公司 File updating method, device and terminal
CN108021583A (en) * 2016-10-28 2018-05-11 阿里巴巴集团控股有限公司 Page loading method, the processing method and client of page operation instruction
CN108664456A (en) * 2017-03-31 2018-10-16 北京京东尚科信息技术有限公司 A kind of method of the function of display elements in dynamic construction document
CN107577469A (en) * 2017-08-21 2018-01-12 厦门悦讯教育科技有限公司 A kind of Software package method for release management

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597738A (en) * 2019-09-19 2019-12-20 浪潮软件集团有限公司 Memory release method, terminal and computer readable storage medium
CN110597738B (en) * 2019-09-19 2023-09-12 浪潮软件集团有限公司 Memory release method, terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN103336690B (en) HTML (Hypertext Markup Language) 5-based text-element drawing method and device
CN108664245A (en) A kind of web interface generation method and device based on JSON self-described structures
CN106021257B (en) A kind of crawler capturing data method, apparatus and system for supporting online programming
CN108052548A (en) Method, system and the terminal device that a kind of webpage creates
CN103377039B (en) A kind of web game exploitation, analytic method, a kind of editing machine and resolver
CN108664239A (en) A kind of across technology stack web front-end development system and method based on micro services
CN104407863A (en) Abstract control model programming device and method
CN109460253A (en) The method and device of system file Version Control is realized based on iframe
CN108376172A (en) The webpage Localization methodologies of mobile client
CN109857803A (en) Method of data synchronization, device, equipment, system and computer readable storage medium
CN110045956A (en) Configuration method, device, equipment and the readable storage medium storing program for executing of component
CN205721558U (en) A kind of computer host box
CN102955852A (en) Method, device and equipment for webpage resource processing
CN108334392B (en) Start method, storage medium, equipment and the system of the page in Android system
CN107040818B (en) Layout analytic hierarchy process method and system for Android TV
CN110045950A (en) Static page based on nodejs develops scaffold method
CN108536434A (en) A kind of method and device for realizing Hook Function based on high-level programming language
CN103744663A (en) Pre-caching technology based Android interface design frame model
CN106775826A (en) A kind of method and system of use note mode loading code file
CN103838556A (en) Method for achieving design of client program
CN105426424A (en) Directional paging type acquisition method for network data
CN105243020A (en) Automatic test method applicable for global distributed real-time database
CN106383710A (en) Webpage embedding method
CN206788725U (en) A kind of buffer-type computer power supply
CN106547529A (en) Page makeup method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190312