CN106055564B - Page loading method and device - Google Patents

Page loading method and device Download PDF

Info

Publication number
CN106055564B
CN106055564B CN201610333189.5A CN201610333189A CN106055564B CN 106055564 B CN106055564 B CN 106055564B CN 201610333189 A CN201610333189 A CN 201610333189A CN 106055564 B CN106055564 B CN 106055564B
Authority
CN
China
Prior art keywords
page
switch
state value
value
display
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.)
Active
Application number
CN201610333189.5A
Other languages
Chinese (zh)
Other versions
CN106055564A (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201610333189.5A priority Critical patent/CN106055564B/en
Publication of CN106055564A publication Critical patent/CN106055564A/en
Application granted granted Critical
Publication of CN106055564B publication Critical patent/CN106055564B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

The present invention relates to a kind of page loading methods, which is characterized in that the described method comprises the following steps: obtaining the first display request for opening first page;According to the first page element in first page described in the first display request;Switch associated with the first page element in the first page is searched in customized label;The state value to inductive switch is obtained according to the switch;The state value is loaded into the hidden value of the first page element, the first page is made to show the first page element according to the hidden value is corresponding.The efficiency to page load can be improved in the above method.In addition, also correspondence provides a kind of page loading device.

Description

Page loading method and device
Technical field
The present invention relates to technical field of the computer network, more particularly to a kind of page loading method and device.
Background technique
JSP (Java Server Pages, the java server page) forms pages generation technique is in Web application and development Common technology.As the service content for showing and providing on webpage is more and more, the displaying of these service content is opened Beginning uses switch to be controlled, for example controls opening and closing for a functional module in webpage by setting switch to correspond to It closes, or the displaying and closing of the picture in control webpage.
However, this traditional method is all individually to write one section of code to each switch, when user's page of every progress When operation, require to inquire switch setting relevant to the page by calling a background data base, and according to the switch Setting again loads the page.Therefore, the needs of traditional this method are continually interacted with background data base, are made Obtain the inefficiency of page load.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of page load that can be improved page loading efficiency Method and apparatus.
A kind of page loading method, the described method comprises the following steps:
Obtain the first display request for opening first page;
According to the first page element in first page described in the first display request;
Switch associated with the first page element in the first page is searched in customized label;
The state value to inductive switch is obtained according to the switch;
The state value is loaded into the hidden value of the first page element, makes the first page according to described hidden Hiding value is corresponding to show the first page element.
In one of the embodiments, the method also includes:
Obtain the second display request for opening second page associated with first page;
Obtain the second page element associated with the first page element in second page;
The state value of switch associated with the first page element is loaded into the hidden value of second page element, The second page is set to show the second page element according to the hidden value is corresponding.
In one of the embodiments, the method also includes:
When the display to the second page generates exception, changes and the display of the second page generates abnormal phase The state value of the switch of pass, so that being shown corresponding with the state of switch after change when reopening the second page Second page.
In one of the embodiments, the method also includes:
Store the abnormal information of the display of the second page;
Exception reporting is generated according to the information;
When the display of the second page described in the exception reporting is repaired extremely, by the state value of the switch Change the state value before changing that returns something for repairs.
The described the step of state value to inductive switch is obtained according to the switch in one of the embodiments, comprising:
Obtain the receiving time of the first display request;
Obtain state value of the switch under the receiving time.
A kind of page loading device, described device include:
Page elements obtain module, for obtaining the first display request for opening first page;According to first display First page element in first page described in request;
Switch obtains module, related to the first page element in the first page for searching in customized label The switch of connection;The state value to inductive switch is obtained according to the switch;
Loading module makes described first for the state value to be loaded into the hidden value of the first page element The page shows the first page element according to the hidden value is corresponding.
The page elements acquisition module is also used to obtain opening associated with first page in one of the embodiments, Second page second display request;Obtain the second page face element associated with the first page element in second page Element;
The loading module is also used to the state value of switch associated with the first page element being loaded into second In the hidden value of page elements, the second page is made to show the second page element according to the hidden value is corresponding.
Described device in one of the embodiments, further include:
State value modified module, for changing and the second page when the display to the second page generates abnormal The display in face generates the state value of abnormal relevant switch, so that showing and change when reopening the second page The corresponding second page of the state of switch afterwards.
Described device in one of the embodiments, further include:
Memory module, the information of the display exception for storing the second page;
Exception reporting generation module, for generating exception reporting according to the information;
The state value modified module is also used to work as the display exception quilt of second page described in the exception reporting When reparation, the state value of the switch is changed into the state value before changing that returns something for repairs.
When the switch acquisition module is also used to obtain the reception of the first display request in one of the embodiments, Between;Obtain state value of the switch under the receiving time.
Above-mentioned page loading method and device, by being searched and the page elements phase in first page in customized label Associated switch, and the state value of the switch is assigned among the attribute value of page elements, it can be without re-calling rear number of units According to the state value to inductive switch is inquired, make first page according to corresponding with the displaying of the hidden value of switch page elements, because And further increase the efficiency to page load.
Detailed description of the invention
Fig. 1 is the applied environment figure of page loading method in one embodiment;
Fig. 2 is the flow diagram of page loading method in one embodiment;
Fig. 3 A is the displaying schematic diagram of the part of the page in one embodiment;
Fig. 3 B is the displaying schematic diagram of the part of the page in another embodiment;
Fig. 4 is the flow diagram of page loading method in another embodiment;
Fig. 5 is the structural schematic diagram of page loading device in one embodiment;
Fig. 6 is the structural schematic diagram of page loading device in another embodiment;
Fig. 7 is the structural schematic diagram of page loading device in another embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the present invention, not For limiting the present invention.
The page loading method provided in the embodiment of the present invention, can be applied in application environment as shown in Figure 1.Referring to Fig. 1, terminal 100 can be connected by network with server 200.Wherein, terminal 100 includes but is not limited to mobile phone, desktop computer And tablet computer etc..The configuration information of related web page is stored in server 200, terminal 100 can be clear by what is installed thereon The webpage that there is provided in the access server 200 such as device or related application is provided, is interacted with server 200.When server 200 receives To terminal 100 web access requests when, the relevant configuration information of the webpage can be loaded into the browser or correlation of terminal 100 In, so that can show its webpage accessed in terminal 100.
In one embodiment, as shown in Figure 1, providing a kind of page loading method, this method be can be applied to shown in Fig. 1 Server in, include the following steps 202~210.
Step 202, the first display request for opening first page is obtained.
In the present embodiment, user can be by clicking the corresponding URL of the first page (Uniform Resource Locator, uniform resource locator) chained address, for terminal after detecting the click commands of user, first page is opened in generation First display request, by this first display request be sent on server, server receive this first display request.This first Include the page iden-tity of first page in display request, for example is the corresponding URL link address of first page.Server is obtaining To after the first display request, corresponding first page can be determined according to page iden-tity entrained in the first display request.
Step 204, according to the page elements in the first display request first page.
Specifically, may include that picture, button, search box etc. are one such or a variety of in the page in first page The page elements that can be shown.
As shown in Figure 3A, the part related pages element shown by first page in one embodiment, the page elements Including 310~330, wherein 310 can be personal information element, it is specific in may include text, picture and button etc.;320 be search Column content;330 be the concrete functions such as the first functional areas content, including 330a and 330b.It as shown in Figure 3B, is another page institute The part related pages element of displaying, wherein further including 340 in addition to comprising 310~330, wherein 340 be in the second functional areas Hold, the concrete functions such as including 340a, 340b and 340c.
Step 206, switch associated with the page elements in first page is searched in customized label.
In the present embodiment, a customized label can be pre-created in server, joined in customized label comprising multiple labels It counts, includes the information of switch corresponding with some or all page elements in the service in first page in the tag parameter. The customized label created can be embedded into JSP by server in advance, so that receiving the display request to first page When, associated customized label can be directly and quickly found from embedded JSP, and read in the customized label Tag parameter, so as to get the information of switch associated with first page.
Further, the information of the switch includes switch mark and ID of trace route path.Switch mark is for unique identification and really The fixed switch, can be switch names;ID of trace route path indicates the path that the switch details are stored, and can switch and be stored The title of database.Wherein, switch details include the state of switch, and the state of switch includes closed state and opening state State.The state of switch is indicated with state value, for example, use state value is that " Y " indicates that switch is open state, use state value Indicate that switch is in off state for " N ".Different switch states can make the page elements associated by it have different display modes. In one embodiment, association multiple switch can be corresponded in first page, each switch can be associated with a page or multiple pages again The specific page elements in one or more of face.
For example, for that an association can be arranged to page elements 330 and switch in first page as shown in Figure 3A, Make the specific page elements of one or more of its association 330, for example two specific pages of 330a and 330b therein can be associated with Element.And it is further, which can also be closed with the page elements 330 in another page as shown in Figure 3B simultaneously Connection, i.e., the switch can be associated with the page elements in multiple pages.
It again for example, can be to the specific page of each of page elements 340 similarly in the page as shown in Figure 3B A switch is respectively set in element 340a, 340b and 340c, make its respectively with specific page elements 340a, 340b and 340c phase Association.
For example, it is associated with the page elements 330 in Fig. 3 A in the presence of switch A, when switch A is open state, can correspond to Show that in page elements 330 as shown in Figure 3B include all specific page elements such as 330a and 330b;When switch is closed When, then can not displayed page element 330, it is perhaps corresponding to show another page elements or the displayed page in the form of another Element 330.
Step 208, the state value to inductive switch is obtained according to switch.
In the present embodiment, server is read in the switch parameter by obtaining switch parameter in customized label Switch names and the title for switching stored database, and the state of switch is inquired according to the switch names in the database Value.Pass through the corresponding state for judging switch of acquired state value.
Step 210, state value is loaded into the hidden value of page elements, shows first page according to hidden value is corresponding Page elements.
The hidden value of page elements can be used for determining the display mode of the page, for example, the page elements may make to hide Or display etc..Server can control by the way that the state value of switch to be loaded among the hidden value of corresponding page elements To the display mode of the page elements in first page, so as to finally change the load control to first page.
In the present embodiment, by searching switch associated with the page elements in first page in customized label, And the state value of the switch is assigned among the attribute value of page elements, it can be without re-calling back-end data to inquire correspondence The state value of switch makes first page according to page elements corresponding with the displaying of the hidden value of the switch, thus further increases To the efficiency of page load.
In one embodiment, as shown in figure 4, providing another page loading method, this method further include:
Step 212, the second display request for opening second page associated with first page is obtained.
In the present embodiment, second page and first page have incidence relation, for example second page can be first page Subpage frame can also be webpage corresponding to the related link according to provided in first page.
Second display request can be to be generated according to the URL link address for carrying second page clicked in first page Access instruction, terminal is corresponding to generate the access instruction by the operation behavior of detection user, which is sent to clothes Business device.Server can obtain access instruction transmitted by terminal, show second page according to the access instruction is corresponding.
Step 214, the second page element associated with first page element in second page is obtained.
In the present embodiment, there is second page face element associated with the first page element in first page in second page Element, wherein second page element associated with first page element can be with the identical page elements of first page, It is also possible to the page elements that there is certain logical relation with first page element.In second page except comprising with first page face element It also may include other page elements except the associated second page element of element, likewise, in other page elements Corresponding switch is respectively set also partly or entirely to carry out load control.The controlling party of its control method and first page element Method is similar.
For example, Fig. 3 A is the displaying schematic diagram of the part of first page, is referred to when getting to the click of wherein 330b When enabling the first display request generated, the part shown if Fig. 3 B is second page associated with first page can be corresponded to Displaying schematic diagram.Page elements 340 in Fig. 3 B correspond to the page elements of the concrete function of " account is logical " of 330b.Its In, the page elements 310~330 in Fig. 3 B are corresponding with the element 310~330 in Fig. 3 A.Page elements 310 in Fig. 3 A~ The state value to inductive switch is loaded in 330 hidden value respectively, server is according to first display request of loading such as Fig. 3 B Shown in second page when, the state value to inductive switch can be obtained from the hidden value of the page elements 310~330 in Fig. 3 A, Its display state will be kept as shown in Figure 3B in the hidden value of the corresponding page elements 310~330 being loaded into Fig. 3 B of the state value.
Step 216, the state value of switch associated with first page element is loaded into hiding for second page element In value, second page is made to show second page element according to hidden value is corresponding.
In the present embodiment, server can directly there are in the hidden value of the first page of incidence relation with second page element The state value to inductive switch loaded before acquisition, and the state value is corresponded to the hidden value for being loaded into second page element In, so that second page is shown second page element according to hidden value is corresponding, so as to more rapidly open up to second page Show, improves page loading efficiency.
In one embodiment, above-mentioned page loading method further include: when the display to second page generates exception, more Change the state value that abnormal relevant switch is generated to the display of second page, so that showing when reopening second page Second page corresponding with the state of the switch after change.
In the present embodiment, it includes: according to the second display request of loading second that the display of second page, which generates abnormal situation, Display caused by related pages element in the page is abnormal, and further includes signified to the related pages element in second page To other pages load caused by show it is abnormal etc..
Specifically, can obtain to generate the exception switch corresponding to relevant second page element state value, and Field information relevant to the switch is obtained, is modified to it, makes to change the pre-set state value of the switch.Specifically , if the state value of the switch is expressed as switch and opens, the state value can be modified, so that it is expressed as switch and closes, conversely, if The state value of the switch is expressed as switch and closes, then can modify the state value, so that it is expressed as switch and opens.
For example, when the second display of the 330b of first page in Fig. 3 A is requested in server response, shown second The page can not show page elements 340 as shown in Figure 3B, or other abnormal conditions occur.Server can be corresponding according to this Second shows the state value of switch corresponding to request page elements 340 or 330b, and to state set by the switch Value is modified.
Page loading method provided by the present embodiment can be applied in the usage scenario to webpage development, for example, first The state value for the corresponding switch that the hidden values of the page elements of a certain function of display is loaded is defaulted in the page for default shape When state value, which is shown as latest edition page elements, right when it is non-default state value that the hidden value, which is loaded, Page elements are answered to be shown as legacy version page elements.When server detects user terminal to the latest edition page elements When access occurs abnormal, then the state value that can modify the switch is non-default value, so that when reloading first page, the page Surface element is shown in the form of legacy version page elements, to can guarantee that user continues normally to access the first page, is made It obtains resource to be fully utilized, avoids resources idle.
In one embodiment, above-mentioned page loading method further include: store the abnormal information of the display of second page;Root It is believed that breath generates exception reporting;When the display of the second page described in the exception reporting is repaired extremely, by the shape of switch State value changes the state value before changing that returns something for repairs.
Specifically, server can store the abnormal letter that the related second page element in second page can not normally be shown Breath, and store acquired the second display request for causing the second page element not show normally.It is upper according to what is stored The abnormal information generation exception reporting of the display of second page is stated, exception reporting generated is sent to pre-set management Member's terminal, makes administrator terminal that can parse the reason of second page element can not normally be shown according to the exception reporting, goes forward side by side Row is repaired.
After administrator terminal, which repairs second page element, normally to be shown, it is complete associated restoration can be sent to server Complete information.The display for stating second page corresponding can be generated the corresponding of exception and opened by server after getting the information The state of pass more change back before state value.
In the present embodiment, when by being repaired extremely in the display for detecting second page, by by corresponding switch State value modifies back default value, can fast display of the quick-recovery to second page, to also improve page remediation efficiency.
In one embodiment, the step of state value to inductive switch being obtained according to switch, comprising: obtain the first display and ask The receiving time asked;Obtain state value of the switch under receiving time.
Specifically, server can be preset the state value of switch corresponding to the first page element in first page with Corresponding relationship between receiving time determines the state value of switch according to the corresponding relationship.For example, it is settable when 330 receiving between When in first time period, it may make that the state value of the switch is default value, when being in second time period, corresponding state value is Non-default value.When the state value difference of switch, after the hidden value for the correspondence first page element being loaded into, first page may make Surface element is shown in the form of correspondence is different.Server obtains first display and asks when getting the first display request The receiving time asked, and inquire the state value switched under the receiving time.Specifically, when can inquire belonging to the receiving time Between section, the state value of the switch is determined according to the affiliated period.
For example, first page element can be a certain picture presentation area in first page, and server is settable to work as When 2, this periods of 30 days to 2016 on October of September in 2016, when the state value of switch is non-default value, at this time when this After the hidden value of one page elements is loaded with the non-default value, it can be shown in the picture presentation area related to pre-set National Day Picture.When in other time section, state value is default value, when the hidden value of the first page element is loaded with the default It is corresponding to show other pictures after value.
Page loading method provided by the present embodiment institute, can be improved the diversity shown to first page.
In one embodiment, as shown in figure 5, providing a kind of page loading device, which includes:
Page elements obtain module 502, for obtaining the first display request for opening first page;It is asked according to the first display Seek the first page element obtained in first page.
In the present embodiment, user can be by clicking the corresponding URL of the first page (Uniform Resource Locator, uniform resource locator) chained address, for terminal after detecting the click commands of user, first page is opened in generation First display request, by this first display request be sent on server, server receive this first display request.This first Include the page iden-tity of first page in display request, for example is the corresponding URL link address of first page.Server is obtaining To after the first display request, corresponding first page can be determined according to page iden-tity entrained in the first display request.
Specifically, may include that picture, button, search box etc. are one such or a variety of in the page in first page The page elements that can be shown.
As shown in Figure 3A, the part related pages element shown by first page in one embodiment, the page elements Including 310~330, wherein 310 can be personal information element, it is specific in may include text, picture and button etc.;320 be search Column content;330 be the concrete functions such as the first functional areas content, including 330a and 330b.It as shown in Figure 3B, is another page institute The part related pages element of displaying, wherein further including 340 in addition to comprising 310~330, wherein 340 be in the second functional areas Hold, the concrete functions such as including 340a, 340b and 340c.
Switch obtains module 504, related to the first page element in first page for searching in customized label The switch of connection;The state value to inductive switch is obtained according to switch.
In the present embodiment, a customized label can be pre-created in server, joined in customized label comprising multiple labels It counts, includes the information of switch corresponding with some or all page elements in the service in first page in the tag parameter. The customized label created can be embedded into JSP by server in advance, so that receiving the display request to first page When, associated customized label can be directly and quickly found from embedded JSP, and read in the customized label Tag parameter, so as to get the information of switch associated with first page.
Further, the information of the switch includes switch mark and ID of trace route path.Switch mark is for unique identification and really The fixed switch, can be switch names;ID of trace route path indicates the path that the switch details are stored, and can switch and be stored The title of database.Wherein, switch details include the state of switch, and the state of switch includes closed state and opening state State.The state of switch is indicated with state value, for example, use state value is that " Y " indicates that switch is open state, use state value Indicate that switch is in off state for " N ".Different switch states can make the page elements associated by it have different display modes. In one embodiment, association multiple switch can be corresponded in first page, each switch can be associated with a page or multiple pages again The specific page elements in one or more of face.
For example, for that an association can be arranged to page elements 330 and switch in first page as shown in Figure 3A, Make the specific page elements of one or more of its association 330, for example two specific pages of 330a and 330b therein can be associated with Element.And it is further, which can also be closed with the page elements 330 in another page as shown in Figure 3B simultaneously Connection, i.e., the switch can be associated with the page elements in multiple pages.
It again for example, can be to the specific page of each of page elements 340 similarly in the page as shown in Figure 3B A switch is respectively set in element 340a, 340b and 340c, make its respectively with specific page elements 340a, 340b and 340c phase Association.
For example, it is associated with the page elements 330 in Fig. 3 A in the presence of switch A, when switch A is open state, can correspond to Show that in page elements 330 as shown in Figure 3B include all specific page elements such as 330a and 330b;When switch is closed When, then can not displayed page element 330, it is perhaps corresponding to show another page elements or the displayed page in the form of another Element 330.
In the present embodiment, server is read in the switch parameter by obtaining switch parameter in customized label Switch names and the title for switching stored database, and the state of switch is inquired according to the switch names in the database Value.Pass through the corresponding state for judging switch of acquired state value.
Loading module 506 makes first page according to hidden for state value to be loaded into the hidden value of first page element Hiding value is corresponding to show first page element.
The hidden value of page elements can be used for determining the display mode of the page, for example, the page elements may make to hide Or display etc..Server can control by the way that the state value of switch to be loaded among the hidden value of corresponding page elements To the display mode of the page elements in first page, so as to finally change the load control to first page.
In the present embodiment, by searching switch associated with the page elements in first page in customized label, And the state value of the switch is assigned among the attribute value of page elements, it can be without re-calling back-end data to inquire correspondence The state value of switch makes first page according to page elements corresponding with the displaying of the hidden value of the switch, thus further increases To the efficiency of page load.
In one embodiment, page elements obtain module 502 and are also used to obtain opening associated with first page the Second display request of two pages;Obtain the second page element associated with first page element in second page.
In the present embodiment, second page and first page have incidence relation, for example second page can be first page Subpage frame can also be webpage corresponding to the related link according to provided in first page.
Second display request can be to be generated according to the URL link address for carrying second page clicked in first page Access instruction, terminal is corresponding to generate the access instruction by the operation behavior of detection user, which is sent to clothes Business device.Server can obtain access instruction transmitted by terminal, show second page according to the access instruction is corresponding.
There is second page element associated with the first page element in first page in second page, wherein with first The associated second page element of page elements can be with the identical page elements of first page, be also possible to first Page elements have the page elements of certain logical relation.It is removed in second page and includes associated with first page element second It also may include other page elements except page elements, likewise, also dividing for some or all of in other page elements Corresponding switch is not set to carry out load control.Its control method is similar with the control method of first page element.
For example, Fig. 3 A is the displaying schematic diagram of the part of first page, is referred to when getting to the click of wherein 330b When enabling the first display request generated, the part shown if Fig. 3 B is second page associated with first page can be corresponded to Displaying schematic diagram.Page elements 340 in Fig. 3 B correspond to the page elements of the concrete function of " account is logical " of 330b.Its In, the page elements 310~330 in Fig. 3 B are corresponding with the element 310~330 in Figure 33 0A.Page elements 310 in Fig. 3 A The state value to inductive switch is loaded in~330 hidden value respectively, server is according to first the display request of loading such as figure Shown in 3B when second page, the state to inductive switch can be obtained from the hidden value of the page elements 310~330 in Fig. 3 A Value will make its display state such as Fig. 3 B institute in the hidden value of the corresponding page elements 310~330 being loaded into Fig. 3 B of the state value Show.
Loading module is also used to the state value of switch associated with first page element being loaded into second page element Hidden value in, so that second page is shown second page element according to hidden value is corresponding.
In the present embodiment, server can directly there are in the hidden value of the first page of incidence relation with second page element The state value to inductive switch loaded before acquisition, and the state value is corresponded to the hidden value for being loaded into second page element In, so that second page is shown second page element according to hidden value is corresponding, so as to more rapidly open up to second page Show, improves page loading efficiency.
In one embodiment, as shown in fig. 6, providing another page loading device, the device further include:
State value modified module 508, for when the display to second page generates abnormal, change to be aobvious with second page Show the state value for generating abnormal relevant switch, so that showing and the switch after change when reopening second page The corresponding second page of state.
In the present embodiment, it includes: according to the second display request of loading second that the display of second page, which generates abnormal situation, Display caused by related pages element in the page is abnormal, and further includes signified to the related pages element in second page To other pages load caused by show it is abnormal etc..
Specifically, can obtain to generate the exception switch corresponding to relevant second page element state value, and Field information relevant to the switch is obtained, is modified to it, makes to change the pre-set state value of the switch.Specifically , if the state value of the switch is expressed as switch and opens, the state value can be modified, so that it is expressed as switch and closes, conversely, if The state value of the switch is expressed as switch and closes, then can modify the state value, so that it is expressed as switch and opens.
For example, when the second display of the 330b of first page in Fig. 3 A is requested in server response, shown second The page can not show page elements 340 as shown in Figure 3B, or other abnormal conditions occur.Server can be corresponding according to this Second shows the state value of switch corresponding to request page elements 340 or 330b, and to state set by the switch Value is modified.
Page loading device provided by the present embodiment can be applied in the usage scenario to webpage development, for example, first The state value for the corresponding switch that the hidden values of the page elements of a certain function of display is loaded is defaulted in the page for default shape When state value, which is shown as latest edition page elements, right when it is non-default state value that the hidden value, which is loaded, Page elements are answered to be shown as legacy version page elements.When server detects user terminal to the latest edition page elements When access occurs abnormal, then the state value that can modify the switch is non-default value, so that when reloading first page, the page Surface element is shown in the form of legacy version page elements, to can guarantee that user continues normally to access the first page, is made It obtains resource to be fully utilized, avoids resources idle.
In one embodiment, as shown in fig. 7, providing another page loading device, the device further include:
Memory module 510, the information of the display exception for storing second page.
Exception reporting generation module 512, for generating exception reporting according to information.
The display that state value modified module 508 is also used to work as second page described in exception reporting is repaired extremely When, the state value of switch is changed into the state value before changing that returns something for repairs.
Specifically, server can store the abnormal letter that the related second page element in second page can not normally be shown Breath, and store acquired the second display request for causing the second page element not show normally.It is upper according to what is stored The abnormal information generation exception reporting of the display of second page is stated, exception reporting generated is sent to pre-set management Member's terminal, makes administrator terminal that can parse the reason of second page element can not normally be shown according to the exception reporting, goes forward side by side Row is repaired.
After administrator terminal, which repairs second page element, normally to be shown, it is complete associated restoration can be sent to server Complete information.The display for stating second page corresponding can be generated the corresponding of exception and opened by server after getting the information The state of pass more change back before state value.
In the present embodiment, when by being repaired extremely in the display for detecting second page, by by corresponding switch State value modifies back default value, can fast display of the quick-recovery to second page, to also improve page remediation efficiency.
In one embodiment, switch obtains the receiving time that module 504 is also used to obtain the first display request;Acquisition is opened Close the state value under receiving time.
Specifically, server can be preset the state value of switch corresponding to the first page element in first page with Corresponding relationship between receiving time determines the state value of switch according to the corresponding relationship.For example, it is settable when 330 receiving between When in first time period, it may make that the state value of the switch is default value, when being in second time period, corresponding state value is Non-default value.When the state value difference of switch, after the hidden value for the correspondence first page element being loaded into, first page may make Surface element is shown in the form of correspondence is different.Server obtains first display and asks when getting the first display request The receiving time asked, and inquire the state value switched under the receiving time.Specifically, when can inquire belonging to the receiving time Between section, the state value of the switch is determined according to the affiliated period.
For example, first page element can be a certain picture presentation area in first page, and server is settable to work as When 2, this periods of 30 days to 2016 on October of September in 2016, when the state value of switch is non-default value, at this time when this After the hidden value of one page elements is loaded with the non-default value, it can be shown in the picture presentation area related to pre-set National Day Picture.When in other time section, state value is default value, when the hidden value of the first page element is loaded with the default It is corresponding to show other pictures after value.
Page loading method provided by the present embodiment institute, can be improved the diversity shown to 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 program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage is situated between Matter can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and 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 inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (8)

1. a kind of page loading method, which is characterized in that the described method comprises the following steps:
Obtain the first display request for opening first page;
According to the first page element in first page described in the first display request;
Switch associated with the first page element in the first page is searched in customized label;
The state value to inductive switch is obtained according to the switch;
The state value is loaded into the hidden value of the first page element, makes the first page according to the hidden value It is corresponding to show the first page element;
The method also includes:
Obtain the second display request for opening second page associated with first page;
Obtain the second page element associated with the first page element in second page;
The state value of switch associated with the first page element is loaded into the hidden value of second page element, institute is made It states second page and shows the second page element according to the hidden value is corresponding.
2. the method according to claim 1, wherein the method also includes:
When the display generation to the second page is abnormal, changes the display to the second page and generate the relevant of exception The state value of switch, so that being shown and the state of switch corresponding second after change when reopening the second page The page.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
Store the abnormal information of the display of the second page;
Exception reporting is generated according to the information;
When the display of the second page described in the exception reporting is repaired extremely, the state value of the switch is changed The state value to return something for repairs before changing.
4. the method according to claim 1, wherein the state value obtained according to the switch to inductive switch The step of, comprising:
Obtain the receiving time of the first display request;
Obtain state value of the switch under the receiving time.
5. a kind of page loading device, which is characterized in that described device includes:
Page elements obtain module, for obtaining the first display request for opening first page;According to the first display request Obtain the first page element in the first page;
Switch obtains module, associated with the first page element in the first page for searching in customized label Switch;The state value to inductive switch is obtained according to the switch;
Loading module makes the first page for the state value to be loaded into the hidden value of the first page element The first page element is shown according to the hidden value is corresponding;
The second display that the page elements acquisition module is also used to obtain opening second page associated with first page is asked It asks;Obtain the second page element associated with the first page element in second page;
The loading module is also used to the state value of switch associated with the first page element being loaded into second page In the hidden value of element, the second page is made to show the second page element according to the hidden value is corresponding.
6. device according to claim 5, which is characterized in that described device further include:
State value modified module, for changing and the second page when the display to the second page generates abnormal Display generates the state value of abnormal relevant switch, so that when reopening the second page, after displaying and change The corresponding second page of the state of switch.
7. device according to claim 6, which is characterized in that described device further include:
Memory module, the information of the display exception for storing the second page;
Exception reporting generation module, for generating exception reporting according to the information;
The display that the state value modified module is also used to work as second page described in the exception reporting is repaired extremely When, the state value of the switch is changed into the state value before changing that returns something for repairs.
8. device according to claim 5, which is characterized in that it is aobvious that the switch acquisition module is also used to obtain described first Show the receiving time of request;Obtain state value of the switch under the receiving time.
CN201610333189.5A 2016-05-18 2016-05-18 Page loading method and device Active CN106055564B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610333189.5A CN106055564B (en) 2016-05-18 2016-05-18 Page loading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610333189.5A CN106055564B (en) 2016-05-18 2016-05-18 Page loading method and device

Publications (2)

Publication Number Publication Date
CN106055564A CN106055564A (en) 2016-10-26
CN106055564B true CN106055564B (en) 2019-03-12

Family

ID=57177798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610333189.5A Active CN106055564B (en) 2016-05-18 2016-05-18 Page loading method and device

Country Status (1)

Country Link
CN (1) CN106055564B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108121748B (en) * 2016-11-30 2020-08-28 腾讯科技(北京)有限公司 Method and device for providing media push
CN106789951A (en) * 2016-11-30 2017-05-31 深圳市彬讯科技有限公司 A kind of network web page abnormality detection realizes system
CN106789948A (en) * 2016-11-30 2017-05-31 深圳市彬讯科技有限公司 A kind of network web page method for detecting abnormality
CN110119290A (en) * 2019-04-12 2019-08-13 平安科技(深圳)有限公司 The spare page switching method of application program, device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094786A (en) * 2014-05-21 2015-11-25 广州市动景计算机科技有限公司 Method and system for customizing page based on JavaScript
CN105528452A (en) * 2015-12-23 2016-04-27 北京奇虎科技有限公司 Method and system for loading page data
CN105553959A (en) * 2015-12-11 2016-05-04 Tcl集团股份有限公司 Remote control method and system capable of dynamically generating intelligent device operation interface

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105094786A (en) * 2014-05-21 2015-11-25 广州市动景计算机科技有限公司 Method and system for customizing page based on JavaScript
CN105553959A (en) * 2015-12-11 2016-05-04 Tcl集团股份有限公司 Remote control method and system capable of dynamically generating intelligent device operation interface
CN105528452A (en) * 2015-12-23 2016-04-27 北京奇虎科技有限公司 Method and system for loading page data

Also Published As

Publication number Publication date
CN106055564A (en) 2016-10-26

Similar Documents

Publication Publication Date Title
CN110149423B (en) Domain name processing method and device, readable storage medium and electronic equipment
CN106055564B (en) Page loading method and device
CN101611422B (en) Web data usage platform
JP5305581B2 (en) Method, portal, and computer program for exchanging portlet configuration data
US11366676B2 (en) Embedded user assistance for software applications
KR101547194B1 (en) Method and application for managing cookie-information
US9727354B2 (en) System and methods for loading an application and its modules in a client device
US8166134B2 (en) Server system, method of controlling operation thereof and control program therefor
CN108153551A (en) A kind of operation flow page shows method and apparatus
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
US11553035B2 (en) Cross-platform module for loading across a plurality of device types
US7783751B2 (en) Communication system, proxy server, method of controlling same and control program therefor
CN101266623A (en) Page jump method and system
US20210105314A1 (en) Associating browser with application
US10726092B2 (en) Method of improving web page loading time using scannable indicia
CN111124411A (en) Method and system for personalized setting of form based on dynamic page
CN109190067A (en) Browser input frame methods of exhibiting, device, computer equipment and storage medium
JP2012064207A (en) Host device and content display method of the same
CN110362341A (en) Business management method, device, equipment and storage medium based on micro services framework
CN105653724A (en) Page exposure monitoring method and device
CN109255082B (en) Page label display method and device
CN104731897A (en) Method and device for achieving information displaying
CN112417336B (en) Page display method and device, electronic equipment and storage medium
US20080297521A1 (en) System and method for providing skins for a web page
US10963533B2 (en) Embedded web page analytic elements

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant