CN109710328A - Page configuration method, apparatus, equipment and readable storage medium storing program for executing - Google Patents

Page configuration method, apparatus, equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109710328A
CN109710328A CN201810945965.6A CN201810945965A CN109710328A CN 109710328 A CN109710328 A CN 109710328A CN 201810945965 A CN201810945965 A CN 201810945965A CN 109710328 A CN109710328 A CN 109710328A
Authority
CN
China
Prior art keywords
page
configuration
rendering
page configuration
version number
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.)
Withdrawn
Application number
CN201810945965.6A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201810945965.6A priority Critical patent/CN109710328A/en
Publication of CN109710328A publication Critical patent/CN109710328A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of page configuration method, it include: when detecting default application program launching, receive the page configuration version number that issues of server, and according in default storage region local page configuration version number and the page configuration version number determine whether to trigger page configuration instruction;If triggering page configuration instruction, to the acquisition request of the server sending assembly configuration data, and the component Configuration data for each page that the server is issued based on the acquisition request are received;According to the component Configuration data of each page, each displayed page is formed, and each displayed page is rendered, to obtain each rendering page, and each rendering page is stored to the default storage region.The present invention also provides a kind of page configuration device, equipment and readable storage medium storing program for executing.The present invention can effectively improve the page configurability of application program.

Description

