CN109960769A - Display methods, device, computer equipment and the storage medium of webpage view - Google Patents

Display methods, device, computer equipment and the storage medium of webpage view Download PDF

Info

Publication number
CN109960769A
CN109960769A CN201910196199.2A CN201910196199A CN109960769A CN 109960769 A CN109960769 A CN 109960769A CN 201910196199 A CN201910196199 A CN 201910196199A CN 109960769 A CN109960769 A CN 109960769A
Authority
CN
China
Prior art keywords
view
state
webpage
web page
current web
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.)
Granted
Application number
CN201910196199.2A
Other languages
Chinese (zh)
Other versions
CN109960769B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201910196199.2A priority Critical patent/CN109960769B/en
Publication of CN109960769A publication Critical patent/CN109960769A/en
Application granted granted Critical
Publication of CN109960769B publication Critical patent/CN109960769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

This application involves a kind of display methods of webpage view, device, computer equipment and storage mediums.The described method includes: the notice that the rendering process for receiving webpage view is terminated;Detect the display state of current web page view;Display state is including showing state or not showing state;If current web page view, which is in, does not show state, Deng until current web page view switches to when showing state, webpage view is reloaded.The case where reloading reloading failure caused by webpage view after being terminated using the rendering process that this method can reduce webpage view immediately or dragging slow operating system efficiency, is reduced the consumption of memory, promotes the reloading efficiency of webpage view.

Description

