CN110287443A - A kind of method and relevant apparatus of page data displaying - Google Patents

A kind of method and relevant apparatus of page data displaying Download PDF

Info

Publication number
CN110287443A
CN110287443A CN201910584176.9A CN201910584176A CN110287443A CN 110287443 A CN110287443 A CN 110287443A CN 201910584176 A CN201910584176 A CN 201910584176A CN 110287443 A CN110287443 A CN 110287443A
Authority
CN
China
Prior art keywords
page
data
page data
application program
access
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
CN201910584176.9A
Other languages
Chinese (zh)
Other versions
CN110287443B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910584176.9A priority Critical patent/CN110287443B/en
Publication of CN110287443A publication Critical patent/CN110287443A/en
Application granted granted Critical
Publication of CN110287443B publication Critical patent/CN110287443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2393Updating materialised views
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

A kind of method and relevant apparatus shown this application discloses page data, for guaranteeing in the case where network environment is bad, application program can provide the information of related pages also for user.The method that a kind of page data provided by the embodiments of the present application is shown, comprising: obtain the page access instruction of application program;It is instructed according to page access, first page data corresponding with page access instruction is obtained from initialized data base, wherein the data in initialized data base are by obtaining after decompressing the installation kit of application program;First page data are shown on the page;It is instructed according to page access, sends page data request message to server, page data request message is for obtaining page data corresponding with page access instruction;If receiving the second page data of server return, the first page data shown on the page are updated according to second page data.

Description

