CN110442286A - A kind of page display method, device and electronic equipment - Google Patents
A kind of page display method, device and electronic equipment Download PDFInfo
- Publication number
- CN110442286A CN110442286A CN201910691237.1A CN201910691237A CN110442286A CN 110442286 A CN110442286 A CN 110442286A CN 201910691237 A CN201910691237 A CN 201910691237A CN 110442286 A CN110442286 A CN 110442286A
- Authority
- CN
- China
- Prior art keywords
- page
- application program
- stored
- target
- program identification
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/0483—Interaction with page-structured environments, e.g. book metaphor
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention provides a kind of page display method, device and electronic equipments, wherein, this method comprises: obtaining the target identification of target pages information when detecting that specified page control is triggered, target pages information is the specified corresponding page info of page control;According to target identification, the corresponding target view controller of pre-stored target identification is obtained;The downloading page of destination application is shown by target view controller.It so, it is possible to promote the displaying speed for downloading the page.
Description
Technical field
The present invention relates to technical field of internet application, set more particularly to a kind of page display method, device and electronics
It is standby.
Background technique
More and more advertisers at popularization and application/games (Application, APP), selection it is certain other
Advertisement is launched inside APP, user can open application shop (Appstore) when clicking these advertisements and show that APP downloads page
APP water conservancy diversion is realized for user's downloading, installation in face, improves APP installation rate.
Existing dispensing advertisement has following methods: first way, directly launches the mark (identity, ID) of APP,
APP ID is carried i.e. in advertisement, when the user clicks when the advertisement, is opened application shop and is shown the corresponding APP downloading page of APP ID
Face.The second way is launched uniform resource locator (Uniform Resource Locator, URL), i.e., is carried in advertisement
The URL when the user clicks when the advertisement, the standard URL for obtaining meeting preset format is redirected by 302, parses the mark by URL
Quasi- URL obtains the APP ID for including in standard URL, opens application shop and shows the corresponding APP downloading page of APP ID.
The third mode launches HTML5 (Hyper Text Markup Language 5, hypertext markup language 5) page, the H5 page
Automatically or pass through user's click page jump to application shop and show that the corresponding APP of APP ID downloads the page.
However, inventor has found in the implementation of the present invention, at least there are the following problems for the prior art:
The existing speed that application shop is opened in APP is slow, needs under normal circumstances 2-3 seconds or even longer, because
To open application shop for showing that APP downloads the page, it is understood that show that APP downloads the speed of the page in existing way
It is relatively slow.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of page display method, device and electronic equipment, to promote downloading
The displaying speed of the page.Specific technical solution is as follows:
In a first aspect, the embodiment of the invention provides a kind of page display methods, comprising:
When detecting that specified page control is triggered, the target identification of target pages information, the target pages are obtained
Information is the corresponding page info of the specified page control;
According to the target identification, the corresponding target view controller of the pre-stored target identification is obtained;
The downloading page of the destination application is shown by the target view controller.
Optionally, the corresponding target view of the pre-stored target identification is obtained according to the target identification described
Before figure controller, the method also includes:
Determine application program identification to be stored, the application program identification to be stored includes the target identification;
Create the corresponding view controller of the application program identification to be stored;
It saves the view controller is corresponding with the application program identification to be stored.
Optionally, determination application program identification to be stored, comprising:
Obtain the corresponding page info of page control in webpage;
The page info is parsed, obtains the application program identification for including in the page info, and the page is believed
The application program identification for including in breath is as the application program identification to be stored;Alternatively, parsing the page info, institute is obtained
State the uniform resource position mark URL for including in page info;Operation is redirected to the URL, and obtains the URL and passes through
The application program identification carried in URL after redirection, and the application program identification carried in the URL after redirecting is made
For the application program identification to be stored;Alternatively, parsing the page info, the landing page for including in the page info is obtained
Information, and being matched by canonical, determines the corresponding application program identification of the landing page information, and by the landing page information pair
The application program identification answered is as the application program identification to be stored.
Optionally, described to be matched by canonical, determine the corresponding application program identification of the landing page information, comprising:
Obtain the URL of the landing page information instruction;By presetting regular expression to the landing page information instruction
URL is matched, and the application program identification carried in the URL of the landing page information instruction is obtained;
Alternatively, obtaining the hypertext markup language html source code of the landing page information instruction;By presetting regular expressions
Formula matches the html source code of the landing page information instruction, obtains taking in the html source code of the landing page information instruction
The application program identification of band.
Optionally, it saves the view controller is corresponding with the application program identification to be stored, comprising:
It saves the view controller is corresponding with the application program identification to be stored to default load queue.
Optionally, it saves the view controller is corresponding with the application program identification to be stored to default load queue
Before, the method also includes:
Judge whether the length of the default load queue reaches preset threshold;When the length of the default load queue reaches
When to the preset threshold, removes and saved at first in the default load queue to the view control of the default load queue
Device;
After saving the view controller to the default load queue at first in removing the default load queue, hold
It is about to view controller the step of saving to default load queue corresponding with the application program identification to be stored.
Optionally, the specified page control is the page control comprising promotion message.
Second aspect, the embodiment of the invention provides a kind of page presentation devices, comprising:
First determining module, for obtaining the target of target pages information when detecting that specified page control is triggered
Mark, the target pages information is the corresponding page info of the specified page control;
Module is obtained, for obtaining the corresponding target view of the pre-stored target identification according to the target identification
Figure controller;
Display module, for showing the downloading page of the destination application by the target view controller.
Optionally, described device further include:
Second determining module, for described corresponding according to the pre-stored target identification of target identification acquisition
Target view controller before, determine application program identification to be stored, the application program identification to be stored includes the mesh
Mark mark;
Creation module, for creating the corresponding view controller of the application program identification to be stored;
Preserving module, for saving the view controller is corresponding with the application program identification to be stored.Third party
Face, the embodiment of the invention provides a kind of electronic equipment, including processor, communication interface, memory and communication bus, wherein
The processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes method described in first aspect
Step.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, when in the storage medium
When instruction is executed by the processor of electronic equipment, so that electronic equipment can be realized method and step described in first aspect.
At the another aspect that the present invention is implemented, the embodiment of the invention also provides a kind of, and the computer program comprising instruction is produced
Product, when run on a computer, so that computer executes method and step described in first aspect.
Page display method, device and electronic equipment provided in an embodiment of the present invention can be touched when specified page control
When hair, the target identification of the corresponding target pages information of specified page control is obtained, is obtained according to target identification pre-stored
The corresponding target view controller of target identification, and pass through the downloading page of target view controller displaying destination application.
It does not need when specified page control is triggered, creates the view controller for showing the downloading page of destination application,
So it is able to ascend the displaying speed of the downloading page.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described.
Fig. 1 is the flow chart of page display method provided in an embodiment of the present invention;
Fig. 2 is creation provided in an embodiment of the present invention and the flow diagram for saving view controller;
Fig. 3 is the flow diagram of specific embodiment provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of determining application program identification provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of page presentation device provided in an embodiment of the present invention;
Fig. 6 is another structural schematic diagram of page presentation device provided in an embodiment of the present invention;
Fig. 7 is another structural schematic diagram of page presentation device provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
In existing way, when page control is triggered, after the target identification for obtaining target pages information, target pages letter
Breath is the specified corresponding page info of page control, needs first to create the corresponding view controller of page control, then pass through the view
Figure controller shows the downloading page, so that user passes through the downloading page-downloading application program etc..So that showing downloading page
The speed in face is slower.
In order to promote the speed for showing the downloading page, the embodiment of the invention provides a kind of page display methods.It is right below
Page display method provided in an embodiment of the present invention is described in detail.
Page display method provided in an embodiment of the present invention can be applied to client, such as application program, browser.
The embodiment of the invention provides a kind of page display methods, as shown in Figure 1, may include:
S101 obtains the target identification of target pages information when detecting that specified page control is triggered.
Target pages information is the specified corresponding page info of page control.
Page info includes the information for describing the page, as may include data included in the page, for illustrating
Data of page display way, etc..
Specified page control is the page control comprising promotion message.Wherein, promotion message may include advertisement etc..
Target identification can be the application program identification for being supplied to the application program of user's downloading.
Specifically, client can obtain this from web page server and refer to when detecting that specified page control is triggered
Determine the corresponding target pages information of page control, parse the target pages information, obtain including in the target pages information answers
With program identification, which is target identification.
It is specified alternatively, client when detecting that specified page control is triggered, can obtain this from web page server
The corresponding target pages information of page control, can parse the target pages information, obtains the system for including in target pages information
One Resource Locator URL;Operation is redirected to the URL, and obtain the URL through redirection after URL in carry answer
With program identification, which is target identification.
It is specified alternatively, client when detecting that specified page control is triggered, can obtain this from web page server
The corresponding target pages information of page control parses target pages information, obtains the landing page for including in target pages information letter
Breath, and determine the corresponding application program identification of landing page information, which is target identification.Specifically, it is determined that
The corresponding application program identification of landing page information can be discussed in detail below, not repeat first here.Wherein, landing page is client
It detects that the page shown when page control is triggered, landing page information are the information for the page that description is shown, such as can wrap
Include data included in the page, for data of instruction page display mode, etc..
S102 obtains the corresponding target view controller of pre-stored target identification according to target identification.
It is available to arrive the corresponding target view controller of the target identification using target identification as inquiry key value.
In the embodiment of the present invention, it is corresponding can to save application program identification using application program identification as Key (key) value
View controller.In this way, when getting target identification, it, can be by target identification using target identification as inquiry key value
It is compared with pre-stored application program identification, includes target identification in pre-stored application program identification when determining,
The corresponding target view controller of available target identification.
It, can be by view controller preservation corresponding with application program identification to client local, such as in the embodiment of the present invention
This can locally directly acquire the corresponding target view controller of target identification after determining target identification from client.Client
The local memory that can be understood as client place terminal device in end, caching or other storage equipment etc..
View controller is the important bridge between application data and view, and view controller is for controlling and managing
The data shown on view and administration view adjust view size to adapt to screen.
S103 shows the downloading page of destination application by target view controller.
The downloading page of destination application can be understood as target view controller view to be presented.It is regarded by target
The downloading page of figure controller displaying destination application, it is understood that show view by view controller.In view
Including the content to be presented to user.Include the mode for showing view, view of rendered completion etc. in view controller, leads to
It crosses view controller and calls view, and be shown by way of the displaying view for including in the view controller through view.
It may include the downloading portal of destination application in the downloading page, such as download button, in this way, user can be with
By downloading portal, download button is clicked such as to download the destination application.
In the embodiment of the present invention, the corresponding target of specified page control can be obtained when specified page control is triggered
The target identification of page info obtains the corresponding target view controller of pre-stored target identification according to target identification, and
The downloading page of destination application is shown by target view controller.It does not need when specified page control is triggered, creates
Build the view controller for showing the downloading page of destination application.So it is able to ascend the displaying speed of the downloading page.
For the corresponding target view controller of available pre-stored target identification, the embodiment of the present invention can be with
Including creating the corresponding view controller of application program identification to be stored, and preservation view controller and application program to be stored
The process of mark.In a kind of optional embodiment of the present invention, in step S102: according to target identification, obtaining pre-stored mesh
Before mark identifies corresponding target view controller, as shown in Fig. 2, can also include:
S201 determines application program identification to be stored.
Application program identification to be stored may include target identification.
Specifically, it is determined that application program identification to be stored, may include:
Obtain the corresponding page info of page control in webpage.
Client can be from obtaining the corresponding page info of each page control in multiple webpages in web page server.
In a kind of achievable mode, it can parse page info, obtain the application program identification for including in page info, and
Using the application program identification for including in page info as application program identification to be stored.
In the achievable mode of another kind, page info can parse, obtain the unified resource for including in page info positioning
Accord with URL;Operation is redirected to URL, and obtains the application program identification that URL is carried in the URL after redirecting, and will
The application program identification carried in URL after redirecting is as application program identification to be stored.
In the achievable mode of another kind, it can parse page info, obtain the landing page information for including in page info, and
It is matched by canonical, determines the corresponding application program identification of landing page information, and the corresponding application program mark of page information will be landed
Know and is used as application program identification to be stored.
Specifically, it is matched by canonical, determines the corresponding application program identification of landing page information, comprising:
Obtain the URL of landing page information instruction;By presetting URL progress of the regular expression to landing page information instruction
Match, obtains the application program identification carried in the URL of landing page information instruction.Alternatively, obtaining the super text of landing page information instruction
This markup language html source code;The html source code of landing page information instruction is matched by presetting regular expression, is obtained
The application program identification carried in the html source code of landing page information instruction.
Specifically, the URL that landing page information indicates is obtained, may include:
Obtain the URL carried in landing page information.Alternatively, obtaining the URL carried in landing page information after redirecting
URL.Alternatively, obtain landing page by scripting language source code indicate jump after obtained URL;Alternatively, obtaining landing page letter
The URL that html source code includes in breath.
Specifically, the html source code that landing page information indicates is obtained, may include:
Obtain the html source code of URL corresponding page of the landing page after jumping;It is carried in landing page information alternatively, obtaining
Html source code.
S202 creates the corresponding view controller of application program identification to be stored.
According to application program identification to be stored, the corresponding view controller of application program identification to be stored is somebody's turn to do in creation.
The corresponding downloading page of different application program identifications to be stored is different, can be according to application program identification to be stored
Downloading page related data is obtained from web page server, specifically may include turn on and show the downloading page of application program
Used data, such as exhibition method, and data included in the downloading page etc..
The corresponding view controller of application program identification to be stored is created it is also understood that according to downloading page dependency number
According to view controller is generated, existing view controller frame specifically can choose, according to modifications such as downloading page related datas
The existing view controller frame, obtains the corresponding view controller of application program identification to be stored.
S203, by view controller preservation corresponding with application program identification to be stored.
In the embodiment of the present invention, queue management view controller can be passed through.It, will in a kind of optional embodiment of the present invention
View controller is corresponding with application program identification to be stored to be saved to default load queue.
In order to save memory space, in a kind of optional embodiment of the present invention, view controller is applied into journey with wait store
Sequence mark is corresponding to be saved to before default load queue, can also include:
Judge whether the length of default load queue reaches preset threshold;When the length of default load queue reaches default threshold
When value, removes and saved at first in default load queue to the view controller of default load queue.Removing default load queue
In saved to the view controller of default load queue at first, execute view controller and application program identification to be stored
The step of corresponding preservation to default load queue.
Wherein, preset threshold can determines according to actual conditions, and such as default load queue is the queue of regular length, and pre-
If the length of load queue is 10, then preset threshold can be 10.
Element in queue follows the principle of " first in first out (First In First Out, FIFO) ".Advanced enqueue
Element elder generation dequeue, the element of advanced enqueue is compared to the element of laggard enqueue, being located closer in the queue
Team's head deletes element in team's head in tail of the queue addition element.In the embodiment of the present invention, when the length of default load queue reaches pre-
If when threshold value, team's head that load queue can be preset from this, which removes, to be saved at first in default load queue to default load queue
View controller, it can be interpreted as removing the view controller for being stored in the default load queue squadron head.
As shown in figure 3, create after storing the corresponding view controller of application program identification, can by view controller with
Application program identification to be stored is corresponding to be saved to preloading pond, wherein preloading pond can be understood as by presetting load queue
The storage device of realization, view controller to be saved may include: view controller A, view controller B, view controller
C ..., view controller X, in a kind of achievable mode, the capacity for preloading pond is fixed, in the process for saving view controller
In, the view controller being added at first is removed after preloading pond completely.In this way, after determining target identification, according to target identification
The corresponding target view controller of the target identification is obtained from preloading in the view controller saved in pond, as target identification is
APP A can then determine that the corresponding target view controller of APP A is view controller A, by the view controller, such as regard
Figure controller A opens view controller A, shows the downloading page of the corresponding destination application of APP A, so that user's downloading should
Destination application.
The embodiment of the present invention is pre-created and saves the corresponding view controller of application program identification, in this way, working as specific page
When face control is triggered, the target identification of the corresponding target pages information of specified page control is obtained, it can be directly according to target
Mark obtains the corresponding target view controller of pre-stored target identification, and shows that target is answered by target view controller
With the downloading page of program.It does not need to create the downloading for showing destination application when specified page control is triggered
The view controller of the page.So it is able to ascend the displaying speed of the downloading page.It such as can be by 3 seconds in existing way opening speed
Degree reduced in 1 second.
It in a kind of optional embodiment of the present invention, is matched by canonical, determines the corresponding application program mark of landing page information
Know, as shown in figure 4, may include:
S301 obtains the URL carried in landing page information.
S302 carries out canonical matching to the URL carried in landing page information by presetting regular expression.
S303 judges whether to get application program identification in the URL that can be carried from landing page information.
If so, corresponding as landing page information using application program identification is got from the URL carried in landing page information
Application program identification, terminate whole flow process, that is, terminate to match by canonical, determine the corresponding application program mark of landing page information
The process of knowledge.
If it is not, obtaining URL of the URL carried in landing page information after redirecting.
Specifically, client can send hypertext transfer protocol (HTTP, HyperText to web page server
Transfer Protocol)) GET request, it can be obtained from specified resource request data by sending by GET request
HTTP GET request, web page server upon receiving the request, return to the URL carried in landing page information to client and pass through
URL after redirection.
S304 carries out just URL of the URL carried in landing page information after redirecting by presetting regular expression
Then match.
S305 judges whether that the URL that can be carried from landing page information gets application in the URL after redirecting
Program identification.
If so, using URL of the URL carried from landing page information after redirecting, as landing, page information is corresponding to be answered
With program identification, terminate whole flow process, that is, terminate to match by canonical, determines the corresponding application program identification of landing page information
Process.
If it is not, obtain landing page by scripting language source code indicate jump after obtained URL.
Webkit rendering landing page, carries out Javascript for the landing page after rendering and jumps, client can be to webpage
Server sends request, and web page server, which returns to landing page to client after the request for receiving client transmission, to be passed through
Javascript jumps the URL of rear webpage.
S306, by preset regular expression to landing page by scripting language source code indicate jump after obtained URL
Carry out canonical matching.
S307, judge whether can to land page by scripting language source code indicate jump after get in obtained URL
Application program identification.
If so, by from landing page by scripting language source code indicate jump after the application that gets in obtained URL
Program identification terminates whole flow process, that is, terminates to match by canonical, determine as the corresponding application program identification of landing page information
Land the process of the corresponding application program identification of page information.
If it is not, obtaining the html source code of URL corresponding page of the landing page after jumping.
S308, by presetting regular expression to the html source code for obtaining URL corresponding page of the landing page after jumping
Carry out canonical matching.
S309 judges whether that application can be got from the html source code of URL corresponding page of the landing page after jumping
Program identification.
If so, the application for including in the html source code of URL corresponding page of the landing page that will acquire after jumping
Program identification terminates whole flow process, that is, terminates to match by canonical, determine as the corresponding application program identification of landing page information
Land the process of the corresponding application program identification of page information.
If it is not, obtaining the html source code carried in landing page information.
S310 carries out canonical matching to the html source code carried in landing page information by presetting regular expression.
S311 judges whether to get application program identification in the html source code that can be carried from landing page information.
If application program identification is got in the html source code that can be carried from landing page information, what be will acquire is fallen
The application program identification carried in the html source code carried in ground page information is as the corresponding application program identification of landing page information.
In the achievable mode of another kind, landing the html source code carried in page information does not include application program identification, that is,
If carrying out canonical matching to the html source code carried in landing page information by presetting regular expression, do not get using journey
Sequence mark, then the html source code that can be understood as carrying in landing page information does not also include application program identification, then terminates entire
Process terminates to carry out the matched process of canonical to the html source code carried in landing page information by presetting regular expression.
The matched process of above-mentioned carry out canonical, if there is a matching process available to application program mark in sequence
Know, subsequent match process then no longer executes.If step S302 is by presetting regular expression to the URL carried in landing page information
Carry out that canonical matching is available to arrive application program identification, then it is subsequent no longer execute it is subsequent by default regular expression to falling
URL of the URL carried in ground page information after redirecting carries out the matching process such as canonical matching.
In a kind of achievable mode, default regular expression can be with are as follows:
//apps .apple .com/ ([a-z] { 2 }) / app (/ [^ n] *) / id (d+).
Default regular expression meaning: with //itunes .apple .com beginning (jump and do not need band http/https
Agreement), ([a-z] { 2 }) are country code abbreviation, it is not essential, so adding, containing/app (/ [^ n] *) for/beginning be free of
Any character (retain identification) to space and tab of newline, with/id (d+) number ending.
Regular expression is preset by this to be matched with each matching string, specifically, is judged each to be matched
Whether comprising being beginning with " app " in character string, with the matched character string of number ending, if be included in, it is determined that the matching
Character string is the matching result matched by regular expression.
In a kind of achievable mode of the embodiment of the present invention, before carrying out canonical matching, can by URL to be matched or
Html source code is converted to small letter.In this way, capital and small letter is not needed to distinguish during canonical is matched, it can be more fast and accurately
Ground is matched.
In the achievable mode of another kind, before carrying out canonical matching, URLDecode can be carried out for URL to be matched
(URL decoding), and replace (" ", " ") remove escape character.It so, it is possible to reduce the quantity of character to be matched, improve
With rate, and escape character etc. is avoided to improve matched accuracy to the influence of matching result.
In the achievable mode of another kind, after matching by canonical, if obtaining multiple application program identifications, first can be extracted
A application program identification being matched to.It so, it is possible to reduce match complexity, improve rate matched.
Corresponding to page display method provided by the above embodiment, the embodiment of the invention provides a kind of page presentation dresses
It sets, as shown in figure 5, may include:
First determining module 501, for obtaining the mesh of target pages information when detecting that specified page control is triggered
Mark mark, target pages information are the specified corresponding page infos of page control;
Module 502 is obtained, for obtaining the corresponding target view control of pre-stored target identification according to target identification
Device;
Display module 503, for showing the downloading page of destination application by target view controller.
In the embodiment of the present invention, the corresponding target of specified page control can be obtained when specified page control is triggered
The target identification of page info obtains the corresponding target view controller of pre-stored target identification according to target identification, and
The downloading page of destination application is shown by target view controller.It does not need when specified page control is triggered, creates
Build the view controller for showing the downloading page of destination application.So it is able to ascend the displaying speed of the downloading page.
Optionally, as shown in fig. 6, the device further include:
Second determining module 601, for obtaining the corresponding target view of pre-stored target identification according to target identification
Before figure controller, application program identification to be stored is determined, application program identification to be stored includes target identification;
Creation module 602, for creating the corresponding view controller of application program identification to be stored;
Preserving module 603, for by view controller it is corresponding with application program identification to be stored save.
Optionally, the second determining module 601 is specifically used for obtaining the corresponding page info of page control in webpage;Parsing
Page info obtains the application program identification for including in page info, and the application program identification for including in page info is made
For application program identification to be stored;Alternatively, parsing page info, obtains the uniform resource position mark URL for including in page info;
Operation is redirected to URL, and obtains the application program identification that URL is carried in the URL after redirecting, and will be through overweight
The application program identification carried in URL after orientation is used as application program identification to be stored;Alternatively, parsing page info, obtains
The landing page information for including in page info, and matched by canonical, determine the corresponding application program identification of landing page information, and
The corresponding application program identification of page information will be landed as application program identification to be stored.
Optionally, the second determining module 601, specifically for obtaining the URL of landing page information instruction;By presetting canonical table
It is matched up to URL of the formula to landing page information instruction, obtains the application program mark carried in the URL of landing page information instruction
Know;Alternatively, obtaining the hypertext markup language html source code of landing page information instruction;By default regular expression to landing page
The html source code of information instruction is matched, and the application program identification carried in the html source code of landing page information instruction is obtained.
Optionally, preserving module 603, specifically for by view controller it is corresponding with application program identification to be stored preservation extremely
Default load queue.
Optionally, as shown in fig. 7, the device further include:
Judgment module 604, for judging whether the length of default load queue reaches preset threshold;When default load queue
Length when reaching preset threshold, remove and saved at first in default load queue to the view controller of default load queue;
Preserving module 603, for being saved at first in removing default load queue to the view control of default load queue
After device, the step of execution view controller preservation corresponding with application program identification to be stored to default load queue.
Optionally, specified page control is the page control comprising promotion message.
Page presentation device provided in an embodiment of the present invention is the device using above-mentioned page display method, then the above-mentioned page
All embodiments of methods of exhibiting are suitable for the device, and can reach the same or similar beneficial effect.
The embodiment of the invention also provides a kind of electronic equipment, as shown in figure 8, include processor 801, communication interface 802,
Memory 803 and communication bus 804, wherein processor 801, communication interface 802, memory 803 are complete by communication bus 804
At mutual communication.
Memory 803, for storing computer program;
Processor 801 when for executing the program stored on memory 803, realizes the page provided by the above embodiment
The method and step of methods of exhibiting.
In the embodiment of the present invention, the corresponding target of specified page control can be obtained when specified page control is triggered
The target identification of page info obtains the corresponding target view controller of pre-stored target identification according to target identification, and
The downloading page of destination application is shown by target view controller.It does not need when specified page control is triggered, creates
Build the view controller for showing the downloading page of destination application.So it is able to ascend the displaying speed of the downloading page.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..
Only to be indicated with a thick line in figure, it is not intended that an only bus or a type of bus convenient for indicating.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), also may include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor
(Digital Signal Processing, abbreviation DSP), specific integrated circuit (Application Specific
Integrated Circuit, abbreviation ASIC), field programmable gate array (Field-Programmable Gate Array,
Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with instruction in storage medium, when run on a computer, so that computer executes page provided by the above embodiment
The method and step of face methods of exhibiting.
In the embodiment of the present invention, the corresponding target of specified page control can be obtained when specified page control is triggered
The target identification of page info obtains the corresponding target view controller of pre-stored target identification according to target identification, and
The downloading page of destination application is shown by target view controller.It does not need when specified page control is triggered, creates
Build the view controller for showing the downloading page of destination application.So it is able to ascend the displaying speed of the downloading page.
In another embodiment provided by the invention, a kind of computer program product comprising instruction is additionally provided, when it
When running on computers, so that computer executes the method and step of page display method provided by the above embodiment.
In the embodiment of the present invention, the corresponding target of specified page control can be obtained when specified page control is triggered
The target identification of page info obtains the corresponding target view controller of pre-stored target identification according to target identification, and
The downloading page of destination application is shown by target view controller.It does not need when specified page control is triggered, creates
Build the view controller for showing the downloading page of destination application.So it is able to ascend the displaying speed of the downloading page.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program
Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or
It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For electronic equipment, storage medium and application product embodiment, since it is substantially similar to the method embodiment, so retouching
That states is fairly simple, and the relevent part can refer to the partial explaination of embodiments of method.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all
Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention
It is interior.
Claims (10)
1. a kind of page display method characterized by comprising
When detecting that specified page control is triggered, the target identification of target pages information, the target pages information are obtained
It is the corresponding page info of the specified page control;
According to the target identification, the corresponding target view controller of the pre-stored target identification is obtained;
The downloading page of the destination application is shown by the target view controller.
2. the method according to claim 1, wherein acquisition is stored in advance described according to the target identification
The corresponding target view controller of the target identification before, the method also includes:
Determine application program identification to be stored, the application program identification to be stored includes the target identification;
Create the corresponding view controller of the application program identification to be stored;
It saves the view controller is corresponding with the application program identification to be stored.
3. according to the method described in claim 2, it is characterized in that, determination application program identification to be stored, comprising:
Obtain the corresponding page info of page control in webpage;
The page info is parsed, obtains the application program identification for including in the page info, and will be in the page info
Including application program identification as the application program identification to be stored;Alternatively, parsing the page info, the page is obtained
The uniform resource position mark URL for including in the information of face;Operation is redirected to the URL, and obtains the URL by resetting
The application program identification carried in URL backward, and using the application program identification carried in the URL after redirecting as institute
State application program identification to be stored;Alternatively, parsing the page info, the landing page for including in page info letter is obtained
Breath, and matched by canonical, determine the corresponding application program identification of the landing page information, and the landing page information is corresponding
Application program identification as the application program identification to be stored.
4. according to the method described in claim 3, determining the landing page information it is characterized in that, described matched by canonical
Corresponding application program identification, comprising:
Obtain the URL of the landing page information instruction;By preset regular expression to it is described landing page information instruction URL into
Row matching obtains the application program identification carried in the URL of the landing page information instruction;
Alternatively, obtaining the hypertext markup language html source code of the landing page information instruction;By presetting regular expression pair
The html source code of the landing page information instruction is matched, and obtains carrying in the html source code of the landing page information instruction
Application program identification.
5. according to the method described in claim 2, it is characterized in that, by the view controller and the application program to be stored
Mark is corresponding to be saved, comprising:
It saves the view controller is corresponding with the application program identification to be stored to default load queue.
6. according to the method described in claim 5, it is characterized in that, by the view controller and the application program to be stored
Mark is corresponding to be saved to before default load queue, the method also includes:
Judge whether the length of the default load queue reaches preset threshold;When the length of the default load queue reaches institute
When stating preset threshold, removes and saved at first in the default load queue to the view controller of the default load queue;
After saving the view controller to the default load queue at first in removing the default load queue, execute general
The view controller is corresponding with the application program identification to be stored the step of saving to default load queue.
7. method according to any one of claims 1 to 6, which is characterized in that the specified page control is comprising promoting
The page control of information.
8. a kind of page presentation device characterized by comprising
First determining module, for obtaining the target identification of target pages information when detecting that specified page control is triggered,
The target pages information is the corresponding page info of the specified page control;
Module is obtained, for obtaining the corresponding target view control of the pre-stored target identification according to the target identification
Device processed;
Display module, for showing the downloading page of the destination application by the target view controller.
9. device according to claim 8, which is characterized in that described device further include:
Second determining module, for obtaining the corresponding mesh of the pre-stored target identification according to the target identification described
Before marking view controller, application program identification to be stored is determined, the application program identification to be stored includes the target mark
Know;
Creation module, for creating the corresponding view controller of the application program identification to be stored;
Preserving module, for saving the view controller is corresponding with the application program identification to be stored.
10. a kind of electronic equipment, which is characterized in that including processor, communication interface, memory and communication bus, wherein described
Processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes side as claimed in claim 1 to 7
Method step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910691237.1A CN110442286B (en) | 2019-07-29 | 2019-07-29 | Page display method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910691237.1A CN110442286B (en) | 2019-07-29 | 2019-07-29 | Page display method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110442286A true CN110442286A (en) | 2019-11-12 |
CN110442286B CN110442286B (en) | 2021-11-05 |
Family
ID=68432117
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910691237.1A Active CN110442286B (en) | 2019-07-29 | 2019-07-29 | Page display method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110442286B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124565A (en) * | 2019-11-29 | 2020-05-08 | 中电建路桥集团有限公司 | Data loading method and device |
CN111259287A (en) * | 2020-01-14 | 2020-06-09 | 北京字节跳动网络技术有限公司 | Page content display method and device, electronic equipment and storage medium |
CN113535435A (en) * | 2021-07-22 | 2021-10-22 | 北京三快在线科技有限公司 | Page data processing method and device, computer equipment and storage medium |
CN113656721A (en) * | 2021-08-27 | 2021-11-16 | 北京奇艺世纪科技有限公司 | Page loading method, device and system |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103970534A (en) * | 2014-04-15 | 2014-08-06 | 百度在线网络技术(北京)有限公司 | Method and equipment for supplying rendered page in mobile application |
US20150007128A1 (en) * | 2013-06-28 | 2015-01-01 | Successfactors, Inc. | Model Framework for Applications |
CN106777184A (en) * | 2016-12-22 | 2017-05-31 | 北京猎豹移动科技有限公司 | A kind of page loading method, device and electronic equipment |
CN106843953A (en) * | 2017-01-16 | 2017-06-13 | 百融(北京)金融信息服务股份有限公司 | Application program transverse direction switching system and method based on iOS system |
CN107066631A (en) * | 2017-05-26 | 2017-08-18 | 北京三快在线科技有限公司 | Display methods, device and the electronic equipment of the page |
CN108427597A (en) * | 2018-03-16 | 2018-08-21 | 崔红保 | Accelerate the method and device of page rendering |
CN108572985A (en) * | 2017-03-13 | 2018-09-25 | 腾讯科技(深圳)有限公司 | A kind of page display method and device |
CN109522500A (en) * | 2018-11-26 | 2019-03-26 | 深圳乐信软件技术有限公司 | Webpage display process, device, terminal and storage medium |
CN109684580A (en) * | 2017-10-18 | 2019-04-26 | 中移(苏州)软件技术有限公司 | A kind of methods of exhibiting and electronic equipment of dynamic page |
CN109710870A (en) * | 2018-12-27 | 2019-05-03 | 北京微播视界科技有限公司 | Loading method, device, electronic equipment and the readable storage medium storing program for executing of the H5 page |
CN109857477A (en) * | 2019-01-16 | 2019-06-07 | 北京辰森世纪科技股份有限公司 | Transition optimization method, device and equipment are applied in mixing |
-
2019
- 2019-07-29 CN CN201910691237.1A patent/CN110442286B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150007128A1 (en) * | 2013-06-28 | 2015-01-01 | Successfactors, Inc. | Model Framework for Applications |
CN103970534A (en) * | 2014-04-15 | 2014-08-06 | 百度在线网络技术(北京)有限公司 | Method and equipment for supplying rendered page in mobile application |
CN106777184A (en) * | 2016-12-22 | 2017-05-31 | 北京猎豹移动科技有限公司 | A kind of page loading method, device and electronic equipment |
CN106843953A (en) * | 2017-01-16 | 2017-06-13 | 百融(北京)金融信息服务股份有限公司 | Application program transverse direction switching system and method based on iOS system |
CN108572985A (en) * | 2017-03-13 | 2018-09-25 | 腾讯科技(深圳)有限公司 | A kind of page display method and device |
CN107066631A (en) * | 2017-05-26 | 2017-08-18 | 北京三快在线科技有限公司 | Display methods, device and the electronic equipment of the page |
CN109684580A (en) * | 2017-10-18 | 2019-04-26 | 中移(苏州)软件技术有限公司 | A kind of methods of exhibiting and electronic equipment of dynamic page |
CN108427597A (en) * | 2018-03-16 | 2018-08-21 | 崔红保 | Accelerate the method and device of page rendering |
CN109522500A (en) * | 2018-11-26 | 2019-03-26 | 深圳乐信软件技术有限公司 | Webpage display process, device, terminal and storage medium |
CN109710870A (en) * | 2018-12-27 | 2019-05-03 | 北京微播视界科技有限公司 | Loading method, device, electronic equipment and the readable storage medium storing program for executing of the H5 page |
CN109857477A (en) * | 2019-01-16 | 2019-06-07 | 北京辰森世纪科技股份有限公司 | Transition optimization method, device and equipment are applied in mixing |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111124565A (en) * | 2019-11-29 | 2020-05-08 | 中电建路桥集团有限公司 | Data loading method and device |
CN111124565B (en) * | 2019-11-29 | 2024-01-19 | 中电建路桥集团有限公司 | Data loading method and device |
CN111259287A (en) * | 2020-01-14 | 2020-06-09 | 北京字节跳动网络技术有限公司 | Page content display method and device, electronic equipment and storage medium |
CN113535435A (en) * | 2021-07-22 | 2021-10-22 | 北京三快在线科技有限公司 | Page data processing method and device, computer equipment and storage medium |
CN113535435B (en) * | 2021-07-22 | 2022-06-07 | 北京三快在线科技有限公司 | Page data processing method and device, computer equipment and storage medium |
CN113656721A (en) * | 2021-08-27 | 2021-11-16 | 北京奇艺世纪科技有限公司 | Page loading method, device and system |
CN113656721B (en) * | 2021-08-27 | 2023-07-25 | 北京奇艺世纪科技有限公司 | Page loading method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN110442286B (en) | 2021-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110442286A (en) | A kind of page display method, device and electronic equipment | |
WO2016173200A1 (en) | Malicious website detection method and system | |
KR101117396B1 (en) | Platform for rendering content for a remote device | |
US10430514B2 (en) | Method and terminal for extracting webpage content, and non-transitory storage medium | |
US7865544B2 (en) | Method and system for providing XML-based asynchronous and interactive feeds for web applications | |
CN108874810B (en) | Information acquisition method and device | |
CN106575298B (en) | Rapid presentation of web sites containing dynamic content and stale content | |
US8224308B1 (en) | Mobile device catalog registration based on user agents and customer snapshots of capabilities | |
EP3485450B1 (en) | Network based advertisement data traffic latency reduction | |
US20140100963A1 (en) | Method, System and Device For Filtering Mobile Terminal Webpage Advertisements | |
US20130073946A1 (en) | Method and apparatus for loading webpage content of webkit browser | |
US20160232252A1 (en) | Method for loading webpage, device and browser thereof | |
CN104572843B (en) | The loading method and device of a kind of page | |
WO2015153925A1 (en) | Processing requests to access content | |
CN107678820B (en) | Webpage processing method, device, server, terminal equipment and medium | |
EP3156919A1 (en) | Methods for transforming a server side template into a client side template and devices thereof | |
US20130339485A1 (en) | Multi-Threaded Asynchronous Download of a Set of Script files Used in a Web Application | |
CN106022126B (en) | A kind of web page characteristics extracting method towards WEB trojan horse detections | |
CN110796462A (en) | Method and device for guiding flow | |
US20150121198A1 (en) | Style sheet speculative preloading | |
US20180357326A1 (en) | Systems and methods for prefetching dynamic urls | |
CN110546632B (en) | Scanning of bindings in web page tags | |
CN108664511B (en) | Method and device for acquiring webpage information | |
CN113590986B (en) | Page link configuration method and device, electronic equipment and computer readable medium | |
CN110851678A (en) | Method and device for crawling data |
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 |