Page configuration method, apparatus, equipment and readable storage medium storing program for executing
Technical field
The present invention relates to the technical field of application program more particularly to a kind of page configuration method, apparatus, equipment and readable Storage medium.
Background technique
Currently, App (Application, application program) development scheme includes that web App exploitation and native App are opened Hair, Web App exploitation are a kind of frame-type APP development mode, which has cross-platform advantage, web App exploitation Client need to only install the frame part of application, and the data applied are then when opening APP every time, from server-side access evidence It is presented to client;Native App exploitation is tradition APP development mode, for the different operating system such as IOS or Android It to be developed using different language and frame, APP is installed in using all UI elements, data content, logical framework In client.
Native App is located above podium level, accesses downwards and compatible ability is preferable, can support it is online or offline, The functions such as message push or local resource access, however Native App applies all UI elements, data content, logical framework It being respectively mounted on the client, each page fix of composition, the App for needing to download new version is just able to achieve the configuration of each page, and Version exploitation is more difficult, and page configurability is poor.
Therefore, how in Native App, the configurability for improving the page is current urgent problem to be solved.
Summary of the invention
The main purpose of the present invention is to provide a kind of page configuration method, apparatus, equipment and readable storage medium storing program for executing, it is intended to Improve the configurability of the page.
To achieve the above object, the present invention provides a kind of page configuration method, and the page configuration method includes following step It is rapid:
When detecting default application program launching, the page configuration version number that server issues is received, and according to default Local page configuration version number and the page configuration version number in storage region determine whether to trigger page configuration instruction;
If triggering page configuration instruction, to the acquisition request of the server sending assembly configuration data, and institute is received State the component Configuration data for each page that server is issued based on the acquisition request;
According to the component Configuration data of each page, each displayed page is formed, and each displayed page is rendered, with Each rendering page is obtained, and each rendering page is stored to the default storage region.
Optionally, the component Configuration data according to each page, the step of forming each displayed page include:
The layout metamessage of each page is extracted from the component Configuration data of each page, and is believed according to the layout member of each page Breath forms corresponding each layout page;
Extract the data metamessage of each layout page from the component Configuration data of each page, and by the number of each layout page According to metamessage, fill to corresponding layout page, to form each displayed page.
Optionally, the basis presets the local page configuration version number in storage region and the page configuration version number Determine whether that the step of triggering page configuration instruction includes:
Local page configuration version number is read from default storage region, and determine the local page configuration version number with Whether the page configuration version number is identical;
If the local page configuration version number is identical as the page configuration version number, page configuration is not triggered and is referred to It enables, otherwise triggers page configuration instruction.
Optionally, the component Configuration data according to each page form each displayed page, and to each displayed page It is rendered, to obtain each rendering page, and after the step of each rendering page is stored to the default storage region, is also wrapped It includes:
It is obtained from each rendering page for be stored in the default storage region and applies homepage, and show that the application is first Page;
When the page jump for detecting triggering instructs, obtained from each rendering page for being stored in the default storage region The rendering page corresponding with page jump instruction is taken, and shows the rendering page.
Optionally, the component Configuration data according to each page form each displayed page, and to each displayed page It is rendered, to obtain each rendering page, and after the step of each rendering page is stored to the default storage region, is also wrapped It includes:
Receive server issue renewal of the page request, and according to the renewal of the page request in component Configuration data, Update the corresponding rendering page.
Optionally, the page configuration method further include:
Currently available cpu resource is obtained, and according to currently available cpu resource, determines the executive mode of page configuration operation It is single-page executive mode or multi-page executive mode;
If the executive mode of page configuration operation is single-page executive mode, the page configuration behaviour of a page is executed every time Make;
If the executive mode of page configuration operation is multi-page executive mode, determined according to currently available cpu resource same Step executes page number, and according to the synchronous execution page number, executes the page configuration operation of the corresponding number page.
Optionally, described to determine that synchronous the step of executing page number includes: according to currently available cpu resource
The mapping table of the currently available cpu resource that acquisition prestores and synchronous execution page number, and closed from the mapping It is to inquire synchronous execution page number corresponding with currently available cpu resource in table.
In addition, to achieve the above object, the present invention also provides a kind of page configuration device, the page configuration device packet It includes:
Determining module is received, for when detecting default application program launching, receiving the page configuration that server issues Version number, and according in default storage region local page configuration version number and the page configuration version number determine whether to touch Send out page configuration instruction;
Transceiver module, if for triggering page configuration instruction, the acquisition to the server sending assembly configuration data Request, and receive the component Configuration data for each page that the server is issued based on the acquisition request;
Page configuration module forms each displayed page for the component Configuration data according to each page, and to each exhibition Show that the page is rendered, to obtain each rendering page, and each rendering page is stored to the default storage region.
In addition, to achieve the above object, the present invention also provides a kind of page configuration equipment, the page configuration equipment includes Processor, memory and it is stored in the page configuration program that can be executed on the memory and by the processor, wherein institute When stating page configuration program and being executed by the processor, realize such as the step of above-mentioned page configuration method.
In addition, to achieve the above object, the present invention also provides a kind of readable storage medium storing program for executing, being deposited on the readable storage medium storing program for executing Page configuration program is contained, wherein realizing such as above-mentioned page configuration method when the page configuration program is executed by processor The step of.
The present invention provides a kind of page configuration method, apparatus, equipment and readable storage medium storing program for executing, and the present invention is default when detect When application program launching, determine whether to trigger based on the page configuration version number that local page configuration version number and server issue Page configuration instruction, if triggering page configuration instruction, the component Configuration data of each page is requested to server, and be based on each page The component Configuration data in face, form each displayed page, then render to each displayed page, to obtain each rendering page, and Each rendering page is stored, by obtaining the component Configuration data of each page in server, each page of application program is matched It sets, developer only needs to adjust or modify the component Configuration data of each page in server, and the page of application program can be realized Face configuration, effectively raises the page configurability of application program.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for the page configuration equipment that various embodiments of the present invention are related to;
Fig. 2 is the flow diagram of page configuration method first embodiment of the present invention;
Fig. 3 is the refinement flow diagram of step S103 in first embodiment of the invention;
Fig. 4 is the flow diagram of page configuration method second embodiment of the present invention;
Fig. 5 is the functional block diagram of page configuration device first embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present embodiments relate to page configuration method be mainly used in page configuration equipment, which can To be that PC (personal computer personal computer), portable computer, mobile terminal etc. have display and processing function Equipment.
Referring to Fig.1, Fig. 1 is the hardware structural diagram of page configuration equipment involved in the embodiment of the present invention.This In inventive embodiments, page configuration equipment may include (such as the central processing unit Central Processing of processor 1001 Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 For realizing the connection communication between these components;User interface 1003 may include display screen (Display), input unit ratio Such as keyboard (Keyboard);Network interface 1004 optionally may include that (such as WI-FI connects standard wireline interface and wireless interface Mouthful);Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), Such as magnetic disk storage, memory 1005 optionally can also be the storage device independently of aforementioned processor 1001.This field Technical staff is appreciated that hardware configuration shown in Fig. 1 and does not constitute a limitation of the invention, and may include more than illustrating Or less component, perhaps combine certain components or different component layouts.
With continued reference to Fig. 1, the memory 1005 in Fig. 1 as a kind of readable storage medium storing program for executing may include operating system, net Network communication module and page configuration program.In Fig. 1, network communication module be mainly used for connect server, with server into Row data communication;And processor 1001 can call the page configuration program stored in memory 1005, and execute of the invention real The page configuration method of example offer is provided.
The embodiment of the invention provides a kind of page configuration methods.
It is the flow diagram of page configuration method first embodiment of the present invention referring to Fig. 2, Fig. 2.
In the present embodiment, which is realized by page configuration equipment, which can be PC, the palm The terminal devices such as upper computer peace plate computer are chosen as equipment shown in FIG. 1, the page configuration method the following steps are included:
Step S101 receives the page configuration version number that server issues when detecting default application program launching, and According in default storage region local page configuration version number and page configuration version number determine whether trigger page configuration refer to It enables;
Step S102, if triggering page configuration instruction, to the acquisition request of server sending assembly configuration data, and connects Receive the component Configuration data for each page that server is issued based on acquisition request;
Step S103 forms each displayed page according to the component Configuration data of each page, and carries out wash with watercolours to each displayed page Dye, to obtain each rendering page, and each rendering page is stored to default storage region.
Native App is respectively mounted on the client using all UI elements, data content, logical framework, composition it is each Page fix, the App for needing to download new version is just able to achieve the configuration of each page, and version exploitation is more difficult, and the page can match Setting property is poor.In view of the above problem, a kind of page configuration method, page configuration side described in detail below are proposed in the present embodiment The specific steps of method:
Step S101 receives the page configuration version number that server issues when detecting default application program launching, and According in default storage region local page configuration version number and page configuration version number determine whether trigger page configuration refer to It enables;
In the present embodiment, equipment is equipped with several application programs, when detecting default application program launching, receives service The page configuration version number that device issues, and according to the local page configuration version number and the page configuration version in default storage region This number determines whether to trigger page configuration instruction, i.e., the reading local page configuration version number from default storage region, and according to Local page configuration version number and the page configuration version number determine whether to trigger page configuration instruction.Wherein, server issues Page configuration version number be used to indicate the page configuration version of each page in the application program of server storage, local page matches Version number is set for indicating the page configuration version of each page in application program, page configuration version number is bigger, then it represents that the page Configuration version is higher, and page configuration version number is smaller, then it represents that page configuration version is lower.It should be noted that above-mentioned default Application program and default storage region can be configured by those skilled in the art based on actual conditions, the present embodiment to this not Make specific limit.
Specifically, in the present embodiment, step S101 includes:
Step a1 reads local page configuration version number from default storage region, and determines local page configuration version It is number whether identical as page configuration version number;
In the present embodiment, equipment is after receiving the page configuration version number that server issues, from default storage region Middle reading local page configuration version number, and determine whether local page configuration version number and page configuration version number identical, i.e., Whether the component Configuration data of each page are adjusted or modify in server.It should be noted that the position of page configuration version number Several and create-rule can be configured by those skilled in the art based on actual conditions, and the present embodiment is not especially limited this.
Step a2 does not trigger page configuration instruction if local page configuration version number is identical as page configuration version number, Otherwise triggering page configuration instruction.
In the present embodiment, if local page configuration version number is identical as page configuration version number, i.e., each page in server The component Configuration data in face are not adjusted or modify, then page configuration instruction are not triggered, whereas if local page configuration version Number different from page configuration version number, i.e., the component Configuration data of each page are adjusted or modify in server, then trigger the page Configuration-direct.In specific implementation, server the component Configuration data for detecting each page by developer modify or adjust when, Page configuration request is sent to terminal device, terminal device triggers page in the page configuration request for receiving server transmission Face configuration-direct.
Step S102, if triggering page configuration instruction, to the acquisition request of server sending assembly configuration data, and connects Receive the component Configuration data for each page that server is issued based on acquisition request;
In the present embodiment, if triggering page configuration instruction, to the acquisition request of server sending assembly configuration data, And receive the component Configuration data for each page that server is issued based on acquisition request, wherein the component Configuration data include but It is not limited to layout metamessage and data metamessage, layout metamessage includes but is not limited to page title, page footer and content regions Block, data element information include but is not limited to number, English, Chinese, picture and tab content, which can be by developing Personnel's setting, and store in the server.
Specifically, server obtains each page when receiving the acquisition request of component Configuration data of client transmission Display priority, and the component Configuration data of each page are obtained from database, then according to the display priority of each page Sequence, generate the queue that issues of the component Configuration data of each page, and according under the component Configuration data of each page Queue is sent out, the component Configuration data of each page are successively returned into client.Wherein, the display priority of the page is higher, then table Show that the display time started of the page is more early, the sequence in queue is more forward issuing, and the display priority of the page is higher, then table Show that the display time started of the page is more late, is issuing the sequence in queue more rearward.For example, the database purchase of server has five The component Configuration data of a page, the component of the component Configuration data of component Configuration data, the B page including the A page, the C page The component Configuration data of configuration data, the component Configuration data of the D page and the E page, corresponding display priority be a, b, c, d and E, and the sequence of display priority is b > a > d > c > e, then the component Configuration data for issuing each page in queue generated Transmitting sequence be the B page component Configuration data → A page component Configuration data → D page component Configuration data → C pages Component Configuration data → E page component Configuration data in face.In specific implementation, if not triggering page configuration instruction, from The page of spreading its tail, advertisement page are read in default storage region and using homepage, and successively display is spread its tail and the page, advertisement page and answered Use homepage.
Step S103 forms each displayed page according to the component Configuration data of each page, and carries out wash with watercolours to each displayed page Dye, to obtain each rendering page, and each rendering page is stored to default storage region.
In the present embodiment, equipment is after the component Configuration data for receiving each page that server issues, according to each page The component Configuration data in face form each displayed page, i.e. layout metamessage sum number in the component Configuration data based on each page According to metamessage, each displayed page is formed, and each displayed page is rendered, to obtain each rendering page, and by each rendering page Face is stored to default storage region.In specific implementation, equipment is in the component Configuration data for receiving each page that server issues Later, the transmitting sequence of the component Configuration data based on each page executes the operation of page composition and page rendering operation, to obtain Each rendering page, the specially transmitting sequence of the component Configuration data based on each page, successively obtain the component Configuration of a page Data, and layout metamessage is extracted from the component Configuration data, then according to the layout metamessage, layout page is generated, and Data metamessage is extracted from the component Configuration data of the page, then fills the data metamessage to the layout page, group It is rendered at a displayed page, and to the displayed page, to obtain a rendering page, repeats above-mentioned steps, finally To the corresponding rendering page of the component Configuration data of each page.
Specifically, include: referring to Fig. 3, step S103
Step S1031 extracts the layout metamessage of each page from the component Configuration data of each page, and according to each page Layout metamessage, form corresponding each layout page;
In the present embodiment, equipment extracts the layout metamessage of each page from the component Configuration data of each page, and according to The layout metamessage of each page forms corresponding each layout page, wherein layout metamessage include but is not limited to page title, Page footer and content block, layout page composition operation include but is not limited to single layout page composition operation and more layout pages Composition operation, single layout page composition operation are equipment according to the transmitting sequence of the component Configuration data of each page, are successively selected The component Configuration data of one page, and the layout metamessage of the page is extracted from the component Configuration data, then according to the page The layout metamessage in face forms corresponding layout page, i.e., the layout page for executing a page every time forms operation;More layouts Page composition operation is the component Configuration data of several pages of equipment simultaneous selection, and simultaneously from the component of several pages of selection In configuration data, the layout metamessage of several pages is extracted, and according to the layout metamessage of several pages, forms several layout pages Face is performed simultaneously the layout page composition operation of multiple pages.
Step S1032, extracts the data metamessage of each layout page from the component Configuration data of each page, and by each cloth The data metamessage of office's page, is filled to corresponding layout page, to form each displayed page.
In the present embodiment, equipment extracts the data metamessage of each layout page from the component Configuration data of each page, and The data metamessage of each layout page is filled to corresponding layout page, to form each displayed page.Wherein, data element is believed Breath includes but is not limited to number, English, Chinese, picture and tab content, and page padding includes but is not limited to single-page filling Operation and multi-page padding, single-page padding are transmitting sequence of the equipment according to the component Configuration data of each page, The component Configuration data of a page are successively selected, and extract the data metamessage of the page from the component Configuration data, then By the data metamessage, filling to corresponding layout page forms a displayed page, i.e., executes the filling behaviour an of page every time Make;Multi-page padding is the component Configuration data of several pages of equipment simultaneous selection, and simultaneously from several pages of selection Component Configuration data in, extract the data metamessage of several pages, then by the data metamessage of several pages, filling is to right The layout page answered is performed simultaneously the padding of multiple pages to form several displayed pages.
In the present embodiment, the present invention when detecting default application program launching, based on local page configuration version number and The page configuration version number that server issues determines whether to trigger page configuration instruction, if triggering page configuration instruction, to clothes Business device requests the component Configuration data of each page, and the component Configuration data based on each page, forms each displayed page, then right Each displayed page is rendered, and to obtain each rendering page, and stores each rendering page, by obtaining each page in server Component Configuration data configure each page of application program, and developer only needs to adjust or modify each page in server The component Configuration data in face, can be realized the page configuration of application program, and the page for effectively raising application program is configurable Property.
Further, referring to Fig. 4, it is based on above-mentioned first embodiment, propose page configuration method of the present invention second is real Example is applied, the difference with previous embodiment is, after step S103, the page configuration method further include:
Step S104 is obtained from each rendering page for be stored in default storage region and is applied homepage, and is shown using first Page;
In the present embodiment, each rendering page is stored to default storage region, from being stored in default storage region It is obtained in each rendering page and applies homepage, and shown using homepage.Further, it is determined that being stored in each wash with watercolours of default storage region Whether include the spread its tail page and/or advertisement page, if be stored in each rendering page of default storage region if contaminating in the page Include the spread its tail page and/or advertisement page, then first obtains page of spreading its tail from each rendering page for be stored in default storage region Face and/or advertisement page, and show the spread its tail page and/or advertisement page, then in the display of the page and/or advertisement page of spreading its tail It when duration reaches preset value, is obtained from each rendering page for be stored in default storage region and applies homepage, and shown using first Page.
In specific implementation, equipment, can be with root while receiving the component Configuration data for each page that server issues According to the component Configuration data of the current page received, a displayed page is formed, and the displayed page is rendered, is then existed When rendering completion, the storage rendering page, and if the rendering page is when spreading its tail the page, to show the page of spreading its tail, can receive on one side Component Configuration data generate the corresponding rendering page on one side based on the component Configuration data received.
Step S105, when the page jump for detecting triggering instructs, from each rendering page for being stored in default storage region The rendering page corresponding with page jump instruction is obtained in face, and shows the rendering page.
In the present embodiment, when the page jump for detecting triggering instructs, equipment is from being stored in each of default storage region It renders and obtains the rendering page corresponding with page jump instruction in the page, that is, inquire the page jump instruction prestored and the rendering page Between mapping table, obtain corresponding with the page jump instruction rendering page, and show the rendering page.Specific implementation In, when the page jump for detecting triggering instructs, determining to be stored in each rendering page of default storage region whether there is The corresponding rendering page, if be stored in each rendering page of default storage region, there are the corresponding rendering pages, to clothes The component Configuration data for device request corresponding page of being engaged in, and the component Configuration data are based on, displayed page is formed, then to the displaying The page is rendered, and shows the displayed page after rendering.
In the present embodiment, each rendering page is stored in local storage region by the present invention, page jump can occur When, the corresponding rendering page is quickly obtained from local storage region, reduces page load time, and the effective page that improves is jumped Rotary speed.
Further, above-mentioned first or second embodiments are based on, the third for proposing page configuration method of the present invention is implemented Example, the difference with previous embodiment is, after step S103, the page configuration method further include:
Step b, receive server issue renewal of the page request, and according to renewal of the page request in component Configuration number According to updating the corresponding rendering page.
In the present embodiment, developer is the update for realizing the rendering page of equipment storage, is adjusted in the server first Or the component Configuration data of the modification page to be updated, server receive developer's adjustment or modify the component of the page to be updated After configuration data, the renewal of the page request for the component Configuration data for carrying the page to be updated is generated, and by the renewal of the page Request is sent to equipment, and equipment receives the renewal of the page request that server issues, and according to renewal of the page request in component match Data are set, the corresponding rendering page is updated, i.e., obtain the component Configuration data of the page to be updated from renewal of the page request, and The component Configuration data of the page to be updated, form corresponding displayed page, then render to displayed page, to obtain rendering The page is updated, and obtains the page-tag that the rendering updates the page, the page-tag of the page is then updated according to the rendering, from this In the rendering page of ground storage, the rendering page to be replaced is selected, and according to the page-tag of the rendering update page and wash with watercolours to be replaced The page-tag of the page is contaminated, it is corresponding that the rendering page to be replaced is replaced with into the rendering update page, to realize the rendering page It updates.
In the present embodiment, the present invention can component Configuration data in the server when updating, timely update local deposits The rendering page of storage realizes the synchronous configuration of the rendering page.
Further, it is based on above-mentioned first, second or third embodiment, proposes the 4th of page configuration method of the present invention Embodiment, the difference with previous embodiment be, the page configuration method further include:
Step c, currently available cpu resource is obtained, and according to currently available cpu resource, determines holding for page configuration operation Line mode is single-page executive mode or multi-page executive mode;
In the present embodiment, equipment obtains currently available cpu resource, and according to currently available cpu resource, determines page configuration The executive mode of operation is single-page executive mode or multi-page executive mode, specially determines that currently available cpu resource is No is more than default cpu resource, if currently available cpu resource is more than default cpu resource, can determine page configuration operation Executive mode is single-page executive mode, if currently available cpu resource is less than default cpu resource, can determine the page The executive mode of configuration operation is multi-page executive mode.Wherein, page configuration operation includes the operation of page composition and page wash with watercolours Dye operation.
If step d, the executive mode of page configuration operation is single-page executive mode, the page of a page is executed every time Configuration operation;
In the present embodiment, if the executive mode of page configuration operation is single-page executive mode, one page is executed every time The page configuration in face operates, i.e. equipment is based on each page after the component Configuration data for receiving each page that server issues The transmitting sequence of the component Configuration data in face executes the operation of page composition and page rendering operation, to obtain each rendering page, tool Body is the transmitting sequence of the component Configuration data based on each page, successively obtains the component Configuration data of a page, and from the group Layout metamessage is extracted in part configuration data, then according to the layout metamessage, generates layout page, and from the component of the page Data metamessage is extracted in configuration data, then fills the data metamessage to the layout page, forms a displayed page, and The displayed page is rendered, to obtain a rendering page, repeats above-mentioned steps, the component for finally obtaining each page is matched Set the corresponding rendering page of data.
If step e, the executive mode of page configuration operation is multi-page executive mode, according to currently available cpu resource It determines synchronous execution page number, and executes page number according to synchronous, execute the page configuration operation of the corresponding number page.
In the present embodiment, if the executive mode of page configuration operation is multi-page executive mode, according to currently available Cpu resource determines synchronous execution page number, that is, obtains the currently available cpu resource prestored and close with the synchronous mapping for executing page number It is table, and from mapping table, inquires synchronous execution page number corresponding with currently available cpu resource, and hold according to synchronizing Row page number executes the page configuration operation of the corresponding number page, i.e., equipment is in the group for receiving each page that server issues After part configuration data, the component Configuration data of the synchronous page for executing page number are selected, and are performed simultaneously the synchronous execution page Several operations of page composition and page rendering operation, i.e., extract layout metamessage, then according to this from the component Configuration data It is laid out metamessage, generates the synchronous layout page for executing page number, and extract data element from the component Configuration data of the page Then the data metamessage is filled into each synchronous layout page for executing page number, forms the synchronous execution page by information Several displayed pages, and the synchronous displayed page for executing page number is rendered, to obtain the synchronous rendering for executing page number The page repeats above-mentioned steps, finally obtains the corresponding rendering page of the component Configuration data of each page.
Wherein, default cpu resource can be arranged according to CPU total resources, or be arranged according to specific needs by user.When When cpu resource is less than default cpu resource, it can be determined according to the mapping relations that can be used between cpu resource and synchronization page quantity The synchronization page quantity that can be performed simultaneously, such as in mapping relations, when available cpu resource is less than A, what correspondence can be performed simultaneously Synchronization page quantity is 2;When available cpu resource is more than or equal to A, is less than B, synchronization page number that correspondence can be performed simultaneously Amount is 3;When available cpu resource is more than or equal to B, is less than C, the synchronization page quantity that correspondence can be performed simultaneously is 4, In, A < B < C.
In the present embodiment, the present invention determines synchronous execution page number by the currently available cpu resource of equipment, and equipment can be same The configuration of the multiple pages of Shi Zhihang operates, effective to improve page configuration efficiency.
In addition, the embodiment of the present invention also provides a kind of page configuration device.
It is the functional block diagram of page configuration device first embodiment of the present invention referring to Fig. 5, Fig. 5.
Page configuration device of the present invention is virtual bench, is stored in the memory 1005 of page configuration equipment shown in Fig. 1, It is functional for realizing the institute of page configuration program;When detecting default application program launching, the page that server issues is received Face configuration version number, and according to the local page configuration version number and page configuration version number determination in default storage region Whether page configuration instruction is triggered;If triggering page configuration instruction, the acquisition to the server sending assembly configuration data Request, and receive the component Configuration data for each page that the server is issued based on the acquisition request;According to each page Component Configuration data form each displayed page, and render to each displayed page, to obtain each rendering page, and will Each rendering page is stored to the default storage region.
Specifically, in the present embodiment, the page configuration device includes:
Determining module 101 is received, is matched for when detecting default application program launching, receiving the page that server issues Set version number, and according in default storage region local page configuration version number and the page configuration version number determine whether Trigger page configuration instruction;
Transceiver module 102, if for triggering page configuration instruction, to obtaining for the server sending assembly configuration data Request is taken, and receives the component Configuration data for each page that the server is issued based on the acquisition request;
Page configuration module 103 forms each displayed page, and to described for the component Configuration data according to each page Each displayed page is rendered, and to obtain each rendering page, and each rendering page is stored to the default storage region.
Further, the page configuration module 103 is also used to:
The layout metamessage of each page is extracted from the component Configuration data of each page, and is believed according to the layout member of each page Breath forms corresponding each layout page;
Extract the data metamessage of each layout page from the component Configuration data of each page, and by the number of each layout page According to metamessage, fill to corresponding layout page, to form each displayed page.
Further, the reception determining module 101 is also used to:
Local page configuration version number is read from default storage region, and determine the local page configuration version number with Whether the page configuration version number is identical;
If the local page configuration version number is identical as the page configuration version number, page configuration is not triggered and is referred to It enables, otherwise triggers page configuration instruction.
Further, the page configuration device further include:
Display module is applied homepage for obtaining from each rendering page for be stored in the default storage region, and is shown Show described using homepage;
The display module is also used to when the page jump for detecting triggering instructs, from being stored in the default storage The rendering page corresponding with page jump instruction is obtained in each rendering page in region, and shows the rendering page.
Further, the page configuration device further include:
Update module, the renewal of the page request issued for receiving server, and according in renewal of the page request Component Configuration data update the corresponding rendering page.
Further, the page configuration device further include:
Executive mode determining module determines page for obtaining currently available cpu resource, and according to currently available cpu resource The executive mode of face configuration operation is single-page executive mode or multi-page executive mode;
Execution module executes one page if the executive mode for page configuration operation is single-page executive mode every time The page configuration in face operates;
The execution module, if the executive mode for being also used to page configuration operation is multi-page executive mode, basis is worked as Before can use cpu resource determine it is synchronous execute page number, and according to it is described it is synchronous execute page number, execute the page of the corresponding number page Face configuration operation.
Further, the execution module, is also used to:
The mapping table of the currently available cpu resource that acquisition prestores and synchronous execution page number, and closed from the mapping It is to inquire synchronous execution page number corresponding with currently available cpu resource in table.
Wherein, each in the function realization and above-mentioned page configuration embodiment of the method for modules in above-mentioned page configuration device Step is corresponding, and function and realization process no longer repeat one by one here.
In addition, the embodiment of the present invention also provides a kind of readable storage medium storing program for executing.
Page configuration program is stored on readable storage medium storing program for executing of the present invention, wherein the page configuration program is held by processor When row, realize such as the step of above-mentioned page configuration method.
Wherein, page configuration program, which is performed realized method, can refer to each reality of page configuration method of the present invention Example is applied, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of page configuration method, which is characterized in that be applied to server cluster, the page configuration method includes following step It is rapid:
When detecting default application program launching, the page configuration version number that server issues is received, and according to default storage Local page configuration version number and the page configuration version number in region determine whether to trigger page configuration instruction;
If triggering page configuration instruction, to the acquisition request of the server sending assembly configuration data, and the clothes are received The component Configuration data for each page that business device is issued based on the acquisition request;
According to the component Configuration data of each page, each displayed page is formed, and each displayed page is rendered, to obtain Each rendering page, and each rendering page is stored to the default storage region.
2. page configuration method as described in claim 1, which is characterized in that the component Configuration data according to each page, The step of forming each displayed page include:
Extract the layout metamessage of each page from the component Configuration data of each page, and according to the layout metamessage of each page, Form corresponding each layout page;
Extract the data metamessage of each layout page from the component Configuration data of each page, and by the data element of each layout page Information is filled to corresponding layout page, to form each displayed page.
3. page configuration method as described in claim 1, which is characterized in that the basis presets the native page in storage region Face configuration version number and the page configuration version number determine whether that the step of triggering page configuration instruction includes:
Local page configuration version number is read from default storage region, and determine the local page configuration version number with it is described Whether page configuration version number is identical;
If the local page configuration version number is identical as the page configuration version number, page configuration instruction is not triggered, it is no Then trigger page configuration instruction.
4. page configuration method as claimed in any one of claims 1-3, which is characterized in that the component according to each page Configuration data forms each displayed page, and renders to each displayed page, to obtain each rendering page, and by each wash with watercolours After the step of dye page is stored to the default storage region, further includes:
It is obtained from each rendering page for be stored in the default storage region and applies homepage, and shown described using homepage;
When detect triggering page jump instruct when, from each rendering page for be stored in the default storage region obtain with The page jump instructs the corresponding rendering page, and shows the rendering page.
5. page configuration method as claimed in any one of claims 1-3, which is characterized in that the component according to each page Configuration data forms each displayed page, and renders to each displayed page, to obtain each rendering page, and by each wash with watercolours After the step of dye page is stored to the default storage region, further includes:
The renewal of the page request that server issues is received, and according to the component Configuration data in renewal of the page request, is updated The corresponding rendering page.
6. page configuration method as claimed in any one of claims 1-3, which is characterized in that the page configuration method is also wrapped It includes:
Currently available cpu resource is obtained, and according to currently available cpu resource, determines that the executive mode of page configuration operation is single Page executive mode or multi-page executive mode;
If the executive mode of page configuration operation is single-page executive mode, the page configuration operation of a page is executed every time;
If the executive mode of page configuration operation is multi-page executive mode, determines to synchronize according to currently available cpu resource and hold Row page number, and according to the synchronous execution page number, execute the page configuration operation of the corresponding number page.
7. page configuration method as claimed in claim 6, which is characterized in that described to be determined together according to currently available cpu resource Walking the step of executing page number includes:
Obtain the mapping table of the currently available cpu resource that prestores with synchronous execution page number, and from the mapping table In, inquire synchronous execution page number corresponding with currently available cpu resource.
8. a kind of page configuration device, which is characterized in that the page configuration device includes:
Determining module is received, for when detecting default application program launching, receiving the page configuration version that server issues Number, and according in default storage region local page configuration version number and the page configuration version number determine whether trigger page Face configuration-direct;
Transceiver module, if for triggering page configuration instruction, to the acquisition request of the server sending assembly configuration data, And receive the component Configuration data for each page that the server is issued based on the acquisition request;
Page configuration module forms each displayed page for the component Configuration data according to each page, and to each displaying page Face is rendered, and to obtain each rendering page, and each rendering page is stored to the default storage region.
9. a kind of page configuration equipment, which is characterized in that the page configuration equipment includes processor, memory and storage On the memory and the page configuration program that can be executed by the processor, wherein the page configuration program is by the place When managing device and executing, the step of realizing page configuration method as described in any one of claims 1 to 7.
10. a kind of readable storage medium storing program for executing, which is characterized in that page configuration program is stored on the readable storage medium storing program for executing, wherein When the page configuration program is executed by processor, realizing the page configuration method as described in any one of claims 1 to 7 Step.
CN201810945965.6A 2018-08-20 2018-08-20 Page configuration method, apparatus, equipment and readable storage medium storing program for executing Withdrawn CN109710328A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810945965.6A CN109710328A (en) 2018-08-20 2018-08-20 Page configuration method, apparatus, equipment and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810945965.6A CN109710328A (en) 2018-08-20 2018-08-20 Page configuration method, apparatus, equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN109710328A true CN109710328A (en) 2019-05-03