Display methods, device, computer equipment and the storage medium of webpage view
Technical field
This application involves web displaying technical fields, more particularly to a kind of display methods of webpage view, device, calculating Machine equipment and storage medium.
Background technique
Webpage view (WebView) is a kind of control for loaded and displayed webpage that operating system is included.
In some operating systems, when loading the device memory deficiency of the operating system, operating system can recycle memory, The page rendering process that webpage view can be terminated during recycling memory causes the page display of corresponding application program empty It is white.
In traditional solution, can it be reloaded when the page rendering process for monitoring webpage view is terminated The webpage view that is terminated restores the display page, but reload operation also can committed memory, may cause reloading failure Or operating system efficiency is reduced, have the defects that reload low efficiency.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of net that can expeditiously restore display and be terminated Display methods, device, computer equipment and the storage medium of the webpage view of page view page.
A kind of display methods of webpage view, comprising:
Receive the notice that the rendering process of webpage view is terminated;Detect the display state of current web page view;Show shape State is including showing state or not showing state;If current web page view, which is in, does not show state, Deng until current web page View switches to when showing state, reloads webpage view.
In one embodiment, after the display state for detecting current web page view, further includes: if at current web page view In showing state, then webpage view is reloaded.
In one embodiment, equal until the switching of current web page view if current web page view, which is in, does not show state To when showing state, webpage view is reloaded, comprising: if current web page view, which is in, does not show state, will add again It carries mark amount and is assigned a value of the first value;When monitor webpage view switch to showing state when, read reloading mark amount Value;If reading reloading mark measurement value is the first value, webpage view is reloaded, and reloading mark amount is assigned Value is second value.
In one embodiment, the display state of current web page view is detected, comprising: detection current web page view is corresponding Whether application program is in active state;Currently whether the view controller comprising webpage view is located at view controller stack for detection Top;If current application program is in active state and active view controller is located at the top of view controller stack, really Settled preceding webpage view is in and is showing state;If current application program is not in active state or active view controller not It is positioned at the top of view controller stack, it is determined that current web page view is in and does not show state.
In one embodiment, current web page view switches to the state of display, comprising: when current web page view is corresponding Application program when being not in active state, monitor the active state of application program;If monitoring application program from inactive shape When state switches to active state, then detection currently includes whether the view controller of webpage view is located at the top of view controller stack Portion;If active view controller is located at the top of view controller stack, it is determined that current web page view, which switches to, is showing shape State.
In one embodiment, current web page view switches to the state of display, comprising: when current web page view is corresponding Application program be in active state, and include that the view controller of webpage view is not located at the top of view controller stack When, then when the view controller for monitoring webpage view is located at the top of view controller stack, determine that webpage view switches to Showing state.
In one embodiment, webpage view is reloaded, comprising: the webpage view for being terminated rendering process, from packet It is removed in view controller containing the webpage view;A new webpage view is constructed in memory, and by new webpage view It is added in view controller;Utilize the new webpage view of the view controller loaded and displayed comprising new webpage view.
A kind of display device of webpage view, described device include:
Process terminates notice receiving module, the notice that the rendering process for receiving webpage view is terminated;
State detection module is shown, for detecting the display state of current web page view;Display state includes showing State does not show state;
First reloading module, does not show state if being in for current web page view, equal until webpage view switching To when showing state, webpage view is reloaded.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device performs the steps of when executing the computer program
Receive the notice that the rendering process of webpage view is terminated;Detect the display state of current web page view;Show shape State is including showing state or not showing state;If current web page view, which is in, does not show state, Deng until current web page View switches to when showing state, reloads webpage view.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It is performed the steps of when row
Receive the notice that the rendering process of webpage view is terminated;Detect the display state of current web page view;Show shape State is including showing state or not showing state;If current web page view, which is in, does not show state, Deng until current web page View switches to when showing state, reloads webpage view.
Display methods, device, computer equipment and the storage medium of above-mentioned webpage view, in the wash with watercolours for receiving webpage view When the notice that dye process is terminated, the display state of current web page view is detected first, if detected at current web page view In not showing state, then without reloading webpage view immediately, but wait until current web page view switches to and showing shape When state, then reload webpage view.It just terminates so as to reducing the rendering process of webpage view and reloads webpage immediately The case where reloading caused by view fails or drags slow operating system efficiency reduces the consumption of memory, promotes webpage view The reloading efficiency of figure.
Detailed description of the invention
Fig. 1 is the applied environment figure of the display methods of webpage view in one embodiment;
Fig. 2 is the flow diagram of the display methods of webpage view in one embodiment;
Fig. 3 is the flow diagram of the display methods of webpage view in another embodiment;
Fig. 4 is the structural block diagram of the display device of webpage view in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
The display methods of webpage view provided by the present application can be applied in terminal 100 as shown in Figure 1.Terminal It is mounted with operating system 101 in 100, and is mounted with application program 102, it is corresponding when application program 102 controls the display page The rendering process an of webpage view can be generated, if operating system memory is insufficient, terminates the rendering process of the webpage view, then The application program 102 loaded in terminal 102 can execute the display methods of the webpage view of the embodiment of the present application, restore display by end The page only.Wherein, terminal 102 can be, but not limited to be various personal computers, laptop, smart phone, plate electricity Brain and portable wearable device etc..
In one embodiment, as shown in Fig. 2, providing a kind of display methods of webpage view, it is applied in this way It is illustrated in the application program loaded in terminal in Fig. 1, comprising the following steps:
S202 receives the notice that the rendering process of webpage view is terminated;
In this step, application program monitors the rendering process status of current web page view, when operating system terminates webpage When the rendering process of view, application program receives the notice that the rendering process of webpage view is terminated.Specifically, it can answer When being in active state with program, the notice that the rendering process of monitoring and reception webpage view is terminated, and if application program When being not in active state, then the rendering process that existing part operation system may not receive webpage view is terminated Notice.
As illustratively, by taking operating system is Ios system as an example, corresponding webpage view is WKWebView.This step In, whether application program can be terminated by WebViewWebContentProcessDidTerminate come monitor operating system (Kill) the rendering process of WKWebView.It specifically, can be by judging whether WKWebview.title is sky, to judge Whether operating system terminates the rendering process of WKWebView, if monitoring that WKWebview.title for sky, is equivalent to Have received the notice that the rendering process of webpage view is terminated.
S204 detects the display state of current web page view;Wherein, display state includes showing state or not showing State;If current web page view is in and does not show state, S206 is executed;
In this step, application program detects currently quilt after the notice that the rendering process for receiving webpage view is terminated The display state of the webpage view of termination.If the rendering process of current web page view is not in the case where being terminated, webpage view Scheming corresponding loading page can be seen by the user, then current web page view is in and is showing in state, and if current net In the case where not being terminated, the corresponding loading page of webpage view can not be seen by the user the rendering process of page view, example When hiding such as program backstage, then current web page view is in non-display state.
S206 waits until current web page view switches to when showing state, reloads webpage view.
In this step, if current web page view, which is in, does not show that state, application program will not reload net immediately Page view, but can recorde current web page view needs and reload, and waiting until monitor current web page view By do not show state switch to showing state when, then reload webpage view.
The display methods of above-mentioned webpage view, in the notice that the rendering process for receiving webpage view is terminated, first The display state of current web page view is detected, if detecting that current web page view is in does not show state, without weighing immediately Webpage view is loaded, but is waited until current web page view switches to when showing state, then reloads webpage view.From And the rendering process that can reduce webpage view has just terminated reloading failure caused by reloading webpage view immediately or has dragged The case where slow operating system efficiency, the consumption of memory is reduced, the reloading efficiency of webpage view is promoted.
In one embodiment, as shown in figure 3, after the display state of detection current web page view, further includes: if current Webpage view is in and is showing state, then executes S208;
S208 reloads webpage view.
In the present embodiment, in the notice that the rendering process for receiving webpage view is terminated, if current web page view In when showing state, if illustrating to reload webpage view not in time at this time, it may appear that the page shows the case where blank, then Webpage view directly is reloaded, to restore the display content of Webpage as early as possible, the case where reducing page white screen.
In one embodiment, if current web page view, which is in, does not show state, S206 is executed, is waited until current web page View switches to when showing state, reloads webpage view, comprising: if current web page view, which is in, does not show state, Reloading mark amount is then assigned a value of the first value;When monitor webpage view switch to showing state when, read reloading The value of mark amount;If reading reloading mark measurement value is the first value, webpage view is reloaded, and will reloading Mark amount is assigned a value of second value.
For example, reloading mark amount can be Boolean type (BOOL) variable, when the variable assignments is true, represent The rendering process of webpage view is closed by operating system, and next webpage view switches to when showing state, need again plus Carry the display page of the webpage view.And when the variable assignments is false, then webpage view switches to the state of display When, without reloading the display page of the webpage view.
In the present embodiment, terminal is in each received notice being terminated to webpage view, and webpage view is in not When display state, a reloading mark amount is assigned a value of the first value, needs weight for recording the webpage view being currently terminated New load.In this way, terminal monitor every time webpage view by do not show state switch to showing state when, be performed both by one The secondary operation for reading reloading mark amount is reloaded and is being shown if the reloading mark amount read is the first value Webpage view;And if the reloading mark amount read is second value, illustrate the rendering process of webpage view at this time not by It terminates, does not need to reload the webpage view shown.To realize the efficient note for whether needing to reload to webpage Record avoids reloading EMS memory occupation caused by webpage view in unnecessary situation, promotes operational efficiency.
In one embodiment, the display state of current web page view is detected, comprising: detection current web page view is corresponding Whether application program is in active state;Currently whether the view controller comprising webpage view is located at view controller stack for detection Top;If current application program is in active state and active view controller is located at the top of view controller stack, really Settled preceding webpage view is in and is showing state;If current application program is not in active state or active view controller not It is positioned at the top of view controller stack, it is determined that current web page view is in and does not show state.
Wherein, the active state of application program may include two kinds, in being in active state, such as application program During opening use by user;Another kind be not in active state, such as user presses terminal home key, or Person receives phone, when opening control centre etc..It, can be true if detecting that application program is not in active state The webpage view of fixed application program at this time is in the state that do not show, and if needing root during application program is in active state Further judge according to position of the view controller comprising webpage view in view controller stack.
Illustratively, it for Ios operating system, can detect [UIApplicationsharedApplication] .applicationState==UIApplicationStateActive When, determine that current application program is in active state.And it can detect self.navigationController. When visibleViewController==self, determine that currently the view controller comprising webpage view is located at view control The top of device stack.
In the present embodiment, the view controller according to the active state of webpage view and comprising webpage view is in view control Position in device stack can rapidly and accurately determine the display state of current web page view.
In one embodiment, current web page view switches to the state of display, comprising: when current web page view is corresponding Application program when being not in active state, monitor the active state of application program;If monitoring application program from inactive shape When state switches to active state, then detection currently includes whether the view controller of webpage view is located at the top of view controller stack Portion;If active view controller is located at the top of view controller stack, it is determined that current web page view, which switches to, is showing shape State.
By taking Ios operating system as an example, active status notification UI can be returned to from inactive state monitoring application program When ApplicationDidBecomeActiveNotification, determine that application program switches to moving type from inactive state State.
It is to be monitored to application when the corresponding application program of current web page view is not in active state in the present embodiment When program switches to active state, then it is located at the top of view controller stack in the view controller currently comprising webpage view When, determine that current web page view switches to the state of display.So as to rapidly and accurately determine the switching of current web page view To showing state.
In one embodiment, current web page view switches to the state of display, comprising: when current web page view is corresponding Application program be in active state, and include that the view controller of webpage view is not located at the top of view controller stack When, then when the view controller for monitoring webpage view is located at the top of view controller stack, determine that webpage view switches to Showing state.
By taking Ios operating system as an example, when under the corresponding application program of webpage view is in active state, work as user's operation When the view controller comprising the webpage view being made to reach the top of view controller stack, the Life Cycle of view controller is responded Phase :-(void) viewDidAppear:(BOOL) animated, then the state of display can be switched to webpage view.
In the present embodiment, when the corresponding application program of current web page view is in active state, then to webpage view When view controller is located at the top of view controller stack, determine that webpage view switches to the state of display.So as to fast Speed accurately determines current web page view and switches to the state of display.
In one embodiment, webpage view is reloaded, comprising: the webpage view for being terminated rendering process, from packet It is removed in view controller containing the webpage view;A new webpage view is constructed in memory, and by new webpage view It is added in view controller;Utilize the new webpage view of the view controller loaded and displayed comprising new webpage view.Wherein, The new webpage view of construction corresponds to the identical display page with the webpage view being terminated.
Illustratively, in Ios operating system, [WKWebView loadRequest] loaded and displayed can be loaded according to url The new webpage view.
When reloading webpage view, a kind of optional scheme is to reload the webpage view being terminated, such as in Ios In system, the webpage view being terminated can be loaded by the Reload method of calling WKWebView again.And in this implementation In example, the webpage view being terminated is not reloaded, but removes completely the webpage view being terminated, and constructs and load new webpage View improves the success rate reloaded so as to avoid memory overflow.
It should be understood that although each step in the flow chart of Fig. 2-3 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 4, providing a kind of display device 400 of webpage view, comprising: process is whole Only notify receiving module 402, display state detection module 404 and the first reloading module 406, in which:
Process terminates notice receiving module 402, the notice that the rendering process for receiving webpage view is terminated;
State detection module 404 is shown, for detecting the display state of current web page view;Display state includes showing Show state or does not show state;
First reloading module 406, does not show state if being in for current web page view, Deng until webpage view is cut It shifts to when showing state, reloads webpage view.
In one embodiment, the display device 400 of webpage view further include: the second reloading module, if for current Webpage view is in and is showing state, then reloads webpage view.
In one embodiment, the first reloading module 406 includes:
First mark amount assignment module does not show state if being in for current web page view, will reload mark amount It is assigned a value of the first value;
Mark amount read module, for when monitor webpage view switch to showing state when, read reloading mark The value of will amount;
Second mark amount assignment module is reloaded if being the first value for reading reloading mark measurement value Webpage view, and reloading mark amount is assigned a value of second value.
In one embodiment, display state detection module 404 includes:
Application Status detection module, for detecting whether the corresponding application program of current web page view is in moving type State;
View controller position detecting module, for detecting whether the current view controller comprising webpage view is located at view The top of figure controller stack;
State determining module is being shown, if being in active state for current application program and active view controller position In the top of view controller stack, it is determined that current web page view is in and is showing state;
State determining module is not shown, if being not in active state or active view controller not for current application program It is positioned at the top of view controller stack, it is determined that current web page view is in and does not show state.
In one embodiment, the first reloading module 406 is used to not locate when the corresponding application program of current web page view When active state, the active state of application program is monitored;If monitoring, application program switches to moving type from inactive state When state, then detection currently includes whether the view controller of webpage view is located at the top of view controller stack;If active view Controller is located at the top of view controller stack, it is determined that current web page view switches to the state of display.
In one embodiment, the first reloading module 406 is used to be in when the corresponding application program of current web page view Active state, and when including that the view controller of webpage view is not located at the top of view controller stack, then when monitoring net When the view controller of page view is located at the top of view controller stack, determine that webpage view switches to the state of display.
In one embodiment, the first reloading module 406 be for will render the webpage view that process is terminated, from comprising It is removed in the view controller of the webpage view;A new webpage view is constructed in memory, and new webpage view is added Enter in view controller;Utilize the new webpage view of the view controller loaded and displayed comprising new webpage view.
The specific of display device about webpage view limits the display methods that may refer to above for webpage view Restriction, details are not described herein.Modules in the display device of above-mentioned webpage view can be fully or partially through software, hard Part and combinations thereof is realized.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, It can also be stored in a software form in the memory in computer equipment, execute the above modules in order to which processor calls Corresponding operation.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure can be as shown in Figure 5.The computer equipment includes processor, the memory, network interface, display connected by system bus Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of display methods of webpage view.The display screen of the computer equipment can be liquid crystal display or electric ink is aobvious Display screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible to computer equipment shell Key, trace ball or the Trackpad of upper setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor perform the steps of when executing computer program
Receive the notice that the rendering process of webpage view is terminated;Detect the display state of current web page view;Show shape State is including showing state or not showing state;If current web page view, which is in, does not show state, Deng until current web page View switches to when showing state, reloads webpage view.
In one embodiment, following steps are also realized when processor executes computer program:
If current web page view is in and is showing state, webpage view is reloaded.
In one embodiment, following steps are also realized when processor executes computer program:
If current web page view is in and does not show state, reloading mark amount is assigned a value of the first value;When monitoring net Page view switches to when showing state, reads the value of reloading mark amount;If reading reloading mark measurement value For the first value, then webpage view is reloaded, and reloading mark amount is assigned a value of second value.
In one embodiment, following steps are also realized when processor executes computer program:
Whether the corresponding application program of detection current web page view is in active state;Detection currently includes webpage view Whether view controller is located at the top of view controller stack;If current application program is in active state and active view controls Device is located at the top of view controller stack, it is determined that current web page view is in and is showing state;If current application program is not It is in active state or active view controller is not located at the top of view controller stack, it is determined that current web page view is in State is not shown.
In one embodiment, following steps are also realized when processor executes computer program:
When the corresponding application program of current web page view is not in active state, the active state of application program is monitored; If monitor that application program switches to active state from inactive state, detection currently includes the view control of webpage view Whether device is located at the top of view controller stack;If active view controller is located at the top of view controller stack, it is determined that when Preceding webpage view switches to the state of display.
In one embodiment, following steps are also realized when processor executes computer program:
When the corresponding application program of current web page view is in active state, and include the view controller of webpage view not When being positioned at the top of view controller stack, then when monitoring that the view controller of webpage view is located at the top of view controller stack When portion, determine that webpage view switches to the state of display.
In one embodiment, webpage view is reloaded, comprising: the webpage view for being terminated rendering process, from packet It is removed in view controller containing the webpage view;A new webpage view is constructed in memory, and by new webpage view It is added in view controller;Utilize the new webpage view of the view controller loaded and displayed comprising new webpage view.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
Receive the notice that the rendering process of webpage view is terminated;Detect the display state of current web page view;Show shape State is including showing state or not showing state;If current web page view, which is in, does not show state, Deng until current web page View switches to when showing state, reloads webpage view.
In one embodiment, following steps are also realized when computer program is executed by processor:
If current web page view is in and is showing state, webpage view is reloaded.
In one embodiment, following steps are also realized when computer program is executed by processor:
If current web page view is in and does not show state, reloading mark amount is assigned a value of the first value;When monitoring net Page view switches to when showing state, reads the value of reloading mark amount;If reading reloading mark measurement value For the first value, then webpage view is reloaded, and reloading mark amount is assigned a value of second value.
In one embodiment, following steps are also realized when computer program is executed by processor:
Whether the corresponding application program of detection current web page view is in active state;Detection currently includes webpage view Whether view controller is located at the top of view controller stack;If current application program is in active state and active view controls Device is located at the top of view controller stack, it is determined that current web page view is in and is showing state;If current application program is not It is in active state or active view controller is not located at the top of view controller stack, it is determined that current web page view is in State is not shown.
In one embodiment, following steps are also realized when computer program is executed by processor:
When the corresponding application program of current web page view is not in active state, the active state of application program is monitored; If monitor that application program switches to active state from inactive state, detection currently includes the view control of webpage view Whether device is located at the top of view controller stack;If active view controller is located at the top of view controller stack, it is determined that when Preceding webpage view switches to the state of display.
In one embodiment, following steps are also realized when computer program is executed by processor:
When the corresponding application program of current web page view is in active state, and include the view controller of webpage view not When being positioned at the top of view controller stack, then when monitoring that the view controller of webpage view is located at the top of view controller stack When portion, determine that webpage view switches to the state of display.
In one embodiment, following steps are also realized when computer program is executed by processor:
The webpage view that rendering process is terminated, removes from the view controller comprising the webpage view;In memory One new webpage view of middle construction, and new webpage view is added in view controller;Using including new webpage view The view controller loaded and displayed new webpage view.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (11)