A kind of method and relevant apparatus of page data displaying
Technical field
A kind of method and relevant apparatus shown this application involves Internet technical field more particularly to page data.
Background technique
With the development of internet technology, more and more users are carried out by downloading application program on mobile terminals Data consultation, the browsing operation such as news or shopping.During using these application programs, application program usually needs user It to establish and communicate to connect with network side, and obtain corresponding page data from network, then show relevant in application program On the page, to realize the interaction of user and application program.
However, if application program and the network environment of network-side communication are poor, being answered when user opens application program With program it is generally necessary to which the regular hour is come loading page data.During application program loading page data, using journey It is often blank on the interface of sequence, application program can not provide the page relevant information for user.
Summary of the invention
The embodiment of the present application provides the method and relevant apparatus of a kind of page data displaying, by application program The data of some pages in application program are additionally arranged in installation kit in advance, so that user is after opening application program, using journey The data added in advance can be directly shown on the related pages of sequence, without being influenced by network environment, ensure that in network rings In the case that border is bad, application program can provide corresponding information also for user.
The embodiment of the present application first aspect provides a kind of method that page data is shown, comprising:
Obtain the page access instruction of application program;
It is instructed according to page access, first page data corresponding with page access instruction is obtained from initialized data base, Wherein, the data in initialized data base are by obtaining after decompressing the installation kit of application program;
First page data are shown on the page;
It is instructed according to page access, sends page data request message to server, page data request message is for obtaining Take page data corresponding with page access instruction;
If the second page data of server return are received, according to second page data to first shown on the page Page data is updated.
The embodiment of the present application second aspect provides a kind of device that page data is shown, comprising:
Acquiring unit, the page access for obtaining application program instruct;
Acquiring unit is also used to be instructed according to page access, obtains from initialized data base corresponding with page access instruction First page data, wherein the data in initialized data base be by decompress application program installation kit after obtain;
Display unit, for showing first page data on the page;
Transmission unit sends page data request message to server, page data is asked for instructing according to page access Ask message for obtain corresponding with page access instruction page data;
Updating unit, if the second page data for receiving server return, according to second page data to page The first page data shown on face are updated.
In a kind of possible design, in a kind of implementation of the second aspect of the embodiment of the present application,
Display unit shows first if being also used to not receive the second page data of server return on the page Prompt information, and keep showing first page data, the first prompt information is for indicating that second page data acquisition fails.
In a kind of possible design, in a kind of implementation of the second aspect of the embodiment of the present application,
Acquiring unit is also used to be instructed according to page access, obtains from local data base corresponding with page access instruction Third page data, third page data is the data being cached in local data base, and page data is what server returned Page data;
Acquiring unit, if being also used in local data base, there are third page datas, and third page is shown on the page Face data;
Acquiring unit, if being also used in local data base show first on the page there is no there is third page data Page data;
Updating unit, if being also used to receive the second page data of server return, according to second page data pair The first page data or third page data shown on the page are updated.
It further include true in a kind of implementation of the second aspect of the embodiment of the present application in a kind of possible design Order member;
Determination unit, if the second page data for receiving server return, it is determined that the class of second page data Type;
Determination unit is also used to the type according to second page data, determines page data update mode, page data is more New paragon is the mode for updating the first page data or third page data that show on the page;
Updating unit is also used to according to second page data and page data update mode to the first page shown on the page Face data or third page data are updated.
In a kind of possible design, in a kind of implementation of the second aspect of the embodiment of the present application,
Updating unit, if the type for being also used to second page data is list, the first page number that will be shown on the page According to or third page data be substituted for second page data.
In a kind of possible design, in a kind of implementation of the second aspect of the embodiment of the present application,
Updating unit keeps the first page shown on the page if the type for being also used to second page data is article Data or third page data, and the portion that will be had differences in second page data with first page data or third page data Divide and is shown.
In a kind of possible design, in a kind of implementation of the second aspect of the embodiment of the present application,
Updating unit, if being also used in first page data there are content to be deleted, will be shown on the page Content to be deleted in one page data is deleted;
Updating unit, if being also used in third page data there are content to be deleted, will be shown on the page Content to be deleted in three page datas is deleted.
In a kind of possible design, in a kind of implementation of the second aspect of the embodiment of the present application,
Updating unit, if being also used in first page data there are content to be increased, shown on the page Content to be increased is inserted into one page data;
Updating unit, if being also used in third page data there are content to be increased, shown on the page Content to be increased is inserted into three page datas.
The embodiment of the present application third aspect provides a kind of terminal device, comprising:
Memory, transceiver, processor and bus system;
Wherein, memory is for storing program;
Processor is used to execute the program in memory, includes the following steps:
Obtain the page access instruction of application program;
It is instructed according to page access, first page data corresponding with page access instruction is obtained from initialized data base, Wherein, the data in initialized data base are by obtaining after decompressing the installation kit of application program;
First page data are shown on the page;
It is instructed according to page access, sends page data request message to server, page data request message is for obtaining Take page data corresponding with page access instruction;
If the second page data of server return are received, according to second page data to first shown on the page Page data is updated;
Bus system is for connecting memory and processor, so that memory and processor are communicated.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, in computer readable storage medium It is stored with instruction, when run on a computer, so that the method that computer executes any of the above-described aspect.
The aspect of the embodiment of the present application the 5th provides a kind of computer program product comprising instruction, when its in computer or When being run on person's processor, so that the method that computer or processor execute any of the above-described aspect.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
The embodiment of the present application provides the method and relevant apparatus of a kind of page data displaying, by application program The data of some pages in application program are additionally arranged in installation kit in advance, so that user is after opening application program, using journey The data added in advance can be directly shown on the related pages of sequence, without being influenced by network environment, ensure that in network rings In the case that border is bad, application program can provide corresponding information also for user.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram of application program page load provided by the embodiments of the present application;
Fig. 2 is a configuration diagram of page data display systems in the embodiment of the present application;
Fig. 3 is the exemplary diagram for the method that a kind of page data provided by the embodiments of the present application is shown;
Fig. 4 is the exemplary diagram provided by the embodiments of the present application for showing first page data;
Fig. 5 is the exemplary diagram provided by the embodiments of the present application for showing first page data;
Fig. 6 is the exemplary diagram provided by the embodiments of the present application for showing first page data;
Fig. 7 is the exemplary diagram provided by the embodiments of the present application for showing first page data;
Fig. 8 is the flow diagram of displayed page data provided by the embodiments of the present application;
Fig. 9 is the exemplary diagram that page data provided by the embodiments of the present application updates;
Figure 10 is the exemplary diagram that page data provided by the embodiments of the present application updates;
Figure 11 (a) is device one embodiment schematic diagram that a kind of page data provided in the embodiment of the present application is shown;
Figure 11 (b) is device one embodiment schematic diagram that a kind of page data provided in the embodiment of the present application is shown;
Figure 12 shows the block diagram of the part-structure of mobile phone relevant to mobile terminal provided by the embodiments of the present application.
Specific embodiment
The embodiment of the present application provides the method and relevant apparatus of a kind of page data displaying, for guaranteeing in network rings In the case that border is bad, application program can provide the information of related pages also for user.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so that embodiments herein described herein for example can be to remove Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " corresponding to " and their times What is deformed, it is intended that cover it is non-exclusive include, for example, contain the process, method of a series of steps or units, system, Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for The intrinsic other step or units of these process, methods, product or equipment.
Currently, user uses application program on mobile terminals, it usually needs download application program in application shop Then installation kit realizes the installation of application program by decompression installation kit again.After application program installs, user can be with The page in application program is opened by being operated (such as clicking operation) to application program.In response to the operation of user, Application program would generally request the corresponding page data of the page to the server of network side, then return again receiving server After the page data returned, page data is shown on the corresponding page, to realize the interaction with user.
In the case that network environment locating for mobile terminal is bad, application program generally requires the regular hour from network The corresponding page data of upper load, during application program loading page data, application program often show one it is all Such as the intermediate page of " in page load ", i.e., prompt user is currently just in loading page.It is understood that application program loads The speed of page data is often related to network environment, if network environment is excessively poor, application program would generally be takeed a long time Carrying out the load of page data, i.e., the intermediate page of above-mentioned " in page load " can show longer time in application program, So, user, due to showing intermediate page in application program, uses during waiting application program loading page data Family generally can not operate application program, be merely able to be that application program load is waited to complete page data.Applying journey When sequence can not be loaded into relevant page data from network, a such as " network would generally be shown to user in application program Without response " the wrong page, with prompt user can not from network obtain page data.
Specifically, can refering to fig. 1, Fig. 1 is a kind of signal of application program page load provided by the embodiments of the present application Figure.As shown in Figure 1, Fig. 1 (a) expression is that user passes through click application program " medicine treasured book " in the main interface of mobile terminal Icon, to open application program " medicine treasured book ";That Fig. 1 (b) is indicated is user open application program " medicine treasured book " it Afterwards, application program " medicine treasured book " is to the corresponding page data of the server request homepage page, at this point, due to network environment compared with Difference, during application program " medicine treasured book " is in request page data, therefore, application program " medicine treasured book " is to user's exhibition Shown include " just a moment,please in request data ... " text remind intermediate page;What Fig. 1 (c) was indicated is application program " medicine Treasured book " shows its page data got from server to user after the success of request page data, wherein includes " close The relevant page data such as phase hot spot ", " hot content ";What Fig. 1 (d) was indicated is application program " medicine treasured book " to server After request page data failure, the page of network request failure is shown to user, includes that " network request loses on the page Lose, please check the network equipment " etc. text prompt informations, also include " reloading " button, pressed for prompting user to click this Button is attempted again from server loading page data.
Obviously, during user waits, application program can not provide useful page info for user, apply journey After sequence loading page data failure, application program can not provide useful page info equally for user, so, in length In the waiting process of time, or page info, the body of user still can not be got after having waited a very long time It tests and receives very big influence, be easy to cause customer churn.
In view of this, the embodiment of the present application proposes a kind of method that page data is shown, this method is applied to shown in Fig. 2 Page data display systems, referring to Fig. 2, Fig. 2 is that a framework of page data display systems shows in the embodiment of the present application It is intended to, as shown in Fig. 2, user can operate the application program on mobile terminal, issues page access to application program Instruction, requests access to the related pages in application program;Mobile terminal is established by network and server and is communicated to connect, and is rung Relevant page data should be requested to server by network in the page request instruction that user issues.
Wherein, mobile terminal shown in Fig. 1 is only simply illustrative, and in practical applications, mobile terminal includes but not It is only limitted to the terminal devices such as mobile phone, tablet computer and palm PC.
In page data display systems provided by the embodiments of the present application, the application journey installed on the mobile terminal of user Sequence, which is user, to be downloaded from a server the application program installation kit to get off by decompressing installation and obtains, the application program installation kit In include pre-configured page data (i.e. pre-set page data), therefore, user decompression install the application program peace It include pre-set page data in obtained application program after dress packet.Have benefited from this, user is opening application program, request When the page in access application, application program can directly acquire pre-set page data from itself, and open up on the page Show pre-set page data, ensure that, in the case where network environment is bad, application program promptly can also provide phase for user The page data answered avoids the meaningless waiting of user.
Wherein, pre-set page data included in application program installation kit, which can be, is generating application program installation kit When be added to it, it is corresponding in application program installation kit for example, before application developer constructs application program installation kit Source code in call the initialized data base for including pre-set page data by way of calling and relying on library so that structure It can include pre-set page data in the application program installation kit built.Specifically, it relies on library and refers to that application program is pacified Dress wraps corresponding source code and obtains the relevant preset page of initialized data base by way of dynamically load preset data bank code Face data.
Specifically, in some cases, the row that application program can operate application program in backstage record user For, such as user clicks " flu prevention " under " hot content " list of application program " medicine treasured book " homepage, either " AIDS " etc. under " recent hot spot " list of application program " medicine treasured book " homepage is clicked, then by the operation row of user To be uploaded in server, server unites to these operation behaviors by collecting the operation behavior of most of user Meter, obtains high-frequency operation behavior (behavior operated compared with multi-user).Based on these high-frequency operation behaviors, server can To analyze the page (i.e. high frequency accession page) that most of user requests access to is obtained, then server can be by presetting Automatized script generates preset data corresponding with these high frequency accession pages, such as corresponding with above-mentioned " flu is prevented " page Article content etc..After generating preset data, server is supplied to by way of relying on library to use these preset The development equipment of data, wherein preset data can be organized with the format (such as JSON format) provided, be set in order to develop It is standby being capable of automatic identification these preset data.In this way, application developer can lead to when developing the application program of new version The preset data that download server provides on development equipment is crossed, and before the application program installation kit of building new version, It relies on library with preset data to the source code of application program installation kit to synchronize, after synchronously completing, formation includes preset number According to application program installation kit.So, by selecting the corresponding page data of user's high-frequency operation behavior as preset number According to the preset data carried in application program installation kit being made few as much as possible, and can satisfy most of user Demand.
The above are the descriptions carried out to page data display systems provided by the embodiments of the present application, referring to Fig. 3, Fig. 3 is The exemplary diagram for the method that a kind of page data provided by the embodiments of the present application is shown.
Method one embodiment that a kind of page data for providing in the embodiment of the present application is shown includes:
301, the page access instruction of application program is obtained;
In the present embodiment, when in the icon or application program that user passes through application program on click mobile terminal When the index part of related pages, user will trigger the instruction to access to the related pages of application program, therefore, mobile Terminal is available to be instructed to page access of the user to application program.It is understood that signified in the embodiment of the present application Page access instruction can be the page access instruction for application program homepage, be also possible to for other pages in application program The page access in face instructs, and is not specifically limited herein.
For example, user clicks the icon of application program " medicine treasured book " on mobile terminal, mobile terminal is available to use The instruction that family accesses to the homepage of application program " medicine treasured book ";User clicks application program " medicine treasured book " homepage " flu prevention " under " hot content " list, then mobile terminal is available accesses to " flu is prevented " page to user Instruction.
302, it is instructed according to page access, first page number corresponding with page access instruction is obtained from initialized data base According to, wherein the data in initialized data base are by obtaining after decompressing the installation kit of application program;
In the present embodiment, after getting page access instruction, mobile terminal is instructed according to page access from preset number According to acquisition first page data corresponding with page access instruction in library.Wherein, initialized data base is that mobile terminal is decompressing It is established after application program installation kit, includes the preset number for decompressing application program installation kit and obtaining in the initialized data base According to.Specifically, which can be a preset catalogue under application program installation path, include under the preset catalogue There is corresponding preset data.
It is understood that preset data included in initialized data base can be a part of page institute in application program Corresponding page preset data, in this case, mobile terminal can be instructed according to some specific page access from preset data Corresponding page preset data is got in library.For example, for application program " medicine treasured book ", included in initialized data base Preset data corresponds to the corresponding page numbers of the pages such as the homepage page, the second level page " flu prevention ", the second level page " AIDS " According to, then, mobile terminal is receiving homepage access instruction, the second level page " flu prevention " access instruction or the second level page When " AIDS " access instruction, page preset number corresponding with the instruction of these page access can be got from initialized data base According to.Wherein, these page preset data in initialized data base can be corresponding to the page that most of user may access Data, that is to say, that during application program is to requesting page server face data, application program can be by most of use The page that family may access shows user in the form of preset data so that user wait application program to server It when the page data that please be look for novelty, still is able to get useful information, and is unlikely to be constantly in meaningless waiting Journey.
Further, since these page preset data of initialized data base are data corresponding to specific some pages, i.e., The data volume of preset data entrained by application program installation kit is simultaneously little, on the one hand not will lead to application program installation kit mistake Greatly, the excessive memory of customer mobile terminal on the other hand will not be occupied, and ensure that most of with can wait per family During get certain useful information.
303, first page data are shown on the page;
In mobile terminal after having got first page data corresponding with page access instruction in initialized data base, Mobile terminal shows the first page data to user on the page of application program.
It specifically, can be the example provided by the embodiments of the present application for showing first page data refering to Fig. 4 and Fig. 5, Fig. 4 Figure;Fig. 5 is the exemplary diagram provided by the embodiments of the present application for showing first page data.As shown in Fig. 4 (a), pass through a little in user Hit after the icon of application program in mobile terminal main interface " medicine treasured book ", trigger open the application program instruction and The instruction for accessing the application program homepage, as shown in Fig. 4 (b), mobile terminal is in response to opening the finger of the instruction of the application program It enables, opens application program " medicine treasured book ", and obtained from initialized data base according to the instruction for accessing the application program homepage Then the pre-set page data of the application program homepage show in the homepage of application program and acquire from initialized data base Pre-set page data, that is, include the page data of the list contents such as " recent hot spot ", " hot content ".
As shown in Fig. 5 (a), after user is by clicking " flu prevention " in application program " medicine treasured book " homepage, The instruction of the access application program second level page " flu prevention " is triggered, as shown in Fig. 4 (b), mobile terminal should according to access It is corresponding that the instruction of the application program second level page " flu prevention " obtains the second level page " flu prevention " from initialized data base Then pre-set page data show the pre-set page number acquired from initialized data base on the second level page of application program According to including the page data of contents such as " flu prevention general knowledge ".
304, it is instructed according to page access, sends page data request message to server, page data request message is used In acquisition page data corresponding with page access instruction;
In the present embodiment, mobile terminal also sends page data to server after getting page access instruction Request message.Wherein, mobile terminal is instructed according to page access, is obtained from initialized data base corresponding with page access instruction First page data and page data request message the two steps are sent to server, can be and carry out parallel, also It is to say, after acquisition for mobile terminal to page access instruction, while triggers the operation for obtaining first page data and to clothes The operation for device transmission page data request message of being engaged in.In this manner it is ensured that mobile terminal shows the timeliness of first page data.
If 305, receiving the second page data of server return, according to second page data to showing on the page First page data are updated.
In the present embodiment, since the preset data that mobile terminal is got from initialized data base is carried using journey In sequence installation kit, and the data on the application program page may be the variation with the time and be varied, i.e. preset number According to being not real-time data, therefore, in order to guarantee that user can get newest page data, arrived in acquisition for mobile terminal Server return second page data after, can according to second page data to the first page data shown on the page into Row updates, and real-time data is shown in application program to realize.
It specifically, can be the exemplary diagram provided by the embodiments of the present application for showing first page data refering to Fig. 6, Fig. 6.Its In, step corresponding to Fig. 6 (a) and Fig. 6 (b) is similar with Fig. 4 (a) and Fig. 4 (b), and details are not described herein;What Fig. 6 (c) was indicated It is, in mobile terminal to the success of requesting page server face data, after the page data for getting server return, according to service The page data that device returns is updated the page preset data shown originally on the page, obtains the new page.It can see Out, for Fig. 6 (c) relative to Fig. 6 (b), content " flu " and " AIDS " under " recent hot spot " list have been updated to " pain respectively Wind " and " influenza ";And the content " anti-cancer knowledge " and " flu prevention " under " hot content " list are then updated to respectively " cervical vertebra protection " and " treatment and prevention of tumour ".
It is worth noting that, in the present embodiment, since the first page data shown on the page are answered by decompression With what is obtained after the installation kit of program, in the case where user first switches on application program, application program is not necessarily to from network Data are got, preset data directly can be promptly shown on the page.
It is understood that in some scenes, user has often downloaded application when network environment is preferable The installation kit of program, and when user is initially opened application program, it is poor that the mobile terminal of user is likely to be at network environment Place, for example, user, which passes through the preferable WIFI of network environment at home, has downloaded application program, and user is after going out, The application program is opened by data traffic internet business in subway either elevator.So, in such a scenario, user Can after opening application program, still it can be seen that data on related pages, so as to get useful information, And it is unlikely to be constantly in meaningless waiting.
In the present embodiment, by being additionally arranged the numbers of some pages in application program in advance in the installation kit of application program According to, so that user can directly show the data added in advance after opening application program on the related pages of application program, It without being influenced by network environment, ensure that in the case where network environment is bad, application program also can provide phase for user The information answered.In addition, after application program is successful to requesting page server face data, it can be according to the page of server return Data are updated the preset data shown on current page, ensure that the real-time of institute's display data.
Optionally, on the basis of above-mentioned Fig. 3 corresponding one embodiment, page data provided by the embodiments of the present application In one alternative embodiment of method of displaying, method further include:
If not receiving the second page data of server return, the first prompt information is shown on the page, and keep Show first page data, the first prompt information is for indicating that second page data acquisition fails.
In the present embodiment, it is instructed in mobile terminal according to page access, to after requesting page server face data, if moving Dynamic terminal within the regular hour (such as 3 seconds or 5 seconds etc.) still do not receive the page data of server return, then having very much It may be that network environment locating for current mobile terminal is poor, mobile terminal is difficult to establish effective communication connection with server. Based on this, mobile terminal can briefly pop up the prompt of network error on the page, i.e. representation page data acquisition fails, with It reminds user currently can not obtain page data from server, the network settings of mobile terminal is checked convenient for user.
Specifically, when mobile terminal obtains second page data failure from server, on the current page of application program The first page data shown will remain unchanged, and briefly pop-up prompts the pop-up of network failure on current page. Wherein, which can be is shown on current page in the form of fading in animation, should after brief stay (such as 1 second) Pop-up disappears automatically, to avoid the data that user checks current page are influenced.In the mobile terminal using Android system, the bullet Window can be realized in the form of Toast.Toast is a kind of easy message notifying frame, when the page presentation of application program When to user, Toast is shown as floating in the application, and Toast can't obtain focus, can not also be clicked.Toast's Main purpose is exactly as not noticeable as possible, at the same also to user show information, it is desirable to user it can be seen that.
It specifically, can be the exemplary diagram provided by the embodiments of the present application for showing first page data refering to Fig. 7, Fig. 7.Its In, step corresponding to Fig. 7 (a) and Fig. 7 (b) is similar with Fig. 4 (a) and Fig. 4 (b), and details are not described herein;What Fig. 7 (c) was indicated It is that after mobile terminal fails to requesting page server face data, pop-up includes on the page that application program is currently shown There is the pop-up of text " renewal of the page failure ", to remind user's current network mistake, can not obtain from server for updating The data of current page.Fig. 7 (d) indicates that after popping up pop-up for a period of time, such as after 1 second, which disappears automatically It loses, keeps showing original page data on the page, can guarantee that user can continue to check original page data in this way, and It will not influence the normal reading of user.
It is worth noting that, pop-up demonstrated in Figure 7 be it is nontransparent, pop-up show when on the page, the page On partial data can be blocked;And in practical applications, it is translucent for prompting the pop-up of network error can be, when Pop-up shows that when on the page, user still can see the page data that pop-up is covered through pop-up, so, The displaying of pop-up would not cause too big interference to the reading of user, reduce the influence for showing pop-up to user experience.
Optionally, on the basis of above-mentioned Fig. 3 corresponding one embodiment, page data provided by the embodiments of the present application In one alternative embodiment of method of displaying, after obtaining page access instruction, instructed according to page access, from preset data Before obtaining first page data corresponding with page access instruction in library, method further include:
It is instructed according to page access, obtains third page data corresponding with page access instruction from local data base, the Three page datas are the data being cached in local data base, and page data is the page data that server returns;
First page data are shown on the page, comprising:
If there are third page datas in local data base, third page data is shown on the page;
If showing first page data on the page there is no there is third page data in local data base;
If the second page data of server return are received, according to second page data to first shown on the page Page data is updated, comprising:
If the second page data of server return are received, according to second page data to first shown on the page Page data or third page data are updated.
In the present embodiment, mobile terminal according to page access instruct from initialized data base obtain preset data it Before, mobile terminal can instruct according to the page access and first check in local data base and whether be cached with corresponding data (i.e. the Three page datas), if being cached with corresponding data in local data base, obtained and the page access from local data base Corresponding data are instructed, and are shown on the page, without obtaining preset data from initialized data base again;If local It is not cached with corresponding data in database, then obtains corresponding preset data from initialized data base again, and show On the page.
Wherein, data cached in local data base is user in upper primary opening application program and when carrying out page browsing The some data loaded from network, and the data in initialized data base are the data carried in application program installation kit, Obviously, the data cached timeliness in local data base is higher than the data in initialized data base, therefore, if checking local When existing in database with the page access corresponding data of instruction, then the data in local data base are shown, and no longer from preset Preset data is obtained in database.
In addition, no matter the data on current page in shown local data base or the number in initialized data base According to these data all pre-save, and real-time is poor, therefore, when mobile terminal receives the page of server return After data, the data shown on current page can be updated.
It is worth noting that, when mobile terminal is in preferable network environment, such as under WIFI environment, local data base In it is data cached can be synchronized automatically with server, i.e., server can timing to mobile terminal silence push local data base In have the data of update, can guarantee the timeliness of data in local data base in this way.Wherein, the content in local data base can The corresponding page data of the page to cover multiple levels, and meet the individuation data of user preference, such as user's collection Article, the special column either special column often clicked of user.
It can be the flow diagram of displayed page data provided by the embodiments of the present application refering to Fig. 8, Fig. 8.Specifically, scheme The process of displayed page data shown in 8 is specific as follows:
S1, the operation in response to user, the page access instruction of acquisition for mobile terminal to application program;
S2, it is instructed according to page access, mobile terminal obtains corresponding with page access instruction from local data base It is data cached;
It is cached with corresponding data cached with page access instruction in S3, local data base, therefore, mobile terminal can It has successfully been got from local data base data cached;
What S4, mobile terminal will acquire data cached is shown on the current page of application program;
Be not cached in S5, local data base it is corresponding data cached with page access instruction, therefore, mobile terminal It can not be got from local data base data cached;
S6, when mobile terminal can not get data cached from local data base, mobile terminal is from initialized data base It is middle to obtain preset data corresponding with page access instruction;
Preset data corresponding with page access instruction is cached in S7, initialized data base, therefore, mobile terminal can Preset data has successfully been got from initialized data base;
The preset data that S8, mobile terminal will acquire is shown on the current page of application program;
Preset data corresponding with page access instruction, therefore, mobile terminal are not cached in S9, initialized data base Preset data can not be got from initialized data base;
S10, when mobile terminal can not get preset data from initialized data base, mobile terminal is in application program The page in display load, such as " current page is loading " is shown on the page;
S11, get application program page access instruction after, mobile terminal simultaneously also to server request and should Page access instructs corresponding data;
S12, when network responds successfully, mobile terminal can get the data that server is returned;
The data that S13, mobile terminal are returned to server are updated onto the current page;
S14, when network respond failure when, mobile terminal can not get corresponding data from server;
If the response failure of S15, network, and on the current page of application program display data when, execute step S16;
S16, miscue in short-term is popped up on the page of application program, to prompt user that can not get update number According to.
If the response failure of S17, network, and when there is no display data on the current page of application program, execute step S18;
S18, the wrong page is shown on the page of application program, to prompt user to check network settings.
Optionally, on the basis of above-mentioned Fig. 3 corresponding one embodiment, page data provided by the embodiments of the present application In one alternative embodiment of method of displaying, if the second page data of server return are received, according to second page number It is updated according to the first page data or third page data that are shown on the page, comprising:
If receiving the second page data of server return, it is determined that the type of second page data;
According to the type of second page data, determine that page data update mode, page data update mode are refresh page The mode of the first page data or third page data that are shown on face;
According to second page data and page data update mode to the first page data or third page shown on the page Face data is updated.
In the present embodiment, after the second page data that mobile terminal receives server return, application program The first page data or third page data of a period of time may be illustrated on the page, that is to say, that mobile whole It holds into this period of time for the data that server request data to acquisition for mobile terminal to server returns, user has checked The first page data or third page data shown in application program are for a period of time.In first page data or third When page data is the data of article's style, user may read a part of article, if, directly by current application The data full dose that program is shown is updated to the second page data of server return, it would be possible that will affect the reading of user into Journey causes user to need to re-read this article.Therefore, in order not to interrupt the reading process of user, service can received Device return second page data after, first determine second page data type, if second page data belong to will not to The data full dose of current page then directly can be updated to second page number by the type that the reading process at family influences too much According to;If second page data belong to the type for being easy to impact to the reading process of user, can choose with contrast difference Mode update the data shown on current page, so that reducing more new data as much as possible gives user's bring reading experience It influences.
It is worth noting that, in addition to determining page data update mode according to the type of second page data by mobile terminal Except, page data update mode can also be determined to some settings of application program according to user.For example, user can answer With the mode for changing data update in the corresponding preference setting of program at any time, the data as user can change current page update Mode is the data before preferential display update, or preferentially shows updated data, or after the data and update before display update Data difference part, or only directly display updated data etc..Family, which can be used, in such data more new strategy has very Good reading experience, at the same will not miss data update.
Optionally, on the basis of above-mentioned Fig. 3 corresponding one embodiment, page data provided by the embodiments of the present application In one alternative embodiment of method of displaying, according to second page data and page data update mode to shown on the page One page data or third page data are updated, comprising:
If the type of second page data is list, by the first page data shown on the page or third page data It is substituted for second page data.
It is understood that under normal conditions, it, can't be to original page when server is updated page data Data type carries out biggish adjustment, is often only updated to some specific contents in page data.Therefore, when When the type of two page datas is list, the first page data or the third page that are shown on application program current page Data are often also the data of list type, without being other kinds of data.Therefore, in the second page data got Type when being list, due to direct full dose updates the content in list will not the too big shadow of readings process generation to user It rings, therefore the first page data shown on current page or third page data directly can be substituted for second page Data.
Optionally, on the basis of above-mentioned Fig. 3 corresponding one embodiment, page data provided by the embodiments of the present application In one alternative embodiment of method of displaying, according to second page data and page data update mode to shown on the page One page data or third page data are updated, comprising:
If the type of second page data is article, the first page data shown on the page or third page number are kept According to, and the part having differences in second page data with first page data or third page data is shown.
In the present embodiment, when the second page data that mobile terminal receives are articles, if directly by current page On data full dose be updated to second page data, it is likely that the reading process for interrupting user causes user to need to read again Read this article.Therefore, in order not to interrupt the reading process of user, can the second page data for receiving server return it Afterwards, the part that the data shown in second page data with current page have differences is shown.That is, to the greatest extent It possibly keeps in the case where showing that content is constant on current page, the part having differences in second page data is shown Come, enables a user to the difference between the data before knowing updated data and updating.
Optionally, on the basis of above-mentioned Fig. 3 corresponding one embodiment, page data provided by the embodiments of the present application In one alternative embodiment of method of displaying, the first page data that show or third page data on the page are kept, and by the The part having differences in two page datas with first page data or third page data is shown, comprising:
If in first page data there are content to be deleted, by the first page data shown on the page to The content of deletion is deleted;
If in third page data there are content to be deleted, by the third page data shown on the page to The content of deletion is deleted.
In the present embodiment, if compared to second page data in first page data, in first page data there are to The content of deletion, i.e. some contents in first page data are no (being deleted) in second page data, that This partial data is content to be deleted in first page data.In this way, by the first page data of current page into When row updates, in the case that the data that current page can be kept as far as possible to be shown are constant, content to be deleted is deleted It removes.Specifically, in order to the prominent contrast difference for updating front and back, when deleting these contents to be deleted, can be to Increase strikethrough in the content of deletion, or increases strikethrough and light color display content to be deleted, or annotation deletion Etc. modes these contents to be deleted are carried out, in this way, can be informed in the case where not influencing user's reading process User's content to be deleted.It similarly, can also be by the third page when the data that current page is shown are third page datas Content to be deleted is deleted in data.
It specifically, can be the exemplary diagram that page data provided by the embodiments of the present application updates refering to Fig. 9, Fig. 9.Wherein, It is indicated in Fig. 9 (a), before the second page data that acquisition for mobile terminal to server returns, in the page of application program The data got from local data base either initialized data base are illustrated on face, specifically, on the page of application program Show a part of content in an article;It indicates in Fig. 9 (b), is returned in acquisition for mobile terminal to server Second page data after, mobile terminal compares the data shown in second page data and current page, and And delete the partial content on the page, to realize that the update of page data is shown, wherein the updated page and the former page Middle shown article content does not change, and the page of the corresponding partial content of article shown in the former page in the updated It is shown in the form of strikethrough in face, i.e., in the page in the updated, the contents of the section is to delete, and is reminded the user that Which partial content is deleted, and does not interfere with the reading process of user.
Optionally, on the basis of above-mentioned Fig. 3 corresponding one embodiment, page data provided by the embodiments of the present application In one alternative embodiment of method of displaying, the first page data that show or third page data on the page are kept, and by the The part having differences in two page datas with first page data or third page data is shown, comprising:
If being inserted into the first page data that are shown on the page there are content to be increased in first page data Content to be increased;
If being inserted into the third page data that is shown on the page there are content to be increased in third page data Content to be increased.
In the present embodiment, if compared to second page data in first page data, in first page data there are to Increased content, i.e., there are the data not having in the first page data of part in second page data, then this part number According to content to be increased in as first page data.In this way, when being updated the first page data of current page, it can With the data for keeping current page to be shown as far as possible it is constant in the case where, be inserted into be increased in first page data Hold.Specifically, it can be and be highlighted when being inserted into content to be increased in order to the prominent contrast difference for updating front and back This partial content is also possible to increase on insertion position prompt information as such as " NEW ", can also be with different face The different format such as color or font size shows this partial content etc., in this way, can read not influence user The content that user newly increases is informed in the case where process.Similarly, when the data that current page is shown are third page datas, Content to be increased can also be inserted into third page data.
It specifically, can be the exemplary diagram of page data provided by the embodiments of the present application update with 0, Figure 10 refering to fig. 1.Its In, it is indicated in Figure 10 (a), before the second page data that acquisition for mobile terminal to server returns, in application program The page on illustrate the data either got in initialized data base from local data base, specifically, the page of application program Show a part of content in an article on face;It is indicated in Figure 10 (b), in acquisition for mobile terminal to server After the second page data of return, mobile terminal carries out the data shown on second page data and current page pair Than, and the content that insertion portion newly increases on the page, to realize that the update of page data is shown, wherein updated For the page compared with the article content shown in the former page, the updated page inserts one section of text newly increased in the former page Word, and have prompt text as " NEW " above the text that this section newly increases, the text bottom that this section newly increases is also Underscore highlights, and reminds the user which partial content newly increases, the reading process without influencing whether user.
The device shown below to the page data in the embodiment of the present application is described in detail, and please refers to Figure 11 (a), schemes 11 (a) the device one embodiment schematic diagrames shown for a kind of page data provided in the embodiment of the present application, page data exhibition The device 110 shown includes:
Acquiring unit 1101, the page access for obtaining application program instruct;
Acquiring unit 1101 is also used to be instructed according to page access, obtains from initialized data base and instructs with page access Corresponding first page data, wherein the data in initialized data base are by obtaining after decompressing the installation kit of application program;
Display unit 1102, for showing first page data on the page;
Transmission unit 1103 sends page data request message, page number to server for instructing according to page access According to request message for obtaining page data corresponding with page access instruction;
Updating unit 1104, if the second page data for receiving server return, according to second page data The first page data shown on the page are updated.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 11 (a), page data provided by the embodiments of the present application In another embodiment of the device 110 of displaying,
Display unit 1102 is shown on the page if being also used to not receive the second page data of server return First prompt information, and keep showing first page data, the first prompt information is for indicating that second page data acquisition fails.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 11 (a), page data provided by the embodiments of the present application In another embodiment of the device 110 of displaying,
Acquiring unit 1101 is also used to be instructed according to page access, obtains and page access instruction pair from local data base The third page data answered, third page data is the data being cached in local data base, and page data returns for server The page data returned;
Acquiring unit 1101, if being also used in local data base, there are third page datas, and is shown on the page Three page datas;
Acquiring unit 1101, if being also used in local data base show on the page there is no there is third page data First page data;
Updating unit 1104, if being also used to receive the second page data of server return, according to second page number It is updated according to the first page data or third page data that are shown on the page.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 11 (a), Figure 11 (b) is please referred to, Figure 11 (b) is this Device one embodiment schematic diagram that a kind of page data provided in application embodiment is shown;Page provided by the embodiments of the present application It further include determination unit 1105 in another embodiment for the device 110 that face data is shown;
Determination unit 1105, if the second page data for receiving server return, it is determined that second page data Type;
Determination unit 1105 is also used to the type according to second page data, determines page data update mode, page number It is to update the mode of the first page data or third page data that show on the page according to update mode;
Updating unit 1104 is also used to according to second page data and page data update mode to shown on the page One page data or third page data are updated.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 11 (a), page data provided by the embodiments of the present application In another embodiment of the device 110 of displaying,
Updating unit 1104, if the type for being also used to second page data is list, the first page that will be shown on the page Face data or third page data are substituted for second page data.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 11 (a), page data provided by the embodiments of the present application In another embodiment of the device 110 of displaying,
Updating unit 1104 keeps first shown on the page if the type for being also used to second page data is article Page data or third page data, and will be had differences in second page data with first page data or third page data Part be shown.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 11 (a), page data provided by the embodiments of the present application In another embodiment of the device 110 of displaying,
Updating unit 1104, if being also used in first page data, there are contents to be deleted, will show on the page First page data in content to be deleted delete;
Updating unit 1104, if being also used in third page data, there are contents to be deleted, will show on the page Third page data in content to be deleted delete.
Optionally, on the basis of the embodiment corresponding to above-mentioned Figure 11 (a), page data provided by the embodiments of the present application In another embodiment of the device 110 of displaying,
Updating unit 1104, if being also used in first page data show on the page there are content to be increased First page data in be inserted into content to be increased;
Updating unit 1104, if being also used in third page data show on the page there are content to be increased Third page data in be inserted into content to be increased.
The embodiment of the present application also provides a kind of mobile terminals, as shown in figure 12, for ease of description, illustrate only and this Apply for the relevant part of embodiment, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The movement is whole End can be include mobile phone, tablet computer, personal digital assistant (personal digital assistant, PDA), sale eventually Any terminal devices such as (point of sales, POS), vehicle-mounted computer are held, by taking mobile terminal is mobile phone as an example:
Figure 12 shows the block diagram of the part-structure of mobile phone relevant to mobile terminal provided by the embodiments of the present application.Ginseng Figure 12 is examined, mobile phone includes: radio frequency (radio frequency, RF) circuit 1210, memory 1220, input unit 1230, display Unit 1240, sensor 1250, voicefrequency circuit 1260, Wireless Fidelity (wireless fidelity, WiFi) module 1270, place Manage the components such as device 1280 and power supply 1290.It will be understood by those skilled in the art that the not structure of handset structure shown in Figure 12 The restriction of pairs of mobile phone may include perhaps combining certain components or different components than illustrating more or fewer components Arrangement.
It is specifically introduced below with reference to each component parts of the Figure 12 to mobile phone:
RF circuit 1210 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 1280;In addition, the data for designing uplink are sent to base station.In general, RF circuit 1210 include but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (low noise Amplifier, LNA), duplexer etc..In addition, RF circuit 1210 can also be logical with network and other equipment by wireless communication Letter.Any communication standard or agreement, including but not limited to global system for mobile communications (global can be used in above-mentioned wireless communication System of mobile communication, GSM), general packet radio service (general packet radio Service, GPRS), CDMA (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), long term evolution (long term evolution, LTE), Email, short message service (short messaging service, SMS) etc..
Memory 1220 can be used for storing software program and module, and processor 1280 is stored in memory by operation 1220 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1220 can be led It to include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to mobile phone Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 1220 may include high random access storage Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are solid State memory device.
Input unit 1230 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 1230 may include touch panel 1231 and other inputs Equipment 1232.Touch panel 1231, also referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the behaviour of any suitable object or attachment such as finger, stylus on touch panel 1231 or near touch panel 1231 Make), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 1231 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 1280, and order that processor 1280 is sent can be received and executed.In addition, Touch panel 1231 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 1231, input unit 1230 can also include other input equipments 1232.Specifically, other input equipments 1232 may include But in being not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more.
Display unit 1240 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 1240 may include display panel 1241, optionally, can use liquid crystal display (liquid Crystal display, LCD), the forms such as Organic Light Emitting Diode (organic light-emitting diode, OLED) To configure display panel 1241.Further, touch panel 1231 can cover display panel 1241, when touch panel 1231 detects After arriving touch operation on it or nearby, processor 1280 is sent to determine the type of touch event, is followed by subsequent processing device 1280 provide corresponding visual output according to the type of touch event on display panel 1241.Although in Figure 12, touch surface Plate 1231 and display panel 1241 are the input and input function for realizing mobile phone as two independent components, but certain In embodiment, can be integrated by touch panel 1231 and display panel 1241 and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 1250, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 1241, proximity sensor can close display panel when mobile phone is moved in one's ear 1241 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 1260, loudspeaker 1261, microphone 1262 can provide the audio interface between user and mobile phone.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 1261, be converted by loudspeaker 1261 by circuit 1260 For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1262, by voicefrequency circuit 1260 Audio data is converted to after reception, then by after the processing of audio data output processor 1280, through RF circuit 1210 to be sent to ratio Such as another mobile phone, or audio data is exported to memory 1220 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1270 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Figure 12 is shown WiFi module 1270, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 1280 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1220, and calls and be stored in memory 1220 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 1280 may include one or more processing units;Optionally, processor 1280 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1280.
Mobile phone further includes the power supply 1290 (such as battery) powered to all parts, and optionally, power supply can pass through power supply Management system and processor 1280 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In the embodiment of the present application, processor 1280 included by the terminal is also with the following functions:
Obtain the page access instruction of application program;
It is instructed according to page access, first page data corresponding with page access instruction is obtained from initialized data base, Wherein, the data in initialized data base are by obtaining after decompressing the installation kit of application program;
First page data are shown on the page;
It is instructed according to page access, sends page data request message to server, page data request message is for obtaining Take page data corresponding with page access instruction;
If the second page data of server return are received, according to second page data to first shown on the page Page data is updated.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic or disk etc. are various can store program The medium of code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of method that page data is shown characterized by comprising
Obtain the page access instruction of application program;
It is instructed according to the page access, first page number corresponding with page access instruction is obtained from initialized data base According to, wherein the data in the initialized data base are by obtaining after decompressing the installation kit of the application program;
The first page data are shown on the page;
It is instructed according to the page access, sends page data request message to server, the page data request message is used In acquisition page data corresponding with page access instruction;
If receiving the second page data that the server returns, according to the second page data to being opened up on the page The first page data shown are updated.
2. the method that page data according to claim 1 is shown, which is characterized in that the method also includes:
If not receiving the second page data that the server returns, the first prompt information is shown on the page, and It keeps showing the first page data, first prompt information is for indicating the second page data acquisition failure.
3. the method that page data according to claim 1 is shown, which is characterized in that instructed in the acquisition page access Later, described to be instructed according to the page access, it is obtained and page access instruction corresponding first from initialized data base Before page data, the method also includes:
It is instructed according to the page access, obtains third page number corresponding with page access instruction from local data base According to the third page data is the data being cached in the local data base, and the page data is the server The page data of return;
It is described that the first page data are shown on the page, comprising:
If there are the third page datas in the local data base, the third page data is shown on the page;
If showing the first page number on the page there is no there is the third page data in the local data base According to;
If the second page data for receiving the server and returning, according to the second page data to the page The first page data of upper displaying are updated, comprising:
If receiving the second page data that the server returns, according to the second page data to being opened up on the page The first page data or the third page data shown are updated.
4. the method that page data according to claim 3 is shown, which is characterized in that if described receive the server The second page data of return, then according to the second page data to the first page data shown on the page or The third page data is updated, comprising:
If receiving the second page data that the server returns, it is determined that the type of the second page data;
According to the type of the second page data, determine that page data update mode, the page data update mode are more The mode of the first page data or the third page data that are shown on the new page;
According to the second page data and the page data update mode to the first page shown on the page Data or the third page data are updated.
5. the method that page data according to claim 4 is shown, which is characterized in that described according to the second page number According to the page data update mode to the first page data or the third page data shown on the page It is updated, comprising:
If the type of the second page data is list, by first page data shown on the page or described Third page data is substituted for the second page data.
6. the method that page data according to claim 4 is shown, which is characterized in that described according to the second page number According to the page data update mode to the first page data or the third page data shown on the page It is updated, comprising:
If the type of the second page data is article, the first page data shown on the page or institute are kept Third page data is stated, and will be existed in the second page data with the first page data or the third page data The part of difference is shown.
7. the method that page data according to claim 6 is shown, which is characterized in that described to keep showing on the page The first page data or the third page data, and by the second page data with the first page data Or the part that the third page data has differences is shown, comprising:
If there are content to be deleted in the first page data, the first page number that will be shown on the page The content to be deleted in is deleted;
If there are content to be deleted in the third page data, the third page number that will be shown on the page The content to be deleted in is deleted.
8. the method that page data according to claim 6 is shown, which is characterized in that described to keep showing on the page The first page data or the third page data, and by the second page data with the first page data Or the part that the third page data has differences is shown, comprising:
If there are content to be increased in the first page data, the first page number that shows on the page According to the middle insertion content to be increased;
If there are content to be increased in the third page data, the third page number that shows on the page According to the middle insertion content to be increased.
9. the device that a kind of page data is shown characterized by comprising
Acquiring unit, the page access for obtaining application program instruct;
The acquiring unit is also used to be instructed according to the page access, obtain and the page access from initialized data base Instruct corresponding first page data, wherein the data in the initialized data base are the peaces by decompressing the application program It is obtained after dress packet;
Display unit, for showing the first page data on the page;
Transmission unit sends page data request message, the page number to server for instructing according to the page access According to request message for obtaining page data corresponding with page access instruction;
Updating unit, if the second page data returned for receiving the server, according to the second page data The first page data shown on the page are updated.
10. a kind of terminal device characterized by comprising memory, transceiver, processor and bus system;
Wherein, the memory is for storing program;
The processor is used to execute the program in the memory, includes the following steps:
Obtain the page access instruction of application program;
It is instructed according to the page access, first page number corresponding with page access instruction is obtained from initialized data base According to, wherein the data in the initialized data base are by obtaining after decompressing the installation kit of the application program;
The first page data are shown on the page;
It is instructed according to the page access, sends page data request message to server, the page data request message is used In acquisition page data corresponding with page access instruction;
If receiving the second page data that the server returns, according to the second page data to being opened up on the page The first page data shown are updated;
The bus system is for connecting the memory and the processor, so that the memory and the processor It is communicated.
CN201910584176.9A 2019-06-28 2019-06-28 Page data display method and related device Active CN110287443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910584176.9A CN110287443B (en) 2019-06-28 2019-06-28 Page data display method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910584176.9A CN110287443B (en) 2019-06-28 2019-06-28 Page data display method and related device