Family

ID=66253655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810945965.6A Withdrawn CN109710328A (en) 2018-08-20 2018-08-20 Page configuration method, apparatus, equipment and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN109710328A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515606A (en) * 2019-08-30 2019-11-29 南京焦点领动云计算技术有限公司 A kind of Components Development method based on block
CN110597511A (en) * 2019-08-19 2019-12-20 深圳木成林科技有限公司 Page automatic generation method, system, terminal equipment and storage medium
CN110704102A (en) * 2019-09-12 2020-01-17 北京字节跳动网络技术有限公司 Page jump protocol interface document generation method, system, medium and electronic device
CN110990008A (en) * 2019-11-28 2020-04-10 北京三快在线科技有限公司 Method, device, storage medium and electronic equipment for updating page
CN111198996A (en) * 2019-12-20 2020-05-26 上海淇玥信息技术有限公司 Page display method and device and electronic equipment
CN111984248A (en) * 2019-05-22 2020-11-24 腾讯科技(深圳)有限公司 Page editing method and device, storage medium and electronic device
CN112416410A (en) * 2020-12-09 2021-02-26 北京顺达同行科技有限公司 Data management method and device for small program, computer equipment and storage medium
CN113076102A (en) * 2021-04-16 2021-07-06 酷得少年(天津)文化传播有限公司 Page display method, device, equipment and medium
CN113434211A (en) * 2021-06-24 2021-09-24 平安国际智慧城市科技股份有限公司 Application program function dynamic configuration method, device, equipment and storage medium

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984248A (en) * 2019-05-22 2020-11-24 腾讯科技(深圳)有限公司 Page editing method and device, storage medium and electronic device
CN111984248B (en) * 2019-05-22 2023-08-25 腾讯科技(深圳)有限公司 Page editing method and device, storage medium and electronic device
CN110597511A (en) * 2019-08-19 2019-12-20 深圳木成林科技有限公司 Page automatic generation method, system, terminal equipment and storage medium
CN110515606A (en) * 2019-08-30 2019-11-29 南京焦点领动云计算技术有限公司 A kind of Components Development method based on block
CN110704102A (en) * 2019-09-12 2020-01-17 北京字节跳动网络技术有限公司 Page jump protocol interface document generation method, system, medium and electronic device
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
CN111198996A (en) * 2019-12-20 2020-05-26 上海淇玥信息技术有限公司 Page display method and device and electronic equipment
CN112416410A (en) * 2020-12-09 2021-02-26 北京顺达同行科技有限公司 Data management method and device for small program, computer equipment and storage medium
CN113076102A (en) * 2021-04-16 2021-07-06 酷得少年(天津)文化传播有限公司 Page display method, device, equipment and medium
CN113434211A (en) * 2021-06-24 2021-09-24 平安国际智慧城市科技股份有限公司 Application program function dynamic configuration method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109710328A (en) Page configuration method, apparatus, equipment and readable storage medium storing program for executing
EP3255909B1 (en) Messaging application interacting with one or more extension applications
US11375345B2 (en) Message extension app store
US6366947B1 (en) System and method for accelerating network interaction
JP4857349B2 (en) Method, system, and computer program for providing asynchronous portal pages within a portal system
CN105786513A (en) Mixed mobile application development method based on Html5
CN105955888B (en) Page debugging preview method and system
CN110020325A (en) Page loading method, device, equipment and readable storage medium storing program for executing
CN103914205B (en) A kind of file thumbnail methods of exhibiting of intelligent terminal and device
CN109800173A (en) Program debugging method, device and storage medium
CN109697093A (en) Card generation method, card generating means, mobile terminal and readable storage medium storing program for executing
CN111433743A (en) APP remote control method and related equipment
CN111597489B (en) Realization method and device for draggable custom form component based on mobile terminal
CN108509207A (en) The cross-system of WEB application program is installed
EP1906305B1 (en) Method and system for data preparation and communication between software applications
CN105450461A (en) Shunting method and network equipment
CN104219295A (en) Server-side configuration based information display method and system for mobile equipment
CN101383842A (en) System and method for displaying network information by computer background screen
CN106230977B (en) A kind of client functionality loading method, system, client and server-side
CN105868420A (en) Network resource loading mode configuration method and device
CN104965723B (en) The operation method and device of application program
CN109885355A (en) A kind of application starting method and relevant apparatus
CN109391676A (en) Terminal equipment control method, terminal device and computer readable storage medium
GB2539758A (en) Techniques for evaluating applications through use of an auxiliary application
CN112214202B (en) Mobile phone program development system without writing codes

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20190503

WW01 Invention patent application withdrawn after publication