1. a kind of display methods of webpage view, which comprises
Receive the notice that the rendering process of webpage view is terminated;
Detect the display state of current web page view;The display state is including showing state or not showing state;
It is equal until current web page view switches to when showing state if current web page view, which is in, does not show state, it weighs Newly load the webpage view.
2. the method according to claim 1, wherein it is described detection current web page view display state after, Further include:
If current web page view is in and is showing state, the webpage view is reloaded.
3. the method according to claim 1, wherein being waited if current web page view, which is in, does not show state It is switched to current web page view when showing state, reloads the webpage view, comprising:
If current web page view is in and does not show state, reloading mark amount is assigned a value of the first value;
When monitor the webpage view switch to showing state when, read it is described reloading mark amount value;
If reading the reloading mark measurement value is the first value, the webpage view is reloaded, and will be described heavy Load mark amount is assigned a value of second value.
4. according to claim 1 to method described in 3 any one, which is characterized in that the detection current web page view is shown Show state, comprising:
Whether the corresponding application program of detection current web page view is in active state;
Detection currently includes whether the view controller of the webpage view is located at the top of view controller stack;
If presently described application program is in active state and presently described view controller is located at the top of view controller stack, It then determines that current web page view is in and is showing state;
If presently described application program is not in active state or presently described view controller is not located at view controller stack Top, it is determined that current web page view be in do not show state.
5. according to claim 1 to method described in 3 any one, which is characterized in that the current web page view switches to just In display state, comprising:
When the corresponding application program of current web page view is not in active state, the active state of the application program is monitored;
If monitor that the application program switches to active state from inactive state, detects and currently regarded comprising the webpage Whether the view controller of figure is located at the top of view controller stack;
If presently described view controller is located at the top of view controller stack, it is determined that current web page view, which switches to, to be shown Show state.
6. according to claim 1 to method described in 3 any one, which is characterized in that the current web page view switches to just In display state, comprising:
When the corresponding application program of current web page view is in active state, and include the view controller of the webpage view not When being positioned at the top of view controller stack, then when the view controller for monitoring the webpage view is located at view controller stack Top when, determine that the webpage view switches to the state of display.
7. according to claim 1 to method described in 3 any one, which is characterized in that it is described to reload the webpage view, Include:
The webpage view that rendering process is terminated, removes from the view controller comprising the webpage view;
A new webpage view is constructed in memory, and new webpage view is added in view controller;
Utilize the new webpage view of the view controller loaded and displayed comprising the new webpage view.
8. a kind of display device of webpage view, which is characterized in that described device includes:
Process terminates notice receiving module, the notice that the rendering process for receiving webpage view is terminated;
State detection module is shown, for detecting the display state of current web page view;The display state includes showing State does not show state;
First reloading module, does not show state if being in for current web page view, equal until webpage view switching To when showing state, the webpage view is reloaded.
9. device according to claim 8, which is characterized in that further include:
Second reloading module, is showing state if being in for current web page view, is reloading the webpage view.
10. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910196199.2A 2019-03-15 2019-03-15 Webpage view display method and device, computer equipment and storage medium Active CN109960769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910196199.2A CN109960769B (en) 2019-03-15 2019-03-15 Webpage view display method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910196199.2A CN109960769B (en) 2019-03-15 2019-03-15 Webpage view display method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109960769A true CN109960769A (en) 2019-07-02
CN109960769B CN109960769B (en) 2021-08-31

