Nothing Special   »   [go: up one dir, main page]

CN106990976A - A kind of page script loading method and device - Google Patents

A kind of page script loading method and device Download PDF

Info

Publication number
CN106990976A
CN106990976A CN201610041684.9A CN201610041684A CN106990976A CN 106990976 A CN106990976 A CN 106990976A CN 201610041684 A CN201610041684 A CN 201610041684A CN 106990976 A CN106990976 A CN 106990976A
Authority
CN
China
Prior art keywords
script
file
html
dependence
cascade pattern
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
CN201610041684.9A
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201610041684.9A priority Critical patent/CN106990976A/en
Priority to PCT/CN2017/070890 priority patent/WO2017124952A1/en
Priority to TW106101735A priority patent/TW201732647A/en
Publication of CN106990976A publication Critical patent/CN106990976A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Document Processing Apparatus (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the present application provides a kind of page script loading method and a kind of page script loading device.Methods described includes:Load the first script;According to the dependence definition for first script, the dependence of first script is parsed;When the dependence of first script includes each second script, then obtain each second script and loaded;When the dependence of first script includes html files, then the html files are obtained by third party's plug-in unit and rendered;When the dependence of first script includes each cascade pattern file, then each cascade pattern file is obtained by third party's plug-in unit and rendered;After each dependence of first script is all disposed, the service logic of first script is performed.The dependence of each business of the web page code of the application is apparent, and the code reuse of each function is strong, and size of code can be reduced, web page code clear in structure, and the logic of each business can be decoupled, convenient modification web page code, facilitates carry out business to tear graded tasks open.

Description

A kind of page script loading method and device
Technical field
The application is related to web technologies field, and more particularly to a kind of page script loading method and a kind of page script add Carry and put.
Background technology
With the development of internet, the business of webpage is also more and more.And formerly in technology, front end is in exploitation web page code When, if the webpage has after new business demand, new service code is added in web page code according to demand, with business Change and increase, the web page code relatively dissipate relatively it is miscellaneous.
Wherein, the front end in webpage development:Typically developed for client-side program such as browsers, be to browse The program of device end operation;Front end be in Web applications user can with the visible thing touched, including Web page structure, The apparent visual performance of Web page and the interaction realization of Web page.Accordingly, rear end:Server is directed to, accurately For should be for server end exploitation, that runs in the server is to provide the program of data;Rear end be more with Database is interacted to handle corresponding service logic, it is necessary to consider how to realize function, the access of data, platform Stability and performance etc..
In the above case said, if, it is necessary to the work(in each service code when some business are in the presence of the function of overlapping It can repeat to write respective code, code reuse is poor, size of code is big;And above-mentioned code at random may cause the logic of business Coupling, when causing to some business modification, because logic is coupled, it is necessary to change the code of other business of a large amount of correlations;Furthermore, If to carry out business fractionation to the webpage, because code is at random and logic coupling, it is also difficult to split.
The content of the invention
In view of the above problems, it is proposed that the embodiment of the present application overcomes above mentioned problem or at least in part to provide one kind A kind of page script loading method and a kind of corresponding page script loading device solved the above problems.
In order to solve the above problems, this application discloses a kind of page script loading method, including:
Load the first script;
According to the dependence definition for first script, the dependence of first script is parsed;
When the dependence of first script includes each second script, then obtain each second script and loaded;
When the dependence of first script includes html files, then the html files and wash with watercolours are obtained by third party's plug-in unit Dye;
When the dependence of first script includes each cascade pattern file, then each cascade pattern is obtained by third party's plug-in unit File is simultaneously rendered;
After each dependence of first script is all disposed, the service logic of first script is performed.
Disclosed herein as well is a kind of page script loading device, including:
First script load-on module, for loading the first script;
Rely on parsing module, for being defined according to the dependence for first script, parse first script according to Rely;
Crus secunda present treatment module, includes each second script for the dependence when first script, then obtains each second Script is loaded;
Html document processing modules, include html files for the dependence when first script, are then inserted by third party Part obtains the html files and rendered;
Pattern document processing module is cascaded, for including each cascade pattern file when the dependence of first script, is then led to Third party's plug-in unit is crossed to obtain each cascade pattern file and render;
First script execution module, for after each dependence of first script is all disposed, performs described the The service logic of one script.
The embodiment of the present application includes advantages below:
The embodiment of the present application, can be directed to each functional module of webpage demand, pre-set corresponding second script, respectively Html (HyperText Mark-up Language, HTML) file, each script pair of business or function CSS (Cascading Style Sheets, Cascading Style Sheet) file answered, then for some business or work(of webpage Can, can be in business or function corresponding the if it needs corresponding second script, html files, Cascading Style Sheet In the dependence definition of one script, each second script that first script is relied on, html files and each CSS files are defined.That Client parses the second script, the html texts of its dependence from its dependence definition first after first script is got Part, Cascading Style Sheet file etc. are relied on.For the second script, then first obtain each second script and loaded;For html texts Part, can be obtained the html files and rendered by third party's plug-in unit;For cascade pattern file, it can be obtained by third party's plug-in unit Take each cascade pattern file and render, after each dependence of first script is all disposed, client performs described again The code of the service logic of first script.In this way, the dependence of each business of web page code is apparent, the code of each function Durability is strong, and size of code can be reduced, web page code clear in structure, and the logic of each business can be decoupled, convenient modification webpage generation Code, facilitates carry out business to tear graded tasks open.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of page script loading method embodiment of the application;
Fig. 2 is the step flow chart of another page script loading method embodiment of the application;
Fig. 2A is a kind of example logic figure of page script loading method of the application;
Fig. 3 is a kind of structured flowchart of page script loading device embodiment of the application.
Embodiment
It is below in conjunction with the accompanying drawings and specific real to enable above-mentioned purpose, the feature and advantage of the application more obvious understandable Mode is applied to be described in further detail the application.
One of core idea of the embodiment of the present application is, can be to each functional module of each webpage demand, in advance Corresponding second script, html (the HyperText Mark-up Language, hypertext markup of each business or function are set Language) file, the corresponding CSS of each script (Cascading Style Sheets, Cascading Style Sheet) file, then for certain Individual webpage, its some business or function, can be with if it needs corresponding second script, html files, Cascading Style Sheet In the dependence definition of corresponding first script, each second script that first script is relied on is defined, html files and each Css files.So client is after first script is got, it is possible to use (requirejs is one to requirejs JavaScript modules are loaded into framework, are AMD (Asynchronous Module Definition, asynchronous module load mechanism) One of implementor of specification) etc. storehouse, first from its dependence definition in obtain parse its dependence the second script, html files, level Join pattern file.For html files, the html files can be obtained by third party's plug-in unit and are rendered;For cascade pattern text Part, can be obtained each cascade pattern file and rendered by third party's plug-in unit, all handled in each dependence of first script Bi Hou, client performs the code of the service logic of first script again.In this way, the dependence of each business of web page code is closed It is apparent, the code reuse of each function is strong, and size of code can be reduced, web page code clear in structure, the logic energy of each business Enough decouplings, convenient modification web page code, facilitate carry out business to tear graded tasks open.
Embodiment one
Reference picture 1, shows a kind of step flow chart of page script loading method embodiment of the application, specifically can be with Comprise the following steps:
Step 110, the first script is loaded;
In the embodiment of the present application, can be in the html codes of the main html documents of webpage when building webpage in front end The loading interface of the first script of preset loading.Such as in html codes<script>The middle above-mentioned loading interface of addition.
The loading interface in requirejs storehouses is such as used, its loading interface example is as follows:<Script data-main=" Main " src=" require.js "></script>.Wherein src=" require.js ", represent the first script in server Path, data-main=" main " represent the first script principal function.
Certainly, in practical application, the loading interface of the first script can also be added in other positions, and the embodiment of the present application is not It is any limitation as.
In the embodiment of the present application, the loading interface of first script can be added in the web page code, can also The loading interface of multiple first scripts is added, the embodiment of the present application is not any limitation as to it.Certainly, if multiple first scripts Loading interface, the service logic of each the first script is different.
In embodiments of the present invention, after client gets main html documents, html codes therein is parsed, work as parsing To the loading interface of above-mentioned first script, then corresponding first script is obtained from server, then load first script.
In the embodiment of the present application, in the first script, dependence definition, such as the main letter in the first script are pre-set The first script is relied on defined in number each second script, html files, CSS files one or more.Then in clothes Under the file of the respective paths of business device, each second script, and/or html files, and/or CSS files of dependence are put into.
It is appreciated that in actual applications, after client gets main html documents, others html codes are parsed, It is also possible to parse other labels in other parts, such as the html codes.The embodiment of the present application is not any limitation as to it.
Certain the application can also use the loading interface in other storehouses, and the embodiment of the present application is not any limitation as to it.
It is appreciated that the client can be browser, can also be other and can handle html codes program or Using.Wherein the browser can be PC browser, can also be the browser of intelligent mobile terminal.The application is implemented Example is not any limitation as to it.
Step 120, according to the dependence definition for first script, the dependence of first script is parsed;
Definition is relied on because the application has been in advance the first script setting, then after first script is loaded, then first From the dependence definition of first script, the dependence of first script is parsed.
In actual applications, due to the technological development personnel of server side, can according to the second script of business demand, And/or html files, and/or CSS files, the second script, and/or html of demand are write in the dependence definition of first script File, and/or CSS files.So in the embodiment of the present application, a variety of feelings are there may be when parsing the dependence of first script Condition, such as:
1st, the second script is only relied on.
2nd, html files are only relied on.
3rd, CSS files are only relied on.
In the case of this kind, the CSS files can be the CSS files for the first script.
4th, each second script and html files are relied on.
5th, the second script and CSS files are relied on;
In the case of this kind, if multiple CSS files, the plurality of CSS files are probably for the first script and crus secunda The CSS files of some of this script.
6th, html files and CSS files are relied on;
In the case of this kind, the CSS files can be the CSS files for the first script.
7th, the second script, html files, CSS files are relied on.
In the case of this kind, if multiple CSS files, the plurality of CSS files are probably for the first script and crus secunda The CSS files of some of this script.
So the embodiment of the present application, is parsing the dependence of the first script, according to situation about pre-setting, may be resolved to State several situations.
Step 130, when the dependence of first script includes each second script, then obtain each second script and loaded;
In the embodiment of the present application, if the dependence that foregoing parsing is obtained includes each second script, in foregoing path File under, obtain each second script from server, then can load each second script.
In the embodiment of the present application, when some or certain the several crus secunda sheets, second script that the first script is relied on Can as the first script identity, then after first script is loaded, perform step 120-160.
Step 140, when the dependence of first script includes html files, then the html is obtained by third party's plug-in unit File is simultaneously rendered;
In the embodiment of the present application, can client access webpage when or before for client load requirejs Third party's plug-in unit.If that the dependence that foregoing parsing is obtained includes html files, then it can pass through the 3rd of requirejs Side plug is obtained each html files from server, then can entered based on the html files under the file in foregoing path Row is rendered.
In the embodiment of the present application, the sub-interface of the webpage of the foregoing main html documents of correspondence after the html files are rendered.
In another preferred embodiment of the application, the html files include html templates, user data, internationalization text Part.
The wherein user data business datum such as including user personalized information.Internationalize file bag internationalization official documents and correspondence data. Html templates are predetermined various Page Templates, and the html templates include at least multiple fields for inserting data, such as insert user The field of various customized informations and the field for inserting internationalization official documents and correspondence data.
Further, step 140 includes sub-step 141-143:
Sub-step 141, obtains html templates, user data and internationalization file;
In the embodiment of the present application, the html files that the first script is relied on include html templates, user data and the world Change file.The application can obtain html templates, user data and internationalization file.
In another preferred embodiment of the application, sub-step 141 includes sub-step A11:
Sub-step A11, obtains the html templates of the text types of the html templates.
Requirejs third party's plug-in unit, from server or html template files, is then stored in text file types In internal memory.
This kind of mode can avoid client (such as browser) from being directly obtained the code of html templates, then directly parse And the code of the html templates has been rendered, causing to render does not have actual data display in obtained webpage.
Sub-step 142, calls template rendering engine, and the html templates, user data and internationalization file are spliced into Html codes;
The embodiment of the present application can then call template rendering engine, and user data and internationalization file are inserted into html templates In, obtain html codes.
The template rendering engine can be ejs (EJS is the masterplate language of Canjs acquiescence) mould in the embodiment of the present application Plate rendering engine.
In the embodiment of the present application, by taking ejs template rendering engines as an example, an ejs template can be built in advance and is rendered and is drawn Hold up.And in the code for the html files that the first script is relied on, addition<script>Label, then at this<script>Label Quote ejs templates rendering engine such as:<Scripttype=" text/javascript " src="/js/ejs.js "></ script>.So browser is got after main html documents, goes to this<script>……</script>Code, then can obtain The script of ejs engines is taken, is then loaded.
And html template files, user data, internationalization file can be built according to the regulation of ejs template rendering engines.Than As html template files are set to:
User data is set to:
Internationalization file can be set in the form of similar user data.In certain practical application, for internationalization text Part meets the defined code that ejs templates render template, and it can be encapsulated as to json (JavaScript Object again Notation, is a kind of data interchange format of lightweight) file format.
In another preferred embodiment of the application, above-mentioned internationalization file includes the internationalization official documents and correspondence number of various language According to.
In the embodiment of the present application, for the official documents and correspondence of some, language environments different due to existing may be different, such as in Literary language environment, english language environment, German language environment etc., webpage can browsing by different language environment for convenience When device accesses the webpage, the official documents and correspondence of corresponding language environment can be shown in the web page, and the application can turn over this document in advance The internationalization official documents and correspondence under different language environment is translated into, it is then that its data format as defined in ejs template rendering engines is compiled, Each compiled internationalization official documents and correspondence data are encapsulated into a json files again.
It is then further, it is described to call template rendering engine, the html templates, user data and internationalization file are spelled The step of being connected in html codes, including sub-step 1421- sub-steps 1423:
Sub-step 1421, obtains the language environment of current system;
Due to including the internationalization official documents and correspondence of multilingual in the json files for the official documents and correspondence that internationalizes, and in order to be adapted to user's The language environment of client, facilitates user to read webpage, the embodiment of the present application is firstly the need of system where obtaining active client Language environment.The language environment of such as current system is Chinese, then can obtain its language environment mark, such as CN.
Sub-step 1422, extracts the internationalization official documents and correspondence data of the correspondence language environment from the internationalization file;
So according to CN, the corresponding internationalization official documents and correspondence data of CN are extracted from json files.
Sub-step 1423, calls template rendering engine, and the html templates, user data and internationalization official documents and correspondence data are spelled It is connected in html codes.
Then ejs template rendering engines are called, foregoing temporary html templates " html " are extracted, then by data, CN couple The internationalization official documents and correspondence data answered are spliced to the html templates " html ", obtain the html codes that really can normally perform.
Sub-step 143, performs the html codes, and the corresponding sub-interface of the html codes is rendered into specified containers In.
Obtained html codes are spliced to template rendering engine, then performs the code, then can be carried out according to the html codes Render, be rendered into specified containers.The specified containers are the container obtained after foregoing main html documents are rendered.
Step 150, when the dependence of first script includes each cascade pattern file, then obtain each by third party's plug-in unit Cascade pattern file is simultaneously rendered;
In the embodiment of the present application, the third party that can load requirejs in the first script for browser in advance inserts Part.Parse obtained dependence if that foregoing and include CSS style file, then can be by requirejs third party's plug-in unit Under the file in foregoing path, obtain each CSS style file from server and then the CSS style file is rendered.
In another preferred embodiment of the application, when the cascade pattern files at different levels include the cascade sample of the first script During the cascade pattern file of formula file and at least one the second script, then the step 150 includes sub-step 151-153:
Sub-step 151, obtains the cascade pattern file of the first script and the cascade pattern file of at least one the second script;
In the embodiment of the present application, if the first script includes one in CSS scripts, and the second script of its dependence Or it is multiple including CSS files, then can first pass through foregoing third party's plug-in unit from the file of server respective directories or on City's CSS files.
In the embodiment of the present application, the logic for avoiding requirejs is directly rendered the CSS files got, this Shen Please the form that can not then be loaded with requirejs of embodiment obtain CSS files from server.
In another preferred embodiment of the application, sub-step 151 includes sub-step A21:
Sub-step A21, obtains the cascade pattern file of the text types of the cascade pattern file of first script.
In the embodiment of the present application, the CSS files of the first script can be obtained from server by the way of text types, It is then stored in internal memory, now requrejs can not then be loaded directly into the CSS files.
Sub-step 152, loads and renders the cascade pattern file of at least one second script;
In the embodiment of the present application, loading first and rendering the second script CSS files.
In another preferred embodiment of the application, sub-step 152 includes sub-step A31:
Sub-step A31, loads and renders the cascade pattern file of at least one second script by link labels.
In actual applications, for the CSS files of each second script, link labels are added into, then requirejs It can be just loaded directly into link labels and render the corresponding CSS files of the link.
Sub-step 153, after the cascade pattern file of the second script is rendered and finished, reloads and renders the first script Cascade pattern file.
After the CSS files of all second scripts are rendered and finished, the embodiment of the present application can just load the CSS of the first script File.
In another preferred embodiment of the application, sub-step 153 includes sub-step A41:
Sub-step A31, after the cascade pattern file of the second script is rendered and finished, passes through the loading of style labels and wash with watercolours Contaminate the cascade pattern file of the text types.
In the embodiment of the present application, internal memory is kept in due to the CSS files of the foregoing first record pattern file to suffer, then After the CSS files of the second script are rendered and finished, then the CSS files can be extracted from internal memory, are then added with style labels Carry the text type files.So, it is ensured that the CSS files of the first script can be loaded finally, and the pattern of the first script is not It can be covered by the pattern of the second script.
Certainly, in the embodiment of the present application, if the first script does not have CSS files, for the CSS samples of each second script Formula, can be loaded directly into using link labels.
Step 160, after each dependence of first script is all disposed, the business for performing first script is patrolled Volume.
In the embodiment of the present application, after whole dependences of foregoing first script are disposed, the processing knot of above-mentioned dependence Fruit inputs the first script as parameter, and the first script can then perform its specific service logic according to the parameter.
The embodiment of the present application, can be directed to each functional module of webpage demand, pre-set corresponding second script, respectively Html (HyperText Mark-up Language, HTML) file, each script pair of business or function CSS (Cascading Style Sheets, Cascading Style Sheet) file answered, then for some business or work(of webpage Can, can be in business or function corresponding the if it needs corresponding second script, html files, Cascading Style Sheet In the dependence definition of one script, each second script that first script is relied on, html files and each CSS files are defined.That Client obtains the second script for parsing its dependence, html from its dependence definition first after first script is got File, Cascading Style Sheet file etc. are relied on.For the second script, then first obtain each second script and loaded;For html File, can be obtained the html files and rendered by third party's plug-in unit;For cascade pattern file, third party's plug-in unit can be passed through Obtain each cascade pattern file and render, after each dependence of first script is all disposed, client performs institute again State the code of the service logic of the first script.In this way, the embodiment of the present application possesses advantages below:
First, each function of the demand of webpage is divided into modules by the application according to functional module, then according to Module edit code, is then stored in server, and the code of each module is substantially independent of one another, if certain of some webpage When individual first script needs some function, then the module title and catalogue of the function defined in the dependence of the first script, you can Use the code of the module.In this way, for being developed for front end, the reusability of code is high, reduces the size of code of webpage.
Second, due to dividing modules according to functional module, in the code of webpage, each is relied on using the first script The mode of the code of module, and client can extract the code of corresponding module according to definition, then be patrolled according to corresponding execution Collect and perform, be not used in main html documents defining global variable for modules, the logic of modules can be decoupled, if will The code of the module of One function is changed, due to that can decouple, for being developed for front end, the size of code of modification is small.
Third, based on said process, the clear in structure of web page code, the logic of each business can be decoupled, and conveniently enter industry Graded tasks is torn in business open.
Embodiment two
Reference picture 2, shows the step flow chart of another page script loading method embodiment of the application, specifically may be used To comprise the following steps:
Step 210, the first script is loaded;Dependence defined in the dependence definition of first script includes:Each second Script, html files, each cascade pattern file;The html files include html templates, user data, internationalization file;Institute Stating internationalization file includes the internationalization official documents and correspondence data of various language;The cascade pattern file at different levels includes the level of the first script Join pattern file and the cascade pattern file of at least one the second script;
The embodiment of the present application combination Fig. 2A is described, in Fig. 2A example, has pre-defined the first script A.js, A.js The second script is relied on, the second script includes B.js, C.js, D.js, and relies on html files, and html files include html templates " html ", user data " data ", internationalization file " internationalization official documents and correspondence ", and CSS files are relied on, CSS files include first Script A CSS files A.css, the second script C CSS files C.css, the second script D CSS files D.css.
Above-mentioned A.js, B.js, C.js, D.js, html template " html ", user data " data ", internationalization file are " international Change official documents and correspondence ", A.css, C.css, D.css can be put into some file of the assigned catalogue of server.
Certainly, in the dependence definition of the first script, the path of each dependence in the server is can also configure, is referred to as the aforementioned Determine each dependence in the file of catalogue.
Client is after the first script A.js is got, and such as Fig. 2A loads the A.js in B10.
Step 212, according to the dependence definition for first script, the dependence of first script is parsed;
Be loaded with the embodiment of the present application after A.js, parse its rely on definition, then parse above-mentioned dependence, i.e. B.js, C.js, D.js, html template " html ", user data " data ", internationalization file " internationalization official documents and correspondence ", A.css, C.css, D.css.Such as Fig. 2A B20, it parses the dependence of the A.js after A.js loadings.Then respectively enter B21 and carry out js dependences Loading, B22 progress html templates are rendered, B23 carries out css and rendered.
Step 214, each second script of acquisition are loaded;
As in Fig. 2A, the loading procedure for the js that A.js is relied on is performed in B21.
So the embodiment of the present application can obtain B.js, C.js, D.js respectively from server, then be passed in B211 Return loading.In the embodiment of the present application, if the second script also relies on the script of deeper level, second script can be put In the role of the first script, its dependence is first parsed, the script of its dependence is then loaded, then recurrence loads its other pin at the same level This.
In such as Fig. 2A, if B.js, C.js, D.js all loadeds are judged in B212, into B30.
Step 216, the html moulds of the text types of the html templates are obtained by requirejs third party's plug-in unit Plate, and user data, internationalization file;
As in Fig. 2A, rendering for html templates is performed in B22.
In the embodiment of the present application for html templates " html ", then the file of the text types of " html ", user are obtained Data " data ", internationalization file " internationalization official documents and correspondence ".
In the embodiment of the present application, internationalization file can be stored in the form of json files, and then specifying should The path of json files.Such as foregoing catalogue in the server.In actual applications, can be according to difference in json files Language environment, using language form as sign, the internationalization official documents and correspondence of multilingual is maintained in this part of json file.
Step 218, the language environment of current system is obtained;
Due to including the internationalization official documents and correspondence of multilingual in the json files for the official documents and correspondence that internationalizes, and in order to be adapted to user's The language environment of client, facilitates user to read webpage, the embodiment of the present application is firstly the need of system where obtaining active client Language environment.The language environment of such as current system is Chinese, then can obtain its language environment mark, such as CN.
Step 220, the internationalization official documents and correspondence data of the correspondence language environment are extracted from the internationalization file;
So according to CN, the corresponding internationalization official documents and correspondence data of CN are extracted from json files.
Step 222, ejs template rendering engines are called, the html templates, user data and internationalization official documents and correspondence data are spelled It is connected in html codes;
As in Fig. 2A, in B221, ejs template rendering engines are called, the html templates of foregoing text types are loaded into Then the corresponding internationalization official documents and correspondence data of data and foregoing CN are spliced to the html templates " html ", output is true by " html " The positive html codes that can normally perform.
Step 224, the html codes are performed, and the corresponding sub-interface of the html codes is rendered into specified containers In.
Then the html codes are performed to be rendered accordingly, corresponding object is rendered into specifying described in embodiment one In container.
If such as Fig. 2A judges that html completes to render in B222, into step B30.
Wherein, the step 216- steps 224 are the preferred step of the step 140 of embodiment one.
Step 226, the text of the cascade pattern file of first script is obtained by requirejs third party's plug-in unit The cascade pattern file and the cascade pattern file of at least one the second script of type;
Such as figure previous example, the first script A.js, which includes cascade pattern file A.css, the second script C.js, includes C.css, Second script D.js includes D.css.Second script B.js does not include cascade pattern file.
So such as Fig. 2A, for A.css, the text classes of the A.css can be obtained by requirejs third party's plug-in unit The file of type, is then kept in into internal memory in B231.Meanwhile, it can normally obtain C.css and D.css.
Step 228, the cascade pattern file of at least one second script is loaded and rendered by link labels;
For the C.css and D.css in Fig. 2A, C.css and D.css are rendered by link labels in B232.
Step 230, after the cascade pattern file of the second script is rendered and finished, load and render by style labels The cascade pattern file of the text types.
Such as Fig. 2A, if it is determined that C.css and D.css completes to render in B233, then it is transferred in B234, is obtained from internal memory A.css, A.css is rendered using style labels.If it is determined that A.css is rendered finishes in B235, then into B30.
Wherein, the step 226- steps 230 are the preferred step of the step 150 of embodiment one.
Step 232, after each dependence of first script is all disposed, the business for performing first script is patrolled Volume.
Such as Fig. 2A, in actual applications, B21, B22, B23 can be asynchronous executions, and each several part can not be synchronization It is disposed, then the embodiment of the present application B30 judges whether each several part is carried out finishing, if being carried out finishing, in B40 Perform the code of A.js service logic.After B40 is finished, user can operate A.js related in browser side in the page Function.
The embodiment of the present application, can be directed to each functional module of webpage demand, pre-set corresponding second script, respectively Html (HyperText Mark-up Language, HTML) file, each script pair of business or function CSS (Cascading Style Sheets, Cascading Style Sheet) file answered, then for some business or work(of webpage Can, can be in business or function corresponding the if it needs corresponding second script, html files, Cascading Style Sheet In the dependence definition of one script, each second script that first script is relied on, html files and each CSS files are defined.That Client obtains the second script for parsing its dependence, html from its dependence definition first after first script is got File, Cascading Style Sheet file etc. are relied on.For the second script, then first obtain each second script and loaded;For html File, can be obtained the html files and rendered by third party's plug-in unit;For cascade pattern file, third party's plug-in unit can be passed through Obtain each cascade pattern file and render, after each dependence of first script is all disposed, client performs institute again State the code of the service logic of the first script.In this way, the dependence of each business of web page code is apparent, the generation of each function Code durability is strong, and size of code can be reduced, web page code clear in structure, and the logic of each business can be decoupled, convenient modification webpage Code, facilitates carry out business to tear graded tasks open.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it to be all expressed as to a series of action group Close, but those skilled in the art should know, the embodiment of the present application is not limited by described sequence of movement, because according to According to the embodiment of the present application, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art also should Know, embodiment described in this description belongs to preferred embodiment, involved action not necessarily the application is implemented Necessary to example.
Embodiment three
Reference picture 3, shows a kind of structured flowchart of page script loading device embodiment of the application, can specifically wrap Include following module:
First script load-on module 310, for loading the first script;
Parsing module 320 is relied on, for being defined according to the dependence for first script, first script is parsed Rely on;
Crus secunda present treatment module 330, includes each second script for the dependence when first script, then obtains each the Two scripts are loaded;
Html document processing modules 340, include html files for the dependence when first script, then pass through third party Plug-in unit obtains the html files and rendered;
Pattern document processing module 350 is cascaded, for including each cascade pattern file when the dependence of first script, then Each cascade pattern file is obtained by third party's plug-in unit and rendered;
First script execution module 360, it is described for after each dependence of first script is all disposed, performing The service logic of first script.
In the embodiment of the present application, the page script loading device is in client, such as in browser, is performed When can from server obtain corresponding data.
In the preferred embodiment of the application one, the html files include:Html templates, user data, internationalization text Part;
Then the html document processing modules 340 include:
First acquisition submodule, for obtaining html templates, user data and internationalization file;
Splice submodule, for calling template rendering engine, the html templates, user data and internationalization file are spelled It is connected in html codes;
Html renders submodule, is rendered for performing the html codes, and by the corresponding sub-interface of the html codes Into specified containers.
In the preferred embodiment of the application one, first acquisition submodule includes:
First text file acquisition modules, the html templates of the text types for obtaining the html templates.
In the preferred embodiment of the application one, the internationalization file includes the internationalization official documents and correspondence data of various language;
The splicing submodule includes:
Language environment acquisition submodule, the language environment for obtaining current system;
Official documents and correspondence data extraction module, the internationalization text for extracting the correspondence language environment from the internationalization file Case data;
First splicing submodule, for calling template rendering engine, by the html templates, user data and internationalization text Case data are spliced into html codes.
In the preferred embodiment of the application one, when the cascade pattern files at different levels include the cascade pattern of the first script During the cascade pattern file of file and at least one the second script,
Then the cascade pattern document processing module 350 includes:
Second acquisition submodule, cascade pattern file and the cascade of at least one the second script for obtaining the first script Pattern file;
Pattern processing submodule is relied on, the cascade pattern text for loading and rendering at least one second script Part;
Pattern processing submodule is relied on, after rendering and finishing in the cascade pattern file of the second script, is reloaded simultaneously Render the cascade pattern file of the first script.
In the preferred embodiment of the application one, second acquisition submodule includes:
2nd text file acquisition modules, the level of the text types of the cascade pattern file for obtaining first script Join pattern file.
In the preferred embodiment of the application one, the dependence pattern processing submodule includes:
Style tag processes submodules, after rendering and finishing in the cascade pattern file of the second script, pass through Style labels load and render the cascade pattern file of the text types.
In the preferred embodiment of the application one, the pattern processing submodule that is relied on includes:
Link label processing modules, the cascade at least one second script to be loaded and rendered by link labels Pattern file.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
The embodiment of the present application can pre-set corresponding second script to each function of webpage demand, each business or Html (HyperText Mark-up Language, HTML) file of function, the corresponding CSS of each script (Cascading Style Sheets, Cascading Style Sheet) file, then for some business or function of webpage, if its Need corresponding second script, html files, Cascading Style Sheet, then can be fixed in the dependence definition of corresponding first script Each second script that adopted first script is relied on, html files and each css files.So client get this first After script, it is possible to use (RequireJS is that a JavaScript module is loaded into framework to requirejs, is AMD One of implementor of (Asynchronous Module Definition, asynchronous module load mechanism) specification) etc. storehouse, first from It, which is relied on, obtains the second script for parsing its dependence, html files, Cascading Style Sheet in definition, then obtain each second script and enter Row loading, obtains the html files by third party's plug-in unit and renders, and each cascade pattern file is obtained by third party's plug-in unit And render, after each dependence of first script is all disposed, perform the service logic of first script.In this way, The dependence of each business of web page code is apparent, and corresponding web page code clear in structure, the logic of each business can be decoupled, Size of code is reduced, convenient modification web page code, facilitates carry out business to tear graded tasks open.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with Between the difference of other embodiment, each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present application can be provided as method, device or calculate Machine program product.Therefore, the embodiment of the present application can using complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can use it is one or more wherein include computer can With in the computer-usable storage medium (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
In a typical configuration, the computer equipment includes one or more processors (CPU), input/output Interface, network interface and internal memory.Internal memory potentially includes the volatile memory in computer-readable medium, random access memory The form such as device (RAM) and/or Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is to calculate The example of machine computer-readable recording medium.Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be with Realize that information is stored by any method or technique.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), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic rigid disk storage or Other magnetic storage apparatus or any other non-transmission medium, the information that can be accessed by a computing device available for storage.According to Herein defines, and computer-readable medium does not include the computer readable media (transitory media) of non-standing, such as The data-signal and carrier wave of modulation.
The embodiment of the present application is with reference to according to the method for the embodiment of the present application, terminal device (system) and computer program The flow chart and/or block diagram of product is described.It should be understood that can be by computer program instructions implementation process figure and/or block diagram In each flow and/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These can be provided Computer program instructions are set to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to produce a machine so that held by the processor of computer or other programmable data processing terminal equipments Capable instruction is produced for realizing in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames The device for the function of specifying.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing terminal equipments In the computer-readable memory worked in a specific way so that the instruction being stored in the computer-readable memory produces bag The manufacture of command device is included, the command device is realized in one flow of flow chart or multiple flows and/or one side of block diagram The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows And/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present application, those skilled in the art once know base This creative concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to Including preferred embodiment and fall into having altered and changing for the embodiment of the present application scope.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or terminal device including a series of key elements are not only wrapped Those key elements, but also other key elements including being not expressly set out are included, or also include being this process, method, article Or the intrinsic key element of terminal device.In the absence of more restrictions, by wanting that sentence "including a ..." is limited Element, it is not excluded that also there is other identical element in the process including the key element, method, article or terminal device.
Above to a kind of page script loading method and a kind of page script loading device provided herein, carry out It is discussed in detail, specific case used herein is set forth to the principle and embodiment of the application, above example Illustrate that being only intended to help understands the present processes and its core concept;Simultaneously for those of ordinary skill in the art, according to According to the thought of the application, it will change in specific embodiments and applications, in summary, this specification content It should not be construed as the limitation to the application.

Claims (16)

1. a kind of page script loading method, it is characterised in that including:
Load the first script;
According to the dependence definition for first script, the dependence of first script is parsed;
When the dependence of first script includes each second script, then obtain each second script and loaded;
When the dependence of first script includes html files, then the html files are obtained by third party's plug-in unit and rendered;
When the dependence of first script includes each cascade pattern file, then each cascade pattern file is obtained by third party's plug-in unit And render;
After each dependence of first script is all disposed, the service logic of first script is performed.
2. according to the method described in claim 1, it is characterised in that the html files include:Html templates, user data, Internationalize file;
It is then described the step of obtain the html files by third party's plug-in unit and render, including:
Obtain html templates, user data and internationalization file;
Template rendering engine is called, the html templates, user data and internationalization file are spliced into html codes;
The html codes are performed, and the corresponding sub-interface of the html codes is rendered into specified containers.
3. method according to claim 2, it is characterised in that the step of the acquisition html templates, including:
Obtain the html templates of the text types of the html templates.
4. according to the method in claim 2 or 3, it is characterised in that the internationalization file includes the world of various language Change official documents and correspondence data;
It is then described to call template rendering engine, the html templates, user data and internationalization file are spliced into html codes The step of, including:
Obtain the language environment of current system;
The internationalization official documents and correspondence data of the correspondence language environment are extracted from the internationalization file;
Template rendering engine is called, the html templates, user data and internationalization official documents and correspondence data are spliced into html codes.
5. according to the method described in claim 1, it is characterised in that when the cascade pattern files at different levels include the first script When cascading the cascade pattern file of pattern file and at least one the second script,
It is then described that each cascade pattern file is obtained and the step of render by third party's plug-in unit, including:
Obtain the cascade pattern file of the first script and the cascade pattern file of at least one the second script;
Load and render the cascade pattern file of at least one second script;
After the cascade pattern file of the second script is rendered and finished, the cascade pattern file of the first script is reloaded and rendered.
6. method according to claim 5, it is characterised in that the step of the cascade pattern file of the script of acquisition first Suddenly, including:
Obtain the cascade pattern file of the text types of the cascade pattern file of first script.
7. method according to claim 6, it is characterised in that the cascade pattern file in the second script, which is rendered, to be finished Afterwards, the step of reloading and render the cascade pattern file of the first script, including:
After the cascade pattern file of the second script is rendered and finished, loaded by style labels and render the text types Cascade pattern file.
8. method according to claim 6, it is characterised in that the loading simultaneously renders at least one second script The step of cascading pattern file, including:
The cascade pattern file of at least one second script is loaded and rendered by link labels.
9. a kind of page script loading device, it is characterised in that including:
First script load-on module, for loading the first script;
Parsing module is relied on, for being defined according to the dependence for first script, the dependence of first script is parsed;
Crus secunda present treatment module, includes each second script for the dependence when first script, then obtains each second script Loaded;
Html document processing modules, include html files for the dependence when first script, are then obtained by third party's plug-in unit Take the html files and render;
Pattern document processing module is cascaded, for including each cascade pattern file when the dependence of first script, then by the Three side plugs obtain each cascade pattern file and rendered;
First script execution module, for after each dependence of first script is all disposed, performing first pin This service logic.
10. device according to claim 9, it is characterised in that the html files include:Html templates, user data, Internationalize file;
Then the html document processing modules include:
First acquisition submodule, for obtaining html templates, user data and internationalization file;
Splice submodule, for calling template rendering engine, the html templates, user data and internationalization file are spliced into Html codes;
Html renders submodule, and finger is rendered into for performing the html codes, and by the corresponding sub-interface of the html codes In constant volume device.
11. device according to claim 10, it is characterised in that first acquisition submodule includes:
First text file acquisition modules, the html templates of the text types for obtaining the html templates.
12. device according to claim 10, it is characterised in that the internationalization file includes the internationalization of various language Official documents and correspondence data;
The splicing submodule includes:
Language environment acquisition submodule, the language environment for obtaining current system;
Official documents and correspondence data extraction module, the internationalization official documents and correspondence number for extracting the correspondence language environment from the internationalization file According to;
First splicing submodule, for calling template rendering engine, by the html templates, user data and internationalization official documents and correspondence number According to being spliced into html codes.
13. device according to claim 10, it is characterised in that when the cascade pattern files at different levels include the first script Cascade pattern file and at least one the second script cascade pattern file when,
Then the cascade pattern document processing module includes:
Second acquisition submodule, for obtaining the cascade pattern file of the first script and the cascade pattern of at least one the second script File;
Pattern processing submodule is relied on, the cascade pattern file for loading and rendering at least one second script;
Pattern processing submodule is relied on, after rendering and finishing in the cascade pattern file of the second script, reloads and renders The cascade pattern file of first script.
14. device according to claim 13, it is characterised in that second acquisition submodule includes:
2nd text file acquisition modules, the cascade sample of the text types of the cascade pattern file for obtaining first script Formula file.
15. device according to claim 14, it is characterised in that the dependence pattern processing submodule includes:
Style tag processes submodules, after rendering and finishing in the cascade pattern file of the second script, are marked by style Label load and render the cascade pattern file of the text types.
16. device according to claim 14, it is characterised in that the pattern processing submodule that is relied on includes:
Link label processing modules, the cascade pattern at least one second script to be loaded and rendered by link labels File.
CN201610041684.9A 2016-01-21 2016-01-21 A kind of page script loading method and device Pending CN106990976A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201610041684.9A CN106990976A (en) 2016-01-21 2016-01-21 A kind of page script loading method and device
PCT/CN2017/070890 WO2017124952A1 (en) 2016-01-21 2017-01-11 Webpage script loading method and device
TW106101735A TW201732647A (en) 2016-01-21 2017-01-18 Webpage script loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610041684.9A CN106990976A (en) 2016-01-21 2016-01-21 A kind of page script loading method and device

Publications (1)

Publication Number Publication Date
CN106990976A true CN106990976A (en) 2017-07-28

Family

ID=59361441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610041684.9A Pending CN106990976A (en) 2016-01-21 2016-01-21 A kind of page script loading method and device

Country Status (3)

Country Link
CN (1) CN106990976A (en)
TW (1) TW201732647A (en)
WO (1) WO2017124952A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083845A (en) * 2019-04-25 2019-08-02 数译(成都)信息技术有限公司 Web page translation method and system
CN110244955A (en) * 2019-05-29 2019-09-17 广州至真信息科技有限公司 A kind of processing method of application, device, server and medium
CN110865852A (en) * 2019-11-19 2020-03-06 北京字节跳动网络技术有限公司 Webpage component loading method and device, electronic equipment and storage medium
CN110889270A (en) * 2018-08-16 2020-03-17 阿里巴巴集团控股有限公司 Form page document generation method and form page rendering method and device
CN110968358A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Method and device for loading script module based on browser plug-in
CN110989992A (en) * 2019-10-30 2020-04-10 无线生活(北京)信息技术有限公司 Resource processing method and device
CN111736829A (en) * 2020-06-16 2020-10-02 上海英方软件股份有限公司 Method and device for switching page style based on Web internationalization
CN112052048A (en) * 2020-08-07 2020-12-08 深圳市欢太科技有限公司 Data loading method and device, equipment and storage medium
CN112788083A (en) * 2019-11-11 2021-05-11 福建天晴数码有限公司 Method for carrying out engine resource file transmission management based on FTP
CN115729557A (en) * 2022-11-16 2023-03-03 格兰菲智能科技有限公司 Script processing method and device

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416311A (en) * 2019-08-22 2021-02-26 北京国双科技有限公司 Data processing method and device, storage medium and processor
CN112540745B (en) * 2019-09-20 2024-07-26 北京国双科技有限公司 Component rendering method and device
CN110825373B (en) * 2019-10-10 2023-04-25 上海上湖信息技术有限公司 Mobile terminal dynamic method and device
CN111124482B (en) * 2019-12-25 2024-05-07 北京达佳互联信息技术有限公司 Configuration method and device for document information
CN112181374B (en) * 2020-09-25 2024-03-12 广州力挚网络科技有限公司 Data integration method and device, electronic equipment and storage medium
CN112800724B (en) * 2020-12-29 2024-07-19 杭州涂鸦信息技术有限公司 Readable file export method and related device of visual configuration template
CN113626014A (en) * 2021-08-09 2021-11-09 宝宝巴士股份有限公司 Plug-in implementation method based on Xcode
CN114238819A (en) * 2021-12-22 2022-03-25 北京升明科技有限公司 Webpage rendering method and device
CN114637548B (en) * 2022-02-18 2024-09-13 高德信息技术有限公司 Method, device and computer program product for loading dependent module
CN115185503B (en) * 2022-05-17 2023-11-14 贝壳找房(北京)科技有限公司 Front-end low-code development method and device, electronic equipment and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015954A1 (en) * 2001-03-19 2004-01-22 Autodesk, Inc. Method and apparatus for delivering electronic information
EP2090990A1 (en) * 2008-02-14 2009-08-19 Research in Motion Limited A method, server and system for optimizing html-based content
CN101669114A (en) * 2007-04-27 2010-03-10 微软公司 dynamically loading scripts
CN101739458A (en) * 2009-12-02 2010-06-16 中兴通讯股份有限公司 Method and system for updating multilingual resource
CN101963987A (en) * 2010-09-30 2011-02-02 百度在线网络技术(北京)有限公司 Methods and equipments for generating and loading web page file
CN102902781A (en) * 2012-09-28 2013-01-30 五八有限公司 Method and device for webpage decoration and pushing
CN103164246A (en) * 2013-03-21 2013-06-19 北京小米科技有限责任公司 Method and device capable of providing multi-language support
CN103645913A (en) * 2013-11-15 2014-03-19 广州杰赛科技股份有限公司 Language loading method and device in J2EE system
CN105138555A (en) * 2015-07-20 2015-12-09 新浪网技术(中国)有限公司 Webpage multi-language internationalization loading method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6578192B1 (en) * 1999-10-20 2003-06-10 International Business Machines Corporation Method and system for supporting dynamic document content expressed in a component-level language

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040015954A1 (en) * 2001-03-19 2004-01-22 Autodesk, Inc. Method and apparatus for delivering electronic information
CN101669114A (en) * 2007-04-27 2010-03-10 微软公司 dynamically loading scripts
EP2090990A1 (en) * 2008-02-14 2009-08-19 Research in Motion Limited A method, server and system for optimizing html-based content
CN101739458A (en) * 2009-12-02 2010-06-16 中兴通讯股份有限公司 Method and system for updating multilingual resource
CN101963987A (en) * 2010-09-30 2011-02-02 百度在线网络技术(北京)有限公司 Methods and equipments for generating and loading web page file
CN102902781A (en) * 2012-09-28 2013-01-30 五八有限公司 Method and device for webpage decoration and pushing
CN103164246A (en) * 2013-03-21 2013-06-19 北京小米科技有限责任公司 Method and device capable of providing multi-language support
CN103645913A (en) * 2013-11-15 2014-03-19 广州杰赛科技股份有限公司 Language loading method and device in J2EE system
CN105138555A (en) * 2015-07-20 2015-12-09 新浪网技术(中国)有限公司 Webpage multi-language internationalization loading method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHEERFULCODER: "requireJs的模块加载和依赖机制的分析和简单实现", 《HTTPS://WWW.CNBLOGS.COM/CHEERFULCODER/P/4339742.HTML》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110889270A (en) * 2018-08-16 2020-03-17 阿里巴巴集团控股有限公司 Form page document generation method and form page rendering method and device
CN110889270B (en) * 2018-08-16 2023-04-07 阿里巴巴集团控股有限公司 Form page document generation method, form page rendering method and device
CN110968358A (en) * 2018-09-30 2020-04-07 北京国双科技有限公司 Method and device for loading script module based on browser plug-in
CN110083845A (en) * 2019-04-25 2019-08-02 数译(成都)信息技术有限公司 Web page translation method and system
CN110244955B (en) * 2019-05-29 2023-04-18 广州至真信息科技有限公司 Application processing method, device, server and medium
CN110244955A (en) * 2019-05-29 2019-09-17 广州至真信息科技有限公司 A kind of processing method of application, device, server and medium
CN110989992A (en) * 2019-10-30 2020-04-10 无线生活(北京)信息技术有限公司 Resource processing method and device
CN110989992B (en) * 2019-10-30 2023-10-31 无线生活(北京)信息技术有限公司 Resource processing method and device
CN112788083A (en) * 2019-11-11 2021-05-11 福建天晴数码有限公司 Method for carrying out engine resource file transmission management based on FTP
CN112788083B (en) * 2019-11-11 2023-09-01 福建天晴数码有限公司 Method for carrying out engine resource file transmission management based on FTP
CN110865852A (en) * 2019-11-19 2020-03-06 北京字节跳动网络技术有限公司 Webpage component loading method and device, electronic equipment and storage medium
CN111736829A (en) * 2020-06-16 2020-10-02 上海英方软件股份有限公司 Method and device for switching page style based on Web internationalization
CN112052048A (en) * 2020-08-07 2020-12-08 深圳市欢太科技有限公司 Data loading method and device, equipment and storage medium
CN115729557A (en) * 2022-11-16 2023-03-03 格兰菲智能科技有限公司 Script processing method and device
CN115729557B (en) * 2022-11-16 2024-01-26 格兰菲智能科技有限公司 Script processing method and device

Also Published As

Publication number Publication date
TW201732647A (en) 2017-09-16
WO2017124952A1 (en) 2017-07-27

Similar Documents

Publication Publication Date Title
CN106990976A (en) A kind of page script loading method and device
US20170192877A1 (en) Mobile application development and deployment
CN106406844B (en) Method and device for realizing public number menu of communication interaction platform
Singh et al. Formulating an MVC framework for web development in JAVA
CN111367514B (en) Page card development method and device, computing device and storage medium
CN102651002A (en) Webpage information extracting method and system
CN105094930A (en) Image positioning system and method
CN111831384A (en) Language switching method and device, equipment and storage medium
CN105447072B (en) Configurable interface framework and searching method and system using same
CN112417338B (en) Page adaptation method, system and equipment
US20200026802A1 (en) Image quality independent searching of screenshots of web content
WO2020238070A1 (en) Web page segmentation and search algorithm-based service packaging method
CN112507273A (en) Webpage generating method and device and electronic equipment
WO2014154033A1 (en) Method and apparatus for extracting web page content
CN109806592A (en) A kind of monitoring method and device of game resource
US20170212735A1 (en) Replicating a web technology
CN107147645A (en) The acquisition methods and device of network security data
US8862976B1 (en) Methods and systems for diagnosing document formatting errors
CN115033436A (en) Page testing method and device, electronic equipment and storage medium
CN104899217A (en) Method and apparatus for implementing customized function
CN111435300A (en) Web system development method, device, equipment and storage medium
CN102929777B (en) Network application method of testing and test macro
Jakus et al. New technologies for web development
CN102929776B (en) The method of testing that network application is tested and testing apparatus
CN118466911B (en) Recommendation method, recommendation device, recommendation equipment and 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: 20170728

RJ01 Rejection of invention patent application after publication