Specific embodiment
Goal of the invention, feature, advantage to enable the present invention is more apparent and understandable, below in conjunction with the present invention
The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing in embodiment, it is clear that described reality
It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiments of the present invention, people in the art
Member's all other embodiments obtained without making creative work, belong to the scope of protection of the invention.
Fig. 1 is the application environment schematic diagram of the processing method of resource downloading provided in an embodiment of the present invention.As shown in Figure 1,
Multiple terminal devices 100 and server 200 carry out data interaction by network.Being equipped in terminal device 100 can push away to user
Recommend the client-side program of resource downloading.Terminal device 100 obtains recommendable resource from server 200, and passes through the client
The displayed page of program is shown.Terminal device 200 includes:There is smart mobile phone, the tablet of networking and resource displaying
The electronic data device and the non-electronic data that can be used on the move that computer, laptop etc. can use on the move are set
It is standby.
Referring to Fig. 2, the realization flow diagram of the processing method of the resource downloading provided for one embodiment of the invention, it should
For the terminal device 100 in Fig. 1.As shown in Fig. 2, this method mainly includes the following steps that:
101st, when triggering resource downloading, the description information of replacement resource is obtained, replacement resource is used in the page
Middle replacement starts the target resource downloaded, and belongs to same classification with target resource;
Specifically, the client-side program that resource downloading can be provided is preset in terminal device, the download of the client-side program
Function pages provide the interface of resource downloading.It is assorted that user can understand resource by the description information of resource shown in the page
, and pass through the download button clicked in the page and complete resource downloading.
It may include multiple classification cards in one page, each classification card is equivalent to a container, for accommodating one
The relevant information of default resource under default classification.Each classification card has multiple displaying fields, different for showing
The relevant information of resource.The quantity of specific displaying field can be adjusted according to actual demand, not limited herein.
Resource can be, but not limited to include:Application resource, such as:Microsoft Explorer, compass program, 360 antivirus journeys
Sequence etc.;Multimedia resource, such as:Audio, video file, electronic book documentary, picture and text document etc.;And other can
It is supplied to the data resource that user uses.
Event sniffer is provided in terminal device, for monitoring each event occurred in the page.It is supervised when by event
When listening the device to listen to the click event of download button, the downloading task of the target resource of download button direction is triggered, is started pair
The target resource is downloaded.Meanwhile new resource is obtained, to replace the target resource for currently starting to download.The new resource
Belong to same classification with target resource, e.g., if download is the resource A of music class, then from music class a new resource B is looked for replace
Change the resource A downloaded.
102nd, by the description information of the replacement resource of acquisition, replace the displaying field in target resource in the page and opened up
Show.
The description information of replacement resource can be, but not limited to include:It the title of replacement resource, size, icon and is associated with
Download (or, installation) button of download link.Specifically, by the title of the replacement resource of replacement resource, size, icon and pass
The download button of download link is associated with, the former displaying field of target resource is shown in the page, the related letter of target resource
Breath will not be appeared in the page again.User by other means, can such as press the mode of quick botton, terminate target resource
It downloads.Optionally, after download is terminated, target resource will not replace back former displaying field and be shown again, to ensure the page
Shown in be new resources that user had not downloaded always.At this point, the target that user can be terminated by downloading history understanding
The relevant information of resource.
The processing method of resource downloading provided in this embodiment, on the one hand, when triggering resource downloading, obtain new replacement
Resource is simultaneously replaced the resource downloaded in the page and is shown, and realizes upgrading in time for resource;On the other hand, profit is passed through
The new replacement resource of acquisition is shown with the displaying field for the resource downloaded, can be wasted to avoid field, effectively
Improve the utilization rate of page location.
Referring to Fig. 3, the realization flow diagram of the processing method of the resource downloading provided for another embodiment of the present invention,
Applied to the terminal device 100 in Fig. 1.As shown in figure 3, this method mainly includes the following steps that:
201st, when triggering resource downloading, the description information of replacement resource is obtained, replacement resource is used in the page
Middle replacement starts the target resource downloaded, and belongs to same classification with target resource;
Specifically, the client-side program that resource downloading can be provided is preset in terminal device, the download of the client-side program
Function pages provide the interface of resource downloading.It is assorted that user can understand resource by the description information of resource shown in the page
, and pass through the download button clicked in the page and complete resource downloading.
It may include multiple classification cards in one page, each classification card is equivalent to a container, for accommodating one
The relevant information of default resource under default classification.Each classification card has multiple displaying fields, different for showing
The relevant information of resource.The quantity of specific displaying field can be adjusted according to actual demand, not limited herein.
Resource can be, but not limited to include:Application resource, such as:Microsoft Explorer, compass program, 360 antivirus journeys
Sequence etc.;Multimedia resource, such as:Audio, video file, electronic book documentary, picture and text document etc.;And other can
It is supplied to the data resource that user uses.The description information of replacement resource can be, but not limited to include:It is the title of replacement resource, big
Small, icon and download (or, installation) button for being associated with download link.It in practical applications, can be according to the purposes of resource
Classify to resource.
Event sniffer is provided in terminal device, for monitoring each event occurred in the page.It is supervised when by event
When listening the device to listen to the click event of download button, the downloading task of the target resource of download button direction is triggered, is started pair
The target resource is downloaded.Meanwhile new resource is obtained, to replace the target resource for currently starting to download.The new resource
Belong to same classification with target resource, e.g., if download is the resource A of music class, then from music class a new resource B is looked for replace
Change the resource A downloaded.
Optionally, since Show board bit quantity is limited, and the quantity of the resource under each classification may be far longer than displaying
The quantity of field.Terminal device can disposably download the description letter of multiple resources more than Show board bit quantity from server
Breath, and according to preset displaying information, the description information of the part resource in the description information of multiple resources of download is carried out
Displaying.When triggering resource downloading, first the description information of replacement resource is obtained from local.If from it is local obtain less than for
The description information of resource is changed, then to the description information of server request replacement resource.If get retouching for replacement resource from local
Information is stated, then confirms the description information for getting replacement resource.
If the description information of replacement resource the 202, has not been obtained, in the case where showing field real-time update display target resource
Load state;
The reason for description information of replacement resource has not been obtained can be, but not limited to include:Terminal device without network connection with
And it is obtained under the corresponding classification of target resource less than new description information of resource etc..It specifically, can be current by judging
Whether network connection is had, alternatively, judging whether target resource is the last one resource under the corresponding classification, it is determined whether not
Get the description information of replacement resource.
In the download state of displaying field real-time update display target resource, i.e. according to the download state of target resource
Real-time change, real-time update shows corresponding context information in field is shown.
It optionally, can be in field be shown in the control button of target resource, under real-time update display target resource
Load state.Control button is for example:Download or install button.The variation of button specifically can be as applied in Fig. 4 in chess and card classification card
" installation " button under title 1 entertains " 20% " button in classification card under Apply Names 2 and (represents to have completed to be downloaded into
The 20% of degree), it further may also include " in wait ", " continuation ", " opening " etc..
203rd, judge whether target resource is the last one non-installation resource in classification belonging to target resource, if so,
After the completion of target resource download, the card where target resource is moved to the bottom of the page, alternatively, built-in type cards;
If target resource is the last one non-installation resource in classification belonging to target resource, illustrate that the classification has not had
There is new valuable resource that can recommend, the action value of other classification cards of the action value of the corresponding card of the classification, therefore,
Card where target resource is moved to the bottom of the page, alternatively, built-in type cards, it will be in the sequence of positions of remaining card
It moves, so that the resource of web page recommendation has more directive property.
Further, if target resource is the last one non-installation resource in classification belonging to target resource, peace is clicked on
Button is filled, it, can be in displaying field output prompt message " no network connection " if Network Abnormal.
If the 204, getting the description information of replacement resource, whether the corresponding resource of description information for judging to obtain has pacified
In terminal device;
If the 205, being not installed in terminal device, the description information of the replacement resource of acquisition is replaced in target resource
Displaying field in the page is shown;
Judge whether to have installed including:Whether it is mark according to the identification information judgment replacement resource of resource and installation resource
It is sensible with resource, alternatively, according to the identification information of resource and version information judge replacement resource and installation resource whether be
The identical resource of version different identification, such as:The wechat of the wechat of 1.0 versions and 2.0 versions.Wherein, version is different includes replacing
The version of resource is changed higher than installation resource, alternatively, the version of replacement resource is less than installation resource.
As shown in the part that dashed box limits in Fig. 5, if the corresponding resource of description information obtained is not installed at terminal device
In, then by the description information of the resource, replace the displaying field in target resource in the page and be shown.The phase of target resource
Closing information will not appear in the page again.User by other means, can such as press the mode of quick botton, terminate target money
The download in source.Optionally, after download is terminated, target resource will not replace back former displaying field and be shown again, to ensure
It is the new resources that user had not downloaded always shown in the page.At this point, what user can be terminated by downloading history understanding
The relevant information of target resource.
Further, the description information of replacement resource can be highlighted in the displaying field of target resource or
Cue mark is added in the displaying field, has new resource to be substituted into prompting.
If the 206, being mounted in terminal device, the description information of next replacement resource is obtained.Then, based on acquisition
Next replacement resource description information, perform step 204:Whether the corresponding resource of description information for judging to obtain has been installed
In terminal device, until the corresponding resource of description information got is the resource being not installed in terminal device, and it will obtain
The description information of the replacement resource taken is replaced the displaying field in target resource in the page and is shown.Alternatively, it all ought obtain
When the corresponding resource of description information taken has been mounted in terminal device, the description information that replacement resource has not been obtained is confirmed.
If the corresponding resource of description information obtained has been mounted in terminal device, next replacement resource is obtained, so
Judge whether the corresponding resource of description information of the next replacement resource obtained is also already installed in terminal device afterwards, so
Back and forth, until the corresponding resource of description information that gets is the resource being not installed in terminal device, and by the replacement of acquisition
The description information of resource is replaced the displaying field in target resource in the page and is shown.If the alternatively, description of all acquisitions
The corresponding resource of information has been mounted in terminal device, then confirms the description information that replacement resource has not been obtained, and performs step
202。
It should be understood that it either still asks to replace money from server from the local description information for obtaining replacement resource
The description information in source after the description information of replacement resource is got each time, is required for judging that the description information obtained corresponds to
Resource whether installed.
By judging whether replacement resource has been installed, can be occupied to avoid invalid description information to page location, into one
Step improves the utilization rate of page location, and the resource for ensureing to replace is valuable resource.
The processing method of resource downloading provided in this embodiment, the processing method of resource downloading provided in this embodiment, one
Aspect when triggering resource downloading, obtains new replacement resource and the resource downloaded is replaced in the page and be shown, real
Upgrading in time for resource is showed;On the other hand, by using new replacement of the displaying field for the resource downloaded to acquisition
Resource is shown, and can be wasted to avoid field, be effectively improved the utilization rate of page location.
Referring to Fig. 6, the realization flow diagram of the processing method of the resource downloading provided for another embodiment of the present invention.
The present embodiment is the description that the angle interacted from terminal device with server carries out.As shown in fig. 6, this method is mainly including following
Step:
301st, terminal device is when locally triggering resource downloading, to the description information of server request replacement resource, and will
Start the identification information for the target resource downloaded, the identification information of local all installation resources and User Identity information hair
Server is given, replacement resource belongs to same point for replacing the target resource for starting to download in the page with target resource
Class;
User Identity information, such as:IMEI (International Mobile Equipment Identity, state
Border mobile equipment identity code), the resource for determining which type can recommend terminal device.
The identification information of resource can be, but not limited to include:The information such as the title of installation resource, version number.
302nd, server obtains the description information of replacement resource from alternative resource and returns to terminal device, replacement resource
Identification information and the identification information of all installation resources mismatch;
Specifically, server determines alternative resource according to IMEI, it is true according to the identification information for the target resource for starting to download
Determine the affiliated classification of replacement resource, replacement resource is determined according to the identification information of all installation resources.The mark of replacement resource
The identification information of information and all installation resources mismatches, i.e. replacement resource had been installed in terminal device
Resource.
303rd, the description information for the replacement resource that terminal device returns to server is replaced in target resource in the page
Displaying field is shown.
The description information of replacement resource can be, but not limited to include:It the title of replacement resource, size, icon and is associated with
Download (or, installation) button of download link.Specifically, by the title of the replacement resource of replacement resource, size, icon and pass
The download button of download link is associated with, the former displaying field of target resource is shown in the page, the related letter of target resource
Breath will not be appeared in the page again.User by other means, can such as press the mode of quick botton, terminate target resource
It downloads.Optionally, after download is terminated, target resource will not replace back former displaying field and be shown again, to ensure the page
Shown in be new resources that user had not downloaded always.At this point, the target that user can be terminated by downloading history understanding
The relevant information of resource.
Details is not use up in the present embodiment, specifically refers to the related content in Fig. 2 and embodiment illustrated in fig. 3.
The processing method of resource downloading provided in this embodiment, the processing method of resource downloading provided in this embodiment, one
Aspect when triggering resource downloading, obtains new replacement resource and the resource downloaded is replaced in the page and be shown, real
Upgrading in time for resource is showed;On the other hand, by using new replacement of the displaying field for the resource downloaded to acquisition
Resource is shown, and can be wasted to avoid field, be effectively improved the utilization rate of page location.
Referring to Fig. 7, the structure diagram of the terminal device provided for one embodiment of the invention.The terminal device can be used for
Realize the processing method for the resource downloading that above-mentioned embodiment illustrated in fig. 2 provides.As shown in fig. 7, the terminal device mainly includes:It obtains
Modulus block 401 and processing module 402.
Wherein, acquisition module 401, for when triggering resource downloading, obtaining, replacing to the description information of replacement resource
Resource is changed for replacing the target resource for starting to download in the page, and belongs to same classification with target resource;
Processing module 402 for the description information for the replacement resource that will be obtained, replaces the exhibition in the page in target resource
Show that field is shown.
It should be noted that in the embodiment of the exemplary terminal device of figure 7 above, the division of each function module is only to lift
Example explanation, can be as needed in practical application, such as the convenient consideration of the realization of the configuration requirement or software of corresponding hardware,
And complete above-mentioned function distribution by different function modules, i.e., the internal structure of terminal device is divided into different function moulds
Block, to complete all or part of function described above.Moreover, in practical applications, the corresponding function in the present embodiment
Module can be by corresponding hardware realization, can also perform corresponding software by corresponding hardware and complete.This specification provides
Each embodiment all can apply foregoing description principle, repeat no more below.
The detailed process of the respective function of each Implement of Function Module, refers to above-mentioned figure in terminal device provided in this embodiment
Particular content described in 2 illustrated embodiments, details are not described herein again.
Terminal device provided in this embodiment, on the one hand, when triggering resource downloading, obtain new replacement resource and in page
The resource downloaded is replaced in face to be shown, and realizes upgrading in time for resource;On the other hand, by using downloading
The displaying field of resource the new replacement resource of acquisition is shown, can be wasted to avoid field, effectively improve page position
The utilization rate put.
Referring to Fig. 8, the structure diagram of the terminal device provided for another embodiment of the present invention.The terminal device can use
In the processing method for the resource downloading for realizing above-mentioned Fig. 2 and embodiment illustrated in fig. 3 offer.It is different from terminal device shown in Fig. 7
, in this present embodiment,
Further, which further includes:
State display module 501 if the description information of replacement resource has not been obtained for acquisition module 401, is being shown
The download state of field real-time update display target resource;
Processing module 402, if getting the description information of replacement resource for acquisition module 401, by the replacement of acquisition
The description information of resource is replaced the displaying field in target resource in the page and is shown;
Acquisition module 401, specifically for when triggering resource downloading, being obtained from local to the description information of replacement resource
It takes, if from the local description information obtained less than replacement resource, to the description information of server request replacement resource;
State display module 501 is shown specifically for real-time update in the control button of target resource in field is shown
The download state of target resource;
Processing module 402, if getting the description information of replacement resource also particularly useful for acquisition module 401, judgement obtains
Whether the corresponding resource of description information taken has been mounted in terminal device, if being not installed in terminal device, by acquisition
The description information of replacement resource, if the displaying field replaced in target resource in the page is shown and has been mounted on eventually
In end equipment, then the description information of next replacement resource is obtained;
Processing module 402 is additionally operable to be mounted in terminal device when the corresponding resource of description information of all acquisitions
When, confirm the description information that replacement resource has not been obtained.
Further, terminal device further includes:
Judgment module 502, for judge target resource whether be belonging to target resource classification in the last one do not install
Resource.
Further, processing module 402 are additionally operable to judgment module 502 and judge that target resource is classification belonging to target resource
In the last one non-installation resource, then target resource download after the completion of, the card where target resource is moved into the page
Bottom, alternatively, built-in type cards.
Optionally, processing module 402, be additionally operable in the displaying field of target resource to the description information of replacement resource into
Row is highlighted or adds cue mark in the displaying field, has new resource to be substituted into prompting.
The detailed process of the respective function of each Implement of Function Module, refers to above-mentioned figure in terminal device provided in this embodiment
1 to the particular content described in embodiment illustrated in fig. 7, and details are not described herein again.
Terminal device provided in this embodiment, on the one hand, when triggering resource downloading, obtain new replacement resource and in page
The resource downloaded is replaced in face to be shown, and realizes upgrading in time for resource;On the other hand, by using downloading
The displaying field of resource the new replacement resource of acquisition is shown, can be wasted to avoid field, effectively improve page position
The utilization rate put.
Referring to Fig. 9, Fig. 9 is the hardware architecture diagram for the terminal device that one embodiment of the invention provides.
Terminal device described in the present embodiment, including:
Memory 51, processor 52 and the computer program that can be run on memory 51 and on the processor 52 is stored in,
When processor 52 performs the computer program, the processing side of the resource downloading described in realization earlier figures 2 and embodiment illustrated in fig. 3
Method.
Further, which further includes:
At least one input equipment 53 and at least one output equipment 54.
Above-mentioned memory 51, processor 52, input equipment 53 and output equipment 54, are connected by bus 55.
Wherein, input equipment 53 concretely camera, touch panel, physical button or mouse etc..Output equipment
54 concretely display screens.
Memory 51 can be high random access memory body (RAM, Random Access Memory) memory, also may be used
For non-labile memory (non-volatile memory), such as magnetic disk storage.Memory 51 can for storing one group
Program code is performed, processor 52 is coupled with memory 51.
Further, the embodiment of the present invention additionally provides a kind of computer readable storage medium, the computer-readable storage
Medium can be disposed in the terminal device in the various embodiments described above, which can be earlier figures 9
Memory in illustrated embodiment.Computer program is stored on the computer readable storage medium, which is held by processor
The processing method of the resource downloading described in earlier figures 2 and embodiment illustrated in fig. 3 is realized during row.Further, which can
Storage medium can also be USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), RAM, magnetic disc or light
The various media that can store program code such as disk.
In several embodiments provided herein, it should be understood that disclosed terminal device and method, Ke Yitong
Other modes are crossed to realize.For example, the apparatus embodiments described above are merely exemplary, for example, the module is drawn
Point, it is only a kind of division of logic function, there can be other dividing mode in actual implementation, such as multiple module or components can
To combine or be desirably integrated into another system or some features can be ignored or does not perform.It is another, it is shown or beg for
The mutual coupling, direct-coupling or communication connection of opinion can be the INDIRECT COUPLING by some interfaces, device or module
Or communication connection, can be electrical, machinery or other forms.
The module illustrated as separating component may or may not be physically separate, be shown as module
The component shown may or may not be physical module, you can be located at a place or can also be distributed to multiple
On network module.Some or all of module therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each function module in each embodiment of the present invention can be integrated in a processing module, it can also
That modules are individually physically present, can also two or more modules be integrated in a module.Above-mentioned integrated mould
The form that hardware had both may be employed in block is realized, can also be realized in the form of software function module.
If the integrated module is realized in the form of software function module and is independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
It embodies, which is stored in a readable storage medium storing program for executing, is used including some instructions so that a meter
It calculates machine equipment (can be personal computer, server or the network equipment etc.) and performs each embodiment the method for the present invention
All or part of step.And foregoing readable storage medium storing program for executing includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with
Store the medium of program code.
It it should be noted that for foregoing each method embodiment, describes, therefore it is all expressed as a series of for simplicity
Combination of actions, but those skilled in the art should know, the present invention and from the limitation of described sequence of movement because
According to the present invention, some steps may be employed other orders or be carried out at the same time.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to preferred embodiment, and involved action and module might not all be this hairs
Necessary to bright.
In the above-described embodiments, all emphasize particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
It is to a kind of processing method of resource downloading provided by the present invention, terminal device and computer-readable storage above
The description of medium, for those skilled in the art, according to the thought of the embodiment of the present invention, in specific embodiment and using model
There will be changes are placed, to sum up, this specification content should not be construed as limiting the invention.