Family

ID=67024448

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910196199.2A Active CN109960769B (en) 2019-03-15 2019-03-15 Webpage view display method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109960769B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008142614A1 (en) * 2007-05-24 2008-11-27 Nokia Corporation Webpage history view
CN101763432A (en) * 2010-01-05 2010-06-30 北京大学 Method for constructing lightweight webpage dynamic view
EP2395419A2 (en) * 2010-06-09 2011-12-14 Lg Electronics Inc. Mobile terminal and displaying method therefor
CN102929917A (en) * 2011-09-20 2013-02-13 微软公司 Dynamic content feed source filtering
CN103942231A (en) * 2013-01-18 2014-07-23 联想(北京)有限公司 Webpage displaying method and electronic device
US9294538B1 (en) * 2013-02-12 2016-03-22 Amazon Technologies, Inc. Dynamic content injection
CN105630267A (en) * 2014-10-29 2016-06-01 阿里巴巴集团控股有限公司 View interface resource management method and apparatus
CN105653586A (en) * 2015-12-21 2016-06-08 北京奇虎科技有限公司 Method and device for switching webpages in browser labels

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008142614A1 (en) * 2007-05-24 2008-11-27 Nokia Corporation Webpage history view
CN101763432A (en) * 2010-01-05 2010-06-30 北京大学 Method for constructing lightweight webpage dynamic view
EP2395419A2 (en) * 2010-06-09 2011-12-14 Lg Electronics Inc. Mobile terminal and displaying method therefor
CN102929917A (en) * 2011-09-20 2013-02-13 微软公司 Dynamic content feed source filtering
CN103942231A (en) * 2013-01-18 2014-07-23 联想(北京)有限公司 Webpage displaying method and electronic device
US9294538B1 (en) * 2013-02-12 2016-03-22 Amazon Technologies, Inc. Dynamic content injection
CN105630267A (en) * 2014-10-29 2016-06-01 阿里巴巴集团控股有限公司 View interface resource management method and apparatus
CN105653586A (en) * 2015-12-21 2016-06-08 北京奇虎科技有限公司 Method and device for switching webpages in browser labels

