CN110362308A - Page generation method, device, computer equipment and storage medium - Google Patents
Page generation method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN110362308A CN110362308A CN201910536907.2A CN201910536907A CN110362308A CN 110362308 A CN110362308 A CN 110362308A CN 201910536907 A CN201910536907 A CN 201910536907A CN 110362308 A CN110362308 A CN 110362308A
- Authority
- CN
- China
- Prior art keywords
- page
- button
- page data
- configuration file
- parameters
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
This application involves research and development to manage, and provides a kind of page generation method, device, computer equipment and storage medium.The described method includes: receiving first page access instruction, first page data acquisition request is sent to server according to first page access instruction;Receive the first page data and the first configuration file that server returns;Load first page data, when the pre-set button component being loaded into first page data, the first configuration file is parsed, first page button parameters are obtained, first page button parameters are passed in pre-set button component, the first page data with first object button assembly are obtained;When the first page data with first object button assembly, which load, to be completed, the first page for having first object button is generated.Page button code complexity can reduce using this method, reduce the rendering node of page button, promote efficiency of page generation.
Description
Technical field
This application involves field of computer technology, more particularly to a kind of page generation method, device, computer equipment and
Storage medium.
Background technique
Currently, needing a whole set of operation flow that could complete to act on behalf the processing of part in acting on behalf part processing platform.Each
Operation flow can all have the corresponding processing page.There can be corresponding treatment button on each processing page, for example, in creation generation
It does the part business page and has creation button.Can all there are some duplicate buttons in the button of different operation flow nodes, thus
It results in button code in the page to repeat, improves the complexity of code, so that the page is needed when generating to every in the page
A button all carries out repeating rendering, the inefficiency that the page generates.
Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, providing one kind can reduce page code complexity, improve the page
Page generation method, device, computer equipment and the storage medium of formation efficiency.
A kind of page generation method, which comprises
First page access instruction is received, first page data acquisition is sent to server according to first page access instruction
Request;
Receive the first page data and the first configuration file that server returns;
First page data are loaded, when the pre-set button component being loaded into first page data, the first configuration of parsing
File obtains first page button parameters, and first page button parameters are passed in pre-set button component, obtains with the first mesh
Mark the first page data of button assembly;
When the first page data with first object button assembly, which load, to be completed, generate with first object button
First page.
In one of the embodiments, when with first object button assembly first page data load complete when,
After generation is with the first page of the target button, further includes:
Start default monitor, when detecting the trigger event to first object button by default monitor, to clothes
Business device sends the associated second page data acquisition request of first object button;
Receive the second page data and the second configuration file that server returns;
Second page data are loaded, when the pre-set button component being loaded into second page data, the second configuration of parsing
File obtains second page button parameters, and second page button parameters are passed in pre-set button component, obtains with the second mesh
Mark the second page data of button assembly;
When the second page data with second the target button component, which load, to be completed, generate with second the target button
Second page.
First page access instruction is being received in one of the embodiments, according to first page access instruction to service
Device is sent before first page data acquisition request, further includes:
It receives configuration file generation to instruct, carries developer in configuration file generation instruction and identify and target pages
Button parameters information;
When developer's identity verification passes through, button parameters key assignments is generated according to the button parameters information of target pages
It is right, button parameters key-value pair is written in default file, the configuration file of target pages is obtained, by the configuration file of target pages
Upload server saves.
First page button parameters are passed in pre-set button component in one of the embodiments, are obtained with first
The first page data of the target button component, comprising:
The validity for verifying first page button parameters, it is when being verified, first page button parameters are incoming default
In button assembly, the first page data with first object button assembly are obtained.
The first page data and the first configuration file that server returns are received in one of the embodiments, comprising:
Receive the first configuration file of first page data and encryption that server returns;
Decruption key is obtained, is decrypted using first configuration file of the decruption key to encryption, the first configuration text is obtained
Part.
It is raw in one of the embodiments, when the first page data with first object button assembly, which load, to be completed
At the first page for having first object button, comprising:
Compiling has the first page data of first object button assembly, obtains first page element-tree;
First page element-tree is parsed, the first page for having first object button is drawn according to parsing result.
It is raw in one of the embodiments, when the first page data with first object button assembly, which load, to be completed
At the first page for having first object button, comprising:
Render request is sent to server, carries the first page number for having first object button assembly in render request
According to;
The rendering result to the first page data with first object button assembly that server returns is obtained, according to wash with watercolours
It contaminates result and generates the first page for having first object button.
A kind of webpage generating device, described device include:
Command reception module is sent out according to first page access instruction to server for receiving first page access instruction
Send first page data acquisition request;
Data reception module, for receiving the first page data and the first configuration file of server return;
Parameter afferent module, for loading first page data, when the pre-set button group being loaded into first page data
When part, the first configuration file is parsed, first page button parameters are obtained, first page button parameters are passed to pre-set button component
In, obtain the first page data with first object button assembly;
Page generation module, for generating when the first page data with first object button assembly load completion
First page with first object button.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device performs the steps of when executing the computer program
First page access instruction is received, first page data acquisition is sent to server according to first page access instruction
Request;
Receive the first page data and the first configuration file that server returns;
First page data are loaded, when the pre-set button component being loaded into first page data, the first configuration of parsing
File obtains first page button parameters, and obtains pre-set button component, and first page button parameters are passed to pre-set button group
In part, the first page data with first object button assembly are obtained;
When the first page data with first object button assembly, which load, to be completed, generate with first object button
First page.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
It is performed the steps of when row
First page access instruction is received, first page data acquisition is sent to server according to first page access instruction
Request;
Receive the first page data and the first configuration file that server returns;
First page data are loaded, when the pre-set button component being loaded into first page data, the first configuration of parsing
File obtains first page button parameters, and first page button parameters are passed in pre-set button component, obtains with the first mesh
Mark the first page data of button assembly;
When the first page data with first object button assembly, which load, to be completed, generate with first object button
First page.
Above-mentioned page generation method, device, computer equipment and storage medium, by obtaining in loading page data
Configuration file in page button parameter, then will page button parameter be written page data in pre-set button component in
To the target button component, the button of page presentation is obtained by loading the target button component, it is complicated to reduce page button code
Degree, render component corresponding node when by loading the target button component reduce the rendering node of page button, save page rendering
Time improves efficiency of page generation.
Detailed description of the invention
Fig. 1 is the application scenario diagram of page generation method in one embodiment;
Fig. 2 is the flow diagram of page generation method in one embodiment;
Fig. 3 is the schematic diagram of the page generated in a specific embodiment;
Fig. 4 is the flow diagram that second page is generated in one embodiment;
Fig. 5 is to obtain the flow diagram of configuration file in one embodiment;
Fig. 6 is the flow diagram that configuration file is decrypted in one embodiment;
Fig. 7 is the flow diagram that first page is generated in one embodiment;
Fig. 8 is the flow diagram of server rendering in one embodiment;
Fig. 9 is the structural block diagram of webpage generating device in one embodiment;
Figure 10 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Page generation method provided by the present application can be applied in application environment as shown in Figure 1.Wherein, terminal 102
It is communicated by network with server 104.Terminal 102 receives first page access instruction, according to first page access instruction
First page data acquisition request is sent to server;The first page data that the reception server 104 of terminal 102 returns, first
It include the first configuration file in page data;Terminal 102 parses the first configuration file, obtains first page button parameters, and obtain
Pre-set button component is taken, first page button parameters are passed in pre-set button component, first object button assembly is obtained;Terminal
102 rendering first object button assemblies and first page data, generate the first page for having first object button.Wherein, eventually
End 102 can be, but not limited to be various personal computers, laptop, smart phone, tablet computer and portable wearable
Equipment, server 104 can be realized with the server cluster of the either multiple server compositions of independent server.
In one embodiment, as shown in Fig. 2, providing a kind of page generation method, it is applied in Fig. 1 in this way
It is illustrated for terminal, comprising the following steps:
S202 receives first page access instruction, sends first page number to server according to first page access instruction
According to acquisition request.
Wherein, first page data, which refer to, generates the essential related data of page institute.For example, page resource data,
Page configuration file and code file etc..
Specifically, terminal receives the first page access instruction that user sends, and parses page orientations instruction, is serviced
Device address sends first page data acquisition to the corresponding server of server address according to the first page access instruction and asks
It asks.
S204 receives first page data and the first configuration file that server returns.
Wherein, which is configured with the script file of first page button parameters information, and first page is pressed
Button parameter refers to the related data of button in the page.
Specifically, terminal receives the first page data and the first configuration file that server returns.
S206 loads first page data, when the pre-set button component being loaded into first page data, parsing first
Configuration file obtains first page button parameters, and first page button parameters are passed in pre-set button component, are obtained with the
The first page data of one the target button component.
Wherein, first page button parameters refer to the related data of button in the page, such as button quantity, pattern letter
Breath, size information, location information and event information etc..Pre-set button component refer to pre-set can the Show Button and
Realize the component of button logic.It realizes that button logic refers to realize with the code of the dependent event of button, be jumped for example, clicking button
Another page is gone to, that is, jumps logic realization.Clicking operation and the page jumped can configure in configuration file.Click is pressed
Button triggers page corresponding event, i.e. triggering logic realizes that the corresponding event of clicking operation and triggering can match in configuration file
It sets.First object button assembly refers to that pre-set button component is passed to the component obtained after first page button parameters, uses next life
At the button in first page.
Specifically, terminal loads first page data, when the pre-set button component being loaded into first page data, i.e.,
When needing loading page button, the first configuration file is parsed, first page button parameters is obtained, first page button parameters is passed
Enter in pre-set button component, obtain first object button assembly, to load first object button assembly, generates in first page
First object button, then proceed to load first page data.
S208 is generated when the first page data with first object button assembly, which load, to be completed and is had first object
The first page of button.
Specifically, terminal when the first page data with first object button assembly load complete when, i.e. first object
Button assembly load is completed, and first page data also load when completing, and generate the first page for having first object button.?
In one specific embodiment, the relevant page of charg`e d'affaires's part of generation is as shown in Figure 3, wherein button includes in the page
Button send, button reassign with button filing etc..
In above-mentioned page generation method, by receiving first page access instruction, by obtaining in loading page data
Configuration file in page button parameter, then will page button parameter be written page data in pre-set button component in
To the target button component, the button of page presentation is obtained by loading the target button component, it is complicated to reduce page button code
Degree, render component corresponding node when by loading the target button component reduce the rendering node of page button, save page rendering
Time improves efficiency of page generation.
In one embodiment, as shown in figure 4, after step S208, that is, working as with first object button assembly
When the load of first page data is completed, after generating the first page with the target button, further comprise the steps of:
S402 starts default monitor, when detecting the trigger event to first object button by default monitor,
The associated second page data acquisition request of first object button is sent to server.
Specifically, terminal starts default monitor, the first object button in first page is monitored, when this presets monitor
When detecting the trigger event to first object button, the associated second page data of first object button are sent to server and are obtained
Take request.Wherein, trigger event can be click button, double-click button and mouse and move on at button etc..
S404 receives second page data and the second configuration file that server returns.
Wherein, the parameter information of button in second page, including button quantity, pattern letter are configured in the second configuration file
Breath, size information, location information and event information etc..
Specifically, terminal receives the first page data and the second configuration file that server returns.
S406 loads second page data, when the pre-set button component being loaded into second page data, parsing second
Configuration file obtains second page button parameters, and second page button parameters are passed in pre-set button component, are obtained with the
The second page data of two the target button components.
Specifically, terminal parses second configuration file, obtains second page button parameters, and terminal is by second page button
Parameter is passed in pre-set button component, obtains second the target button component to get second with second the target button component is arrived
Page data.In one embodiment, also available to all when part is acted on behalf in processing when obtaining first page data
Page data obtains the configuration file of all pages, and obtained configuration file is saved in memory.When needing second page number
When according to the second configuration file, second page data and the second configuration file are directly got from memory.
S408 is generated when the second page data with second the target button component, which load, to be completed and is had the second target
The second page of button.
Specifically, when the second page data with second the target button component, which load, to be completed, i.e., terminal is loading
Second the target button component, continue load second page data in content, when all the elements in second page data all by
When having loaded, the second page for having second the target button is generated.In a specific embodiment, as shown in figure 3, clicking figure
In reassign button, then terminal will jump to the page reassigned, in the page can to act on behalf part carry out reassigning processing.
In one embodiment, button assembly is pre-established, confirming button component parameter object, confirming button group are passed through
Part realizes logical code, according to button assembly parameter object and realizes that logical code obtains pre-set button component, is generating the page
When, the pre-set button component and configured button parameters file can be used to generate the button in the page, it is convenient and efficient.
In the above-described embodiments, button event is monitored by default monitor, when button event triggering, by by the
Button parameters are passed in pre-set button component in two configuration files, second the target button component are obtained, to generate second page
Second the target button in face generates the button in the page by using configuration file and pre-set button component, reduces the page
Code complexity reduces page load time i.e. render time, improves efficiency of page generation.
In one embodiment, as shown in figure 5, before step S202, that is, first page access instruction is being received, according to
Before first page access instruction sends first page data acquisition request to server, further comprise the steps of:
S502 receives configuration file and generates instruction, which, which generates, carries developer's mark and target in instruction
The button parameters information of the page.
Wherein, developer's mark is used for unique identification developer.
Specifically, exploitation terminal receives configuration file and generates instruction, parses the configuration file and generates instruction, obtains the configuration
The button parameters information of the developer mark and target pages that are carried in file generated instruction.In one embodiment, this is matched
It sets and only carries developer's mark in file generated instruction.Then instruction is generated according to configuration file and generates configuration interface, led to
Cross the button parameters information that configuration interface obtains the target pages of developer's configuration.
S502 generates button parameters according to the button parameters information of target pages when developer's identity verification passes through
Button parameters key-value pair is written in default file, the configuration file of target pages is obtained, by the configuration of target pages by key-value pair
File upload services device saves.
Specifically, the permission for verifying developer's mark, when developer's identity verification passes through, according to target pages
Button parameters information generates button parameters key-value pair, and button parameters key-value pair is written in default file, target pages are obtained
Configuration file saves the configuration file upload server of target pages.
In the above-described embodiments, instruction is generated by receiving configuration file, which, which generates, carries exploitation in instruction
The button parameters information of giver identification and target pages, when developer's identity verification passes through, according to the button of target pages
Parameter information generates button parameters key-value pair, and button parameters key-value pair is written in default file, the configuration of target pages is obtained
File saves the configuration file upload server of target pages.Configuration file can taken with pre-configured configuration file
Business device saves, and can directly carry out using convenient and efficient.
In one embodiment, first page button parameters are passed in pre-set button component, obtain band by step S206
There are the first page data of first object button assembly, comprising steps of
The validity for verifying first page button parameters, it is when being verified, first page button parameters are incoming default
In button assembly, the first page data with first object button assembly are obtained.
Specifically, the validity of terminal authentication first page button parameters can be used checker and be verified, for example tests
Demonstrate,prove whether button pattern is reasonable, and whether in the reasonable scope, whether color is correct for length and width, and whether font meets, button state letter
Whether breath is correct etc..When the validity for verifying first page button parameters passes through, first page button parameters are passed
Enter pre-set button component, obtains first object button assembly and obtain the first page data with first object button assembly.
When verifying does not pass through, the prompt wrong to terminal notifying button parameters, in order to which user carries out the modification of configuration file.One
In a embodiment, validation verification is carried out to each page button parameter got.
In the above-described embodiments, the validity for verifying first page button parameters presses first page when being verified
Button parameter is passed in pre-set button component, obtains the first page data with first object button assembly, avoids incoming mistake
Parameter, improve the accuracy of the page of generation.
In one embodiment, as shown in fig. 6, step S204, i.e. the first page data that return of reception server and the
One configuration file, comprising steps of
S602 receives the first configuration file of first page data and encryption that server returns.
Specifically, terminal receives the first configuration file of first page data and encryption that server returns.The encryption
First configuration file is that server according to the account of user generates a pair of secret keys, uses public key encryption first configuration file, will
Private key is sent to user terminal, and the private key saved in server is deleted.
S604 is obtained decruption key, is decrypted using first configuration file of the decruption key to encryption, obtains first and match
Set file.
Specifically, terminal gets decruption key, is decrypted using decruption key to the first configuration file of encryption,
Obtain the first configuration file.I.e. terminal gets the private key locally saved, using the private key pair encryption the first configuration file into
Row decryption, obtains the first configuration file.
In the above-described embodiments, by receiving the first configuration file of first page data and encryption that server returns,
Decruption key is obtained, is decrypted using first configuration file of the decruption key to encryption, obtains the first configuration file, Ke Yibao
Safety of the configuration file in transmission process is demonstrate,proved, is not stolen.
In one embodiment, as shown in fig. 7, step S208, i.e., when the first page for having first object button assembly
When data load is completed, the first page for having first object button is generated, comprising steps of
S702, compiling have the first page data of first object button assembly, obtain first page element-tree.
Specifically, terminal compiling has the first page data of first object button assembly, obtains first page DOM (text
Shelves object model (Document, Object Model) element-tree.
S704 parses first page element-tree, and the first page for having first object button is drawn according to parsing result.
Specifically, terminal parses the first page element-tree, draws the with first object button according to parsing result
One page.In one embodiment, terminal can first generate page elements tree when generating the page, then parse element-tree, most
The drafting of the page is carried out afterwards.
In the above-described embodiments, compiling has the first page data of first object button assembly, obtains first page face element
Element tree draws the first page for having first object button according to parsing result, realizes by parsing first page element-tree
The generation of first page.
In one embodiment, as shown in figure 8, step S208, i.e., when the first page for having first object button assembly
When data load is completed, the first page for having first object button is generated, comprising steps of
S802 sends render request to server, carries the first page for having first object button assembly in render request
Face data;
Specifically, terminal to server sends render request, carries in the render request with first object button group
The first page data of part after server receives render request, parse the render request, obtain with first object button group
The first page data of part have the first page data render of first object button assembly to this, rendering result are obtained, by wash with watercolours
It contaminates result and returns to terminal.
S804 obtains the rendering result to the first page data with first object button assembly that server returns,
The first page for having first object button is generated according to rendering result.
Specifically, terminal obtains the first page data with first object button assembly that server returns, according to clothes
The rendering result of business device generates the first page for having first object button.In one embodiment, when generating other pages,
It can also be rendered in the server, terminal receives rendering result and generates the page.
In the above-described embodiments, the rendering of page data is carried out by server, promotes rendering efficiency, and it is raw to improve the page
At efficiency.
It should be understood that although each step in the flow chart of Fig. 2 and Fig. 4-8 is successively shown according to the instruction of arrow
Show, but these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, this
There is no stringent sequences to limit for the execution of a little steps, these steps can execute in other order.Moreover, Fig. 2 and Fig. 4-8
In at least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily multiple sub-steps
Completion is executed in synchronization, but can be executed at different times, the execution in these sub-steps or stage sequence is not yet
Necessarily successively carry out, but can be at least part of the sub-step or stage of other steps or other steps in turn
Or it alternately executes.
In one embodiment, as shown in figure 9, providing a kind of webpage generating device 900, comprising: command reception module
902, data reception module 904, parameter afferent module 906 and page generation module 908, in which:
Command reception module 902, for receiving first page access instruction, according to first page access instruction to server
Send first page data acquisition request;
Data reception module 904, for receiving the first page data and the first configuration file of server return;
Component obtains module 906, for loading first page data, when the pre-set button being loaded into first page data
When component, the first configuration file is parsed, first page button parameters are obtained, first page button parameters are passed to pre-set button group
In part, the first page data with first object button assembly are obtained;
Page generation module 908, for giving birth to when the first page data with first object button assembly load completion
At the first page for having first object button.
In one embodiment, webpage generating device 900, further includes:
Monitoring module, for starting default monitor, when detecting the touching to first object button by default monitor
When hair event, the associated second page data acquisition request of first object button is sent to server;
Second data reception module, for receiving the second page data and the second configuration file of server return;
Second component obtains module, for loading second page data, when be loaded into second page data it is default by
When button component, the second configuration file is parsed, second page button parameters are obtained, second page button parameters are passed to pre-set button
In component, the second page data with second the target button component are obtained;
Second page generation module, for when with second the target button component second page data load complete when,
Generate the second page for having second the target button.
In one embodiment, webpage generating device 900, further includes:
Command reception module is generated, generates instruction for receiving configuration file, which generates to carry in instruction and open
Send out the button parameters information of giver identification and target pages;
Configuration file obtains module, for when developer's identity verification passes through, according to the button parameters of target pages
Information generates button parameters key-value pair, and button parameters key-value pair is written in default file, the configuration file of target pages is obtained,
The configuration file upload server of target pages is saved.
In one embodiment, parameter afferent module 906, comprising:
Effective authentication unit, for verifying the validity of first page button parameters, when being verified, by first page
Button parameters are passed in pre-set button component, obtain the first page data with first object button assembly.
In one embodiment, data reception module 904 are also used to receive the first page data sum number of server return
First configuration file;Decruption key is obtained, is decrypted using first configuration file of the decruption key to encryption, is obtained first and match
Set file.
In one embodiment, page generation module 908, is also used to: compiling has the first of first object button assembly
Page data obtains first page element-tree;First page element-tree is parsed, is drawn according to parsing result and is pressed with first object
The first page of button.
In one embodiment, page generation module 908, comprising:
Render request transmission unit carries in render request for sending render request to server and has first object
The first page data of button assembly;
Rendering result acquiring unit, for obtain server return to have first object button assembly first page
The rendering result of data generates the first page for having first object button according to rendering result.
Specific about webpage generating device limits the restriction that may refer to above for page generation method, herein not
It repeats again.Modules in above-mentioned webpage generating device can be realized fully or partially through software, hardware and combinations thereof.On
Stating each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also store in a software form
In memory in computer equipment, the corresponding operation of the above modules is executed in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure
Figure can be as shown in Figure 10.The computer equipment includes the processor connected by system bus, memory, network interface, shows
Display screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment
Memory includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer
Program.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The meter
The network interface for calculating machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor
To realize a kind of page generation method.The display screen of the computer equipment can be liquid crystal display or electric ink is shown
Screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible on computer equipment shell
Key, trace ball or the Trackpad of setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figure 10, only part relevant to application scheme
The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set
Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with
Computer program, which performs the steps of when executing computer program receives first page access instruction, according to first
Page access instructs to server and sends first page data acquisition request;Receive the first page data and that server returns
One configuration file;First page data are loaded, when the pre-set button component being loaded into first page data, parsing first is matched
File is set, first page button parameters are obtained, first page button parameters are passed in pre-set button component, is obtained with first
The first page data of the target button component;It is raw when the first page data with first object button assembly, which load, to be completed
At the first page for having first object button.
In one embodiment, starting default monitor is also performed the steps of when processor executes computer program, when
When detecting the trigger event to first object button by default monitor, it is associated that first object button is sent to server
Second page data acquisition request;Receive the second page data and the second configuration file that server returns;Load second page
Data parse the second configuration file, obtain second page button when the pre-set button component being loaded into second page data
Second page button parameters are passed in pre-set button component by parameter, obtain the second page with second the target button component
Data;When the second page data with second the target button component, which load, to be completed, the with second the target button is generated
Two pages.
In one embodiment, it is also performed the steps of when processor executes computer program and receives configuration file generation
Instruction, the configuration file generate the button parameters information that developer's mark and target pages is carried in instruction;Work as developer
When identity verification passes through, button parameters key-value pair is generated according to the button parameters information of target pages, by button parameters key-value pair
It is written in default file, obtains the configuration file of target pages, the configuration file upload server of target pages is saved.
In one embodiment, verifying first page button is also performed the steps of when processor executes computer program
First page button parameters are passed in pre-set button component by the validity of parameter when being verified, and are obtained with the first mesh
Mark the first page data of button assembly.
In one embodiment, it is also performed the steps of when processor executes computer program and receives what server returned
First configuration file of first page data and encryption;Decruption key is obtained, using decruption key to the first configuration text of encryption
Part is decrypted, and obtains the first configuration file.
In one embodiment, compiling is also performed the steps of when processor executes computer program with first object
The first page data of button assembly, obtain first page element-tree;First page element-tree is parsed, is drawn according to parsing result
First page with first object button.
In one embodiment, it also performs the steps of to send to server when processor executes computer program and render
It requests, the first page data for having first object button assembly is carried in render request;Obtain that server returns to having
The rendering result of the first page data of first object button assembly generates the with first object button according to rendering result
One page.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performed the steps of when being executed by processor receive first page access instruction, according to first page access instruction to
Server sends first page data acquisition request;Receive the first page data and the first configuration file that server returns;Add
First page data are carried, when the pre-set button component being loaded into first page data, the first configuration file is parsed, obtains the
First page button parameters are passed in pre-set button component by one page button parameters, are obtained with first object button assembly
First page data;When the first page data with first object button assembly, which load, to be completed, generates and have the first mesh
Mark the first page of button.
In one embodiment, starting default monitor is also performed the steps of when computer program is executed by processor,
When detecting the trigger event to first object button by default monitor, the association of first object button is sent to server
Second page data acquisition request;Receive the second page data and the second configuration file that server returns;Load second page
Face data, when the pre-set button component being loaded into second page data, parse the second configuration file, obtain second page by
Second page button parameters are passed in pre-set button component by button parameter, obtain the second page with second the target button component
Face data;When the second page data with second the target button component, which load, to be completed, generate with second the target button
Second page.
In one embodiment, it is also performed the steps of when computer program is executed by processor and receives configuration file life
At instruction, which generates the button parameters information that developer's mark and target pages is carried in instruction;Work as exploit person
When member's identity verification passes through, button parameters key-value pair is generated according to the button parameters information of target pages, by button parameters key assignments
To in write-in default file, the configuration file of target pages is obtained, the configuration file upload server of target pages is saved.
In one embodiment, when computer program is executed by processor also perform the steps of verifying first page by
First page button parameters are passed in pre-set button component, obtain with the when being verified by the validity that button parameter passes
The first page data of one the target button component.
In one embodiment, it is also performed the steps of when computer program is executed by processor and receives server return
First page data and encryption the first configuration file;Decruption key is obtained, the first configuration using decruption key to encryption
File is decrypted, and obtains the first configuration file.
In one embodiment, compiling is also performed the steps of when computer program is executed by processor with the first mesh
The first page data for marking button assembly, obtain first page element-tree;First page element-tree is parsed, is drawn according to parsing result
System has the first page of first object button.
In one embodiment, it is also performed the steps of when computer program is executed by processor to server and sends wash with watercolours
Dye is requested, and the first page data for having first object button assembly are carried in render request;Obtain server return to band
There is the rendering result of the first page data of first object button assembly, is generated according to rendering result with first object button
First page.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of page generation method, which comprises
First page access instruction is received, first page data acquisition is sent to server according to the first page access instruction
Request;
Receive the first page data and the first configuration file that the server returns;
The first page data are loaded, when the pre-set button component being loaded into the first page data, described in parsing
First configuration file obtains first page button parameters, and the first page button parameters are passed to the pre-set button component
In, obtain the first page data with first object button assembly;
When the first page data with first object button assembly, which load, to be completed, generate with first object button
First page.
2. the method according to claim 1, wherein in the when described with first object button assembly
When the load of one page data is completed, after generation is with the first page of the target button, further includes:
Start default monitor, when detecting the trigger event to the first object button by the default monitor,
The associated second page data acquisition request of first object button is sent to the server;
Receive the second page data and the second configuration file that the server returns;
The second page data are loaded, when the pre-set button component being loaded into the second page data, described in parsing
Second configuration file obtains second page button parameters, and the second page button parameters are passed to the pre-set button component
In, obtain the second page data with second the target button component;
When the second page data load for having second the target button component is completed, generate with second the target button
Second page.
3. the method according to claim 1, wherein in the reception first page access instruction, according to described
First page access instruction is sent to server before first page data acquisition request, further includes:
It receives configuration file and generates instruction, which generates the button for carrying developer's mark and target pages in instruction
Parameter information;
When developer's identity verification passes through, button parameters key is generated according to the button parameters information of the target pages
The button parameters key-value pair is written in default file, the configuration file of target pages is obtained, by the target pages by value pair
Configuration file upload the server and save.
4. being pressed the method according to claim 1, wherein the first page button parameters are passed to described preset
In button component, the first page data with first object button assembly are obtained, comprising:
The first page button parameters are passed to by the validity for verifying the first page button parameters when being verified
In the pre-set button component, the first page data with first object button assembly are obtained.
5. the method according to claim 1, wherein the first page data for receiving the server and returning
With the first configuration file, comprising:
Receive the first configuration file of first page data and encryption that the server returns;
Decruption key is obtained, is decrypted using first configuration file of the decruption key to the encryption, is obtained first and match
Set file.
6. the method according to claim 1, wherein described have the first of first object button assembly when described
When page data load is completed, the first page for having first object button is generated, comprising:
The compiling first page data for having first object button assembly, obtain first page element-tree;
The first page element-tree is parsed, the first page for having first object button is drawn according to parsing result.
7. the method according to claim 1, wherein described have the first of first object button assembly when described
When page data load is completed, the first page for having first object button is generated, comprising:
Render request is sent to the server, first with first object button assembly is carried in the render request
Page data;
Obtain the rendering result to the first page data with first object button assembly that the server returns, root
The first page for having first object button is generated according to the rendering result.
8. a kind of webpage generating device, which is characterized in that described device includes:
Command reception module is sent out according to the first page access instruction to server for receiving first page access instruction
Send first page data acquisition request;
Data reception module, for receiving the first page data and the first configuration file that the server returns;
Parameter afferent module, for loading the first page data, when be loaded into the first page data it is default by
When button component, first configuration file is parsed, first page button parameters is obtained, the first page button parameters is passed to
In the pre-set button component, the first page data with first object button assembly are obtained;
Page generation module, for generating when the first page data with first object button assembly load completion
First page with first object button.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910536907.2A CN110362308A (en) | 2019-06-20 | 2019-06-20 | Page generation method, device, computer equipment and storage medium |
PCT/CN2019/118251 WO2020253061A1 (en) | 2019-06-20 | 2019-11-14 | Page generating method and apparatus, computer device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910536907.2A CN110362308A (en) | 2019-06-20 | 2019-06-20 | Page generation method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110362308A true CN110362308A (en) | 2019-10-22 |
Family
ID=68217394
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910536907.2A Pending CN110362308A (en) | 2019-06-20 | 2019-06-20 | Page generation method, device, computer equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110362308A (en) |
WO (1) | WO2020253061A1 (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110990008A (en) * | 2019-11-28 | 2020-04-10 | 北京三快在线科技有限公司 | Method, device, storage medium and electronic equipment for updating page |
CN111240679A (en) * | 2020-01-15 | 2020-06-05 | 深圳市中农易讯信息技术有限公司 | Page development method and system |
CN111240680A (en) * | 2020-01-14 | 2020-06-05 | 广州华多网络科技有限公司 | Button creating method and device, computer equipment and storage medium |
CN111475381A (en) * | 2020-04-03 | 2020-07-31 | 支付宝(杭州)信息技术有限公司 | Page rendering detection method and device |
CN111753229A (en) * | 2020-06-10 | 2020-10-09 | 支付宝(杭州)信息技术有限公司 | Page configuration method, device and equipment |
CN112000331A (en) * | 2020-08-07 | 2020-11-27 | 北京三快在线科技有限公司 | Page rendering method and device, electronic equipment and storage medium |
WO2020253061A1 (en) * | 2019-06-20 | 2020-12-24 | 平安科技(深圳)有限公司 | Page generating method and apparatus, computer device, and storage medium |
CN112416339A (en) * | 2020-02-17 | 2021-02-26 | 上海哔哩哔哩科技有限公司 | Page development method and device and computer equipment |
CN112765517A (en) * | 2021-01-11 | 2021-05-07 | 京东方科技集团股份有限公司 | Page generation method and device and electronic equipment |
CN113190759A (en) * | 2021-05-21 | 2021-07-30 | 上海微盟企业发展有限公司 | Webpage generation method, device and equipment and computer readable storage medium |
CN113407253A (en) * | 2021-05-31 | 2021-09-17 | 深圳市科曼医疗设备有限公司 | Machine function configuration method, device, computer readable medium and equipment |
CN113485702A (en) * | 2021-06-21 | 2021-10-08 | 上海百秋电子商务有限公司 | Method, device and equipment for configurationally generating front-end page and storage medium |
CN113741892A (en) * | 2021-07-30 | 2021-12-03 | 武汉悦学帮网络技术有限公司 | Page generation method and device, electronic equipment and storage medium |
WO2023082571A1 (en) * | 2021-11-12 | 2023-05-19 | 上汽通用五菱汽车股份有限公司 | Vehicle remote control method, system and apparatus, and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105574049A (en) * | 2014-10-30 | 2016-05-11 | 阿里巴巴集团控股有限公司 | Page processing method, device and system of mobile applications |
CN108965311A (en) * | 2018-07-27 | 2018-12-07 | 平安科技(深圳)有限公司 | Encryption of communicated data method and apparatus |
CN109725901A (en) * | 2018-05-31 | 2019-05-07 | 中国平安人寿保险股份有限公司 | Development approach, device, equipment and the computer storage medium of front-end code |
CN109871500A (en) * | 2019-01-24 | 2019-06-11 | 平安科技(深圳)有限公司 | Page loading method, device, computer equipment and storage medium |
CN109901834A (en) * | 2019-01-25 | 2019-06-18 | 平安科技(深圳)有限公司 | Document file page generation method, device, computer equipment and storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109446457A (en) * | 2018-09-25 | 2019-03-08 | 平安普惠企业管理有限公司 | Update method, terminal device and the medium of page data |
CN110362308A (en) * | 2019-06-20 | 2019-10-22 | 平安科技(深圳)有限公司 | Page generation method, device, computer equipment and storage medium |
-
2019
- 2019-06-20 CN CN201910536907.2A patent/CN110362308A/en active Pending
- 2019-11-14 WO PCT/CN2019/118251 patent/WO2020253061A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105574049A (en) * | 2014-10-30 | 2016-05-11 | 阿里巴巴集团控股有限公司 | Page processing method, device and system of mobile applications |
CN109725901A (en) * | 2018-05-31 | 2019-05-07 | 中国平安人寿保险股份有限公司 | Development approach, device, equipment and the computer storage medium of front-end code |
CN108965311A (en) * | 2018-07-27 | 2018-12-07 | 平安科技(深圳)有限公司 | Encryption of communicated data method and apparatus |
CN109871500A (en) * | 2019-01-24 | 2019-06-11 | 平安科技(深圳)有限公司 | Page loading method, device, computer equipment and storage medium |
CN109901834A (en) * | 2019-01-25 | 2019-06-18 | 平安科技(深圳)有限公司 | Document file page generation method, device, computer equipment and storage medium |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020253061A1 (en) * | 2019-06-20 | 2020-12-24 | 平安科技(深圳)有限公司 | Page generating method and apparatus, computer device, and storage medium |
CN110990008A (en) * | 2019-11-28 | 2020-04-10 | 北京三快在线科技有限公司 | Method, device, storage medium and electronic equipment for updating page |
CN110990008B (en) * | 2019-11-28 | 2023-06-30 | 北京三快在线科技有限公司 | Page updating method and device, storage medium and electronic equipment |
CN111240680B (en) * | 2020-01-14 | 2023-06-06 | 广州华多网络科技有限公司 | Button creation method, button creation device, computer device and storage medium |
CN111240680A (en) * | 2020-01-14 | 2020-06-05 | 广州华多网络科技有限公司 | Button creating method and device, computer equipment and storage medium |
CN111240679A (en) * | 2020-01-15 | 2020-06-05 | 深圳市中农易讯信息技术有限公司 | Page development method and system |
CN111240679B (en) * | 2020-01-15 | 2023-08-22 | 深圳市中农易讯信息技术有限公司 | Page development method and system |
CN112416339A (en) * | 2020-02-17 | 2021-02-26 | 上海哔哩哔哩科技有限公司 | Page development method and device and computer equipment |
CN111475381A (en) * | 2020-04-03 | 2020-07-31 | 支付宝(杭州)信息技术有限公司 | Page rendering detection method and device |
CN111475381B (en) * | 2020-04-03 | 2021-08-20 | 支付宝(杭州)信息技术有限公司 | Page rendering detection method and device |
CN111753229A (en) * | 2020-06-10 | 2020-10-09 | 支付宝(杭州)信息技术有限公司 | Page configuration method, device and equipment |
CN112000331A (en) * | 2020-08-07 | 2020-11-27 | 北京三快在线科技有限公司 | Page rendering method and device, electronic equipment and storage medium |
CN112765517A (en) * | 2021-01-11 | 2021-05-07 | 京东方科技集团股份有限公司 | Page generation method and device and electronic equipment |
CN113190759A (en) * | 2021-05-21 | 2021-07-30 | 上海微盟企业发展有限公司 | Webpage generation method, device and equipment and computer readable storage medium |
CN113407253A (en) * | 2021-05-31 | 2021-09-17 | 深圳市科曼医疗设备有限公司 | Machine function configuration method, device, computer readable medium and equipment |
CN113485702A (en) * | 2021-06-21 | 2021-10-08 | 上海百秋电子商务有限公司 | Method, device and equipment for configurationally generating front-end page and storage medium |
CN113741892A (en) * | 2021-07-30 | 2021-12-03 | 武汉悦学帮网络技术有限公司 | Page generation method and device, electronic equipment and storage medium |
WO2023082571A1 (en) * | 2021-11-12 | 2023-05-19 | 上汽通用五菱汽车股份有限公司 | Vehicle remote control method, system and apparatus, and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2020253061A1 (en) | 2020-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110362308A (en) | Page generation method, device, computer equipment and storage medium | |
CN108446116B (en) | Application program page generation method and device, computer equipment and storage medium | |
CN109901834B (en) | Document page generation method, device, computer equipment and storage medium | |
CN108418797B (en) | Webpage access method and device, computer equipment and storage medium | |
CN109871500A (en) | Page loading method, device, computer equipment and storage medium | |
CN109144487B (en) | Method, device, computer equipment and storage medium for developing business of parts | |
CN110135129B (en) | Code segment protection method and device, computer equipment and storage medium | |
CN110689232A (en) | Workflow configuration optimization processing method and device and computer equipment | |
CN108304698B (en) | Product authorized use method and device, computer equipment and storage medium | |
CN111008132B (en) | Application debugging method and device for Android system, computer equipment and storage medium | |
CN110334303A (en) | Form validation method, device, computer equipment and storage medium | |
CN111259358A (en) | Login method, login device, computer equipment and storage medium | |
CN114371841A (en) | Front-end project code generation method and device, computer equipment and storage medium | |
CN114461533A (en) | Method, system, electronic device and storage medium for automatic testing of Web page | |
CN110597552A (en) | Configuration method, device and equipment of project continuous integration pipeline and storage medium | |
CN109783606A (en) | Data processing method, device, computer equipment and storage medium | |
CN112579453A (en) | Task testing method, device, equipment and storage medium | |
CN112527416A (en) | Task processing method and device, computer equipment and storage medium | |
CN111901383A (en) | Data request processing method and device, computer equipment and storage medium | |
CN115293873A (en) | Page processing method and device for credit granting flow, computer equipment and storage medium | |
CN110516172A (en) | Resource transfer method, apparatus, computer equipment and storage medium | |
CN111124932B (en) | Scheme verification method, system, device, computer equipment and storage medium | |
CN111177624B (en) | Website front-end and back-end communication method, device, computer equipment and storage medium | |
CN114448722A (en) | Cross-browser login method and device, computer equipment and storage medium | |
CN111310141B (en) | Authentication management method, device, computer 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 |