Publications (2)

Publication Number Publication Date
CN110287443A true CN110287443A (en) 2019-09-27
CN110287443B CN110287443B (en) 2024-03-15

Family

ID=68020359

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910584176.9A Active CN110287443B (en) 2019-06-28 2019-06-28 Page data display method and related device

Country Status (1)

Country Link
CN (1) CN110287443B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338731A (en) * 2020-02-24 2020-06-26 腾讯科技(深圳)有限公司 Page display method and device, computer readable storage medium and computer equipment
CN113709199A (en) * 2020-05-21 2021-11-26 北京沃东天骏信息技术有限公司 Promotion information display method and device
CN115422909A (en) * 2022-08-25 2022-12-02 杭州有才信息技术有限公司 Background investigation method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107749919A (en) * 2017-09-22 2018-03-02 努比亚技术有限公司 A kind of application program page display method and equipment
CN107784086A (en) * 2017-10-09 2018-03-09 中国平安人寿保险股份有限公司 A kind of loading method of webpage, terminal device and computer-readable recording medium
US20190068593A1 (en) * 2017-08-22 2019-02-28 Samsung Electronics Co., Ltd. Method for providing service update and electronic device supporting the same

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190068593A1 (en) * 2017-08-22 2019-02-28 Samsung Electronics Co., Ltd. Method for providing service update and electronic device supporting the same
CN107749919A (en) * 2017-09-22 2018-03-02 努比亚技术有限公司 A kind of application program page display method and equipment
CN107784086A (en) * 2017-10-09 2018-03-09 中国平安人寿保险股份有限公司 A kind of loading method of webpage, terminal device and computer-readable recording medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338731A (en) * 2020-02-24 2020-06-26 腾讯科技(深圳)有限公司 Page display method and device, computer readable storage medium and computer equipment
CN111338731B (en) * 2020-02-24 2022-05-24 腾讯科技(深圳)有限公司 Page display method and device, computer readable storage medium and computer equipment
CN113709199A (en) * 2020-05-21 2021-11-26 北京沃东天骏信息技术有限公司 Promotion information display method and device
CN115422909A (en) * 2022-08-25 2022-12-02 杭州有才信息技术有限公司 Background investigation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110287443B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
US10917515B2 (en) Method for switching applications in split screen mode, computer device and computer-readable storage medium
US10775979B2 (en) Buddy list presentation control method and system, and computer storage medium
EP2991327B1 (en) Electronic device and method of providing notification by electronic device
US10732793B2 (en) Apparatus and method for providing information via portion of display
CN109542287B (en) Message reminding method and device, mobile terminal and storage medium
US10949060B2 (en) Method for switching applications, and electronic device thereof
JP2019506669A (en) Graphic code display method, apparatus, and storage medium
CN106970868A (en) Method for information display, device and terminal
CN107409346A (en) The method and terminal that limitation application program uses
CN106547844B (en) A kind for the treatment of method and apparatus of user interface
CN106598529A (en) Method and device for sub-screen display of mobile terminal, and mobile terminal
MX2014008742A (en) Notification message display method and apparatus, and electronic device.
CN107153537B (en) Information display method and device based on multi-task interface and mobile terminal
CN107066268B (en) Display position switching method and device for widget application
KR102061956B1 (en) Methods, devices and systems for presenting information
CN108549519A (en) split screen processing method, device, storage medium and electronic equipment
CN110287443A (en) A kind of method and relevant apparatus of page data displaying
CN109328329A (en) Using the processing method of data, device and terminal device
CN108932093A (en) Split screen application switching method, device, storage medium and electronic equipment
US10298590B2 (en) Application-based service providing method, apparatus, and system
CN109743724A (en) A kind of management method and mobile terminal of embedded SIM card
CN105187944B (en) A kind of method and apparatus to Show Status Bar
CN109284146A (en) A kind of light application open method and mobile terminal
CN107506120A (en) Method for information display, terminal and computer-readable recording medium
CN104834638B (en) A kind of hot word methods of exhibiting, device and electronic equipment

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