Also Published As

Publication number Publication date
CN109960769B (en) 2021-08-31

Similar Documents

Publication Publication Date Title
US10325009B2 (en) Method and apparatus for using custom component parsing engine to parse tag of custom component
CN110020323A (en) Mix page switching method, frame, computer equipment and the storage medium of application
CN109669877B (en) Memory management method, device, terminal and storage medium
CN110908837B (en) Application program exception handling method and device, electronic equipment and storage medium
CN110515710A (en) Asynchronous task scheduling method, apparatus, computer equipment and storage medium
CN108268296A (en) Loading method, the client and server of page layout
CN103699477A (en) Pressure testing method and terminal
CN109344066A (en) A kind of test method of browser page, system and terminal
CN113220403B (en) Method and device for h5 intercepting Android return event and electronic equipment
CN110362341A (en) Business management method, device, equipment and storage medium based on micro services framework
CN110119490A (en) Web browser method, device, computer equipment and storage medium
CN109960769A (en) Display methods, device, computer equipment and the storage medium of webpage view
CN115599630A (en) Display method, device, equipment and medium of mobile terminal
CN113688343A (en) Page permission control method, device, equipment and readable storage medium
CN105224579B (en) A kind of history page air navigation aid and device
CN107220081A (en) Update method, device and the electronic equipment of screen locking load card
CN111159027B (en) Automatic testing method and device, computer equipment and readable storage medium
CN105740064B (en) The method and device for preventing server-side from restarting in linux system
CN106095445B (en) Installation method, device and the terminal of driver
CN110908866A (en) Software monitoring method and related equipment
CN112306838A (en) Page layout compatibility testing method, device and equipment and readable storage medium
CN111459481A (en) Page sideslip method and device, electronic equipment and storage medium
CN110134502A (en) Task processing method, device, system, computer equipment and storage medium
CN104268198B (en) Browser plug-in control method and device and terminal
CN108228307A (en) Display methods, device, storage medium and the electronic equipment of application

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
GR01 Patent grant
GR01 Patent grant