The content of the invention
In view of this, a kind of page of the application offer is shown, pagefile return method and device, computer storage are situated between
Matter.
To achieve the above object, the technical scheme that the application provides is as follows:
According to the first aspect of the application, it is proposed that a kind of page display method, including:
Detect whether page attribute values corresponding to the page to be shown are less than given threshold, wherein the page attribute values are used
In at least one attribute of reflection content of pages;
If the page attribute values are less than given threshold, hide and one or more anchor points are included corresponding to the page
Anchor List, if the page attribute values are more than given threshold, show and include one or more anchor points corresponding to the page
Anchor List.
According to the second aspect of the application, it is proposed that a kind of pagefile return method, including:
Receive the request for being used to obtain the page that user equipment is sent;
Detect whether page attribute values corresponding to the page are less than given threshold, wherein the page attribute values are used for instead
Reflect at least one attribute of content of pages;
If the page attribute values are less than given threshold, are returned to the user equipment and do not include anchor point row for generating
The pagefile of the page of table, if the page attribute values are more than given threshold, return and be used for the user equipment
The pagefile of the page of the generation comprising Anchor List, wherein the Anchor List includes one or more anchor points.
According to the third aspect of the application, it is proposed that a kind of page display device, including detection unit and display unit;Its
In:
Whether page attribute values corresponding to the detection unit detection page to be shown are less than given threshold, wherein described
Page attribute values are used at least one attribute for reflecting content of pages;
The display unit is hidden and one is included corresponding to the page when the page attribute values are less than given threshold
Or the Anchor List of multiple anchor points, when the page attribute values are more than given threshold, show and one is included corresponding to the page
The Anchor List of individual or multiple anchor points.
According to the fourth aspect of the application, it is proposed that a kind of pagefile return mechanism, including:Receiving unit, detection are single
Member and returning unit;
The receiving unit receives the request for being used to obtain the page that user equipment is sent;
Whether page attribute values corresponding to the detection unit detection page are less than given threshold, wherein the page
Property value is used at least one attribute for reflecting content of pages;
The returning unit is returned for generating when the page attribute values are less than given threshold to the user equipment
The pagefile of the page not comprising Anchor List, when the page attribute values are more than given threshold, to the user
Equipment returns to the pagefile for generating the page comprising Anchor List, wherein the Anchor List includes one or more
Individual anchor point.
According to the 5th of the application the aspect, it is proposed that a kind of computer-readable storage medium, computer program is stored thereon with, should
Following steps are realized when computer program is executed by processor:
Detect whether page attribute values corresponding to the page to be shown are less than given threshold, wherein the page attribute values are used
In at least one attribute of reflection content of pages;
If the page attribute values are less than given threshold, hide and one or more anchor points are included corresponding to the page
Anchor List, if the page attribute values are more than given threshold, show and include one or more anchor points corresponding to the page
Anchor List.
According to the 6th of the application the aspect, it is proposed that a kind of computer-readable storage medium, computer program is stored thereon with, should
Following steps are realized when computer program is executed by processor:
Receive the request for being used to obtain the page that user equipment is sent;
Detect whether page attribute values corresponding to the page are less than given threshold, wherein the page attribute values are used for instead
Reflect at least one attribute of content of pages;
If the page attribute values are less than given threshold, are returned to the user equipment and do not include anchor point row for generating
The pagefile of the page of table, if the page attribute values are more than given threshold, return and be used for the user equipment
The pagefile of the page of the generation comprising Anchor List, wherein the Anchor List includes one or more anchor points.
It is can be seen that by above technical scheme before the page is shown, by detecting page corresponding to the page to be shown
Whether face property value is less than given threshold, and when the page attribute values are less than given threshold, show the page and hide
The Anchor List of one or more anchor points is included corresponding to the page, when the page attribute values are more than given threshold, is shown
Show the page and show the corresponding Anchor List for including one or more anchor points of the page.Can be real by said process
Now to Anchor List appearance opportunity optimization, ensure user can with the more page of fast browsing content at the same time it can also
The loading velocity of the less page of lift portion content.
Embodiment
At present, anchor point (anchor) also known as names anchor note, is applied in webpage to link to one in webpage
Specified location.For the page that some include more content, anchor point is obviously particularly necessary, and it can greatly promote user's
Page browsing efficiency.However, the anchor point set in the page needs to take certain page space in itself, this influences whether the page
Loading velocity, for some pages comprising less content, do not show that anchor point may be more suitable for using in the page
The real demand at family.Because content that such page includes is simultaneously few, so in the case of no anchor point, to content of pages
Browse efficiency has no too big influence.In the related art, enough optimization is not carried out to the anchor point in the page.
Fig. 1 shows a kind of flow for page display method that an exemplary embodiment provides.As shown in figure 1, this method
All types of user equipment (such as mobile phone, computer, PDA) is can be applied to, in one embodiment, this method comprises the steps 101~
103, wherein:
In a step 101, detect whether page attribute values corresponding to the page to be shown are less than given threshold, wherein, institute
State at least one attribute that page attribute values are used to reflect content of pages.If the page attribute values are less than given threshold,
Into following step 102;If the page attribute values are more than given threshold, into following step 103.
The page to be shown can be that webpage corresponding to specific website or the page in application APP, user can pass through user
The browser installed in equipment accesses webpage corresponding to specific website, or certain application client by being installed on user equipment
Software is held to access using the page in APP.
The content of pages of the page can be made up of page elements such as word, picture, link, video, music.Wherein, for one
For the page of individual determination, the content of pages that can be included according to the page, at least one for reflecting content of pages is determined to
The page attribute values of attribute.In certain embodiments, the page attribute values can include it is following at least one:1., page
The anchor point number that bread contains;2., the character number that includes of the page;3., the character line number that includes of the page;4., content of pages take
Screen number;5., content of pages take memory space, the quantity of a certain page elements 6., in content of pages included, etc..
For each page attribute values, a given threshold corresponding with the page attribute values can be set respectively.Example
Such as, for " the anchor point number that the page includes ", corresponding threshold value can be set as 10;For " the character that the page includes
Number ", can set corresponding threshold value as 1000;For " the character line number that the page includes ", can set corresponding
Threshold value is 100;Etc..In addition, in one embodiment, user can according to itself actual demand by user equipment come personalized
Set the size of above-mentioned threshold value.
In a step 102, the Anchor List for including one or more anchor points corresponding to the page is hidden.
In step 103, the Anchor List for including one or more anchor points corresponding to the page is shown.
Illustrate above procedure below with reference to exemplary user interface.
As shown in Figure 2 A, a kind of document file page 10 shown on a user device, can include:Content of pages display area
11 and file catalogue region 13, wherein, file catalogue region 13 is used to show catalogue corresponding to various documents, file catalogue region
13 may include one or more second level mesh under one or more first order directory objects 131 and first order directory object 131
Object 132, etc. is recorded, such as:Second level directory object " APP ", " Page " under first order directory object " framework " etc..Page
Face content displaying region 11 is used for the particular content for a directory object for selecting user from above-mentioned file catalogue region 13
It is shown.In this example embodiment, the content of content of pages display area 11 may include page topic 110 and body matter 114,
Wherein, in body matter 114, one or more titles or subtitle can be included again, such as:One entitled " APP's "
The page, it can include following each title:" APP brief introductions ", " App () ", " getApp () ", " action scope ",
“app.json”.The content in the page is quickly viewed for the ease of user, can be set comprising one or more anchor points
Anchor List, each anchor point to be linked to the position where above-mentioned each title respectively.When user is clicked in these anchor points
At one, the content that screen automatic jumps to corresponding title is shown.
In one embodiment, an anchor point function key 12 can be included on above-mentioned document file page 10, to realize what is shown
The navigation feature of the page.User can trigger the displaying of first list 120 by the anchor point function key 12, the first list
120 can include one or more anchor points corresponding with the content of pages shown.That is, user can be by grasping accordingly
Make the first list 120 switching to dispaly state from hidden state, or, the first list 120 is switched from dispaly state
To hidden state.For example, after cursor hovers one section of duration in the anchor point function key 12, by the first list 120 from hidden
Tibetan state switches to dispaly state, or, user can be by clicking on the anchor point function key 12, to switch the first list 120
State, this is not restricted.
As shown in Figure 2 B, user can be by the operation of roll mouse, to switch the content that current page is shown.It is described
Method also includes:Anchor name corresponding with the content shown in current screen is shown in the anchor point function key 12, such as:When
For the content on " App () ", then the anchor name being shown in anchor point function key 12 is the content of displaying in forth screen:App
().So as to, user can determine that the content shown by current page is the content in terms of which by the anchor name,
Lift the usage experience of user.
As shown in Figure 3A, content of pages display area 11 can also show a second list for including one or more anchor points
112, the position that the second list 112 is shown can be located at top or the other positions of body matter, and this is not restricted.Its
In, the second list is not to be revealed all the time, it is necessary to be determined according to the judged result of above-mentioned steps 101.Such as:
Assuming that the page attribute values for needing to detect are the anchor point number that the page includes, corresponding given threshold is 10.When detecting
The anchor point number that includes of the page more than 10 (situation equal to 10 can be included) when, then show second list 112;Conversely, work as
When the anchor point number that the page detected includes is less than 10, then second list 112 is not shown.Typically for including anchor point quantity
For the more page, its content of pages for including of general proxy is more, shows that anchor point particularly seems necessary on the page.For
This, can automatically show the Anchor List on this kind of page, user not only can quickly be checked by Anchor List
Content of pages, and without manually operating to trigger the displaying of Anchor List, greatly improve the usage experience of user.It is another
Aspect, for comprising the less page of anchor point number, typically represent that the content of pages that it is included is less, and user may and be not required to
To use and arrive these anchor points, therefore, by the way that these Anchor Lists are hidden, so as to during the page loads and be not required to
Anchor List is loaded, the loading velocity of the page can be accelerated to a certain extent.In a word, can be realized pair by said process
The optimization on the appearance opportunity of Anchor List, ensuring that user can be with the more page of fast browsing content at the same time it can also being lifted
The loading velocity of the less page of partial content.
As shown in Figure 3 B, user can also trigger the displaying of first list 120 by anchor point function key 12, wherein, phase
Compared with the anchor point included in second list 112, more detailed anchor point can be shown in first list 120.For example, can be text
The first order title of shelves content is (such as:Abridge.a) anchor point is set respectively, or above-mentioned first order title is (such as:
Abridge.a the second level title under) is (such as:Enter ginseng) anchor point is set respectively, then in view of the loading velocity of the page, can monitor
When exceeding given threshold to page attribute values, the above-mentioned second list 112 of automatic Display, wherein, the second list 112 can be by one
Or multiple anchor point compositions corresponding with first order title, without the above-mentioned first list 120 of automatic Display.When user needs to get
During more detailed anchor point, can manually it operate to trigger the displaying of above-mentioned first list 120, the first list 120 can
It is made up of one or more anchor points corresponding with first order title and one or more anchor points corresponding with second level title.
In one embodiment, on the premise of above-mentioned first list 120 and above-mentioned second list 112 is included in the page, when
When detecting that page attribute values are less than given threshold, first list 120 and second list corresponding to the page to be presented are hidden
112;When detecting that page attribute values are more than given threshold, first list 120 or the second corresponding to the page to be presented is shown
List 112.Certainly, in other embodiments, above-mentioned first list 120 and above-mentioned second list 112 can only exist one.
It should be noted that the executive agent of above-mentioned steps 101 to step 103 can be same equipment or not
Same equipment.For example, in some feasible embodiments, step 101 can be by server (such as:Web server or using APP
Server) perform, step 102 and step 103 are performed by user equipment, this is not restricted herein.
Fig. 4 shows a kind of flow for pagefile return method that an exemplary embodiment provides.As shown in figure 4, should
Method can be applied to all kinds of servers (such as:Web server, using APP servers etc.), in one embodiment, this method includes
Following step 201~204, wherein:
In step 201, the request for being used to obtain the page that user equipment is sent is received.
In step 202, detect whether page attribute values corresponding to the page are less than given threshold, wherein, the page
Face property value is used at least one attribute for reflecting content of pages.If the page attribute values are less than given threshold, enter
Following step 203;If the page attribute values are more than given threshold, into following step 204.
The step 202 is referred to the above-mentioned content on step 101, will not be repeated here.
In step 203, the page for generating the page not comprising Anchor List is returned to the user equipment
File.Wherein, the Anchor List includes one or more anchor points.The pagefile is the text for being used to generate and (render) page
Part, including:HTML (HyperText Markup Language) file, CSS (Cascading Style Sheets) file,
Picture etc..Anchor point in the page can be realized by the correlative code of pagefile, and these correlative codes are defining anchor point
ID or title, and specify the position that is linked of anchor point., can be by the page when detecting that page attribute values are less than given threshold
To realize that the correlative code of anchor point is deleted in file, obtain generating the page of the page not comprising Anchor List
Face file.
In step 204, the page text for generating the page comprising Anchor List is returned to the user equipment
Part.
It is can be seen that by above technical scheme by detecting whether page attribute values corresponding to the page are less than setting
Threshold value, and different pagefiles is returned according to judged result, it is possible to achieve the optimization to the appearance opportunity of Anchor List.True
Guarantee family can be with the more page of fast browsing content at the same time it can also the less page of lift portion content loading velocity.
Fig. 5 shows the structure for a kind of electronic equipment that an exemplary embodiment provides.As shown in figure 5, the electronics is set
Standby can be user equipment (such as computer, mobile phone), and the electronic equipment can be including processor, internal bus, network interface, interior
Deposit and nonvolatile memory, the hardware being also possible that certainly required for other business.Processor is from non-volatile memories
Computer program into internal memory and then is run corresponding to being read in device, and page display device is formed on logic level.Certainly, remove
Outside software realization mode, the application is not precluded from other implementations, such as the side of logical device or software and hardware combining
Formula etc., that is to say, that the executive agent of following handling process is not limited to each logic unit or hardware or patrolled
Collect device.
As shown in fig. 6, in one embodiment, a kind of page display device, applied to user equipment, described device includes bag
Include detection unit 301 and display unit 302;Wherein:
The detection unit 301 detects whether page attribute values corresponding to the page to be shown are less than given threshold, wherein,
The page attribute values are used at least one attribute for reflecting content of pages.
The display unit 302 is hidden and included corresponding to the page when the page attribute values are less than given threshold
The Anchor List of one or more anchor points, when the page attribute values are more than given threshold, show and wrapped corresponding to the page
Anchor List containing one or more anchor points.
In one embodiment, the page attribute values can include it is following at least one:
The anchor point number that the page includes;
The character number that the page includes;
The character line number that the page includes;
The screen number that content of pages takes;
The memory space that content of pages takes.
In one embodiment, the Anchor List be first list corresponding with the anchor point function key on the page and/
Or the second list for the predeterminated position displaying in the content displaying region of the page, wherein the anchor point function key is used
In the displaying for triggering the first list.
In one embodiment, described device also includes anchor name display unit, and the anchor name display unit is in institute
State the anchor name corresponding with the content of displaying in current screen of display in anchor point function key.
In one embodiment, the display unit 302 hides the page when the page attribute values are less than given threshold
First list corresponding to face and second list.
In one embodiment, the display unit 302 shows the page when the page attribute values are more than given threshold
First list corresponding to face or second list.
Fig. 7 shows the structure for a kind of electronic equipment that an exemplary embodiment provides.As shown in fig. 7, the electronics is set
It is standby can be server (such as:Web server, using APP servers etc.), the electronic equipment can include processor, internal total
Line, network interface, internal memory and nonvolatile memory, the hardware being also possible that certainly required for other business.Processor
Computer program into internal memory and then is run corresponding to being read from nonvolatile memory, and page text is formed on logic level
Part return mechanism.Certainly, in addition to software realization mode, the application is not precluded from other implementations, such as logical device
Or mode of software and hardware combining etc., that is to say, that the executive agent of following handling process is not limited to each logic list
Member or hardware or logical device.
As shown in figure 8, in one embodiment, a kind of pagefile return mechanism, applied to server, including:Receive single
Member 401, detection unit 402 and returning unit 403;Wherein:
The receiving unit 401 receives the request for being used to obtain the page that user equipment is sent;
The detection unit 402 detects whether page attribute values corresponding to the page are less than given threshold, wherein described
Page attribute values are used at least one attribute for reflecting content of pages;
The returning unit 403 is returned to the user equipment and is used for when the page attribute values are less than given threshold
The pagefile of the page of the generation not comprising Anchor List, when the page attribute values are more than given threshold, to described
User equipment returns to the pagefile for generating the page comprising Anchor List.Wherein, the Anchor List includes one
Individual or multiple anchor points.
It should be noted that on the premise of not disagreing, said apparatus embodiment and above method embodiment can be each other
Supplement.
In one embodiment, a kind of computer-readable storage medium is also provided, is stored thereon with computer program, the computer journey
Following steps are realized when sequence is executed by processor:
Detect whether page attribute values corresponding to the page to be shown are less than given threshold, wherein the page attribute values are used
In at least one attribute of reflection content of pages;
If the page attribute values are less than given threshold, hide and one or more anchor points are included corresponding to the page
Anchor List, if the page attribute values are more than given threshold, show and include one or more anchor points corresponding to the page
Anchor List.
In one embodiment, a kind of computer-readable storage medium is also provided, is stored thereon with computer program, the computer journey
Following steps are realized when sequence is executed by processor:
Receive the request for being used to obtain the page that user equipment is sent;
Detect whether page attribute values corresponding to the page are less than given threshold, wherein the page attribute values are used for instead
Reflect at least one attribute of content of pages;
If the page attribute values are less than given threshold, are returned to the user equipment and do not include anchor point row for generating
The pagefile of the page of table, if the page attribute values are more than given threshold, return and be used for the user equipment
The pagefile of the page of the generation comprising Anchor List, wherein the Anchor List includes one or more anchor points.
The step of above computer program is realized when being executed by processor is referred to the description to embodiment of the method above,
This is no longer repeated.
System, device, module or the unit that above-described embodiment illustrates, it can specifically be realized by computer chip or entity,
Or realized by the product with certain function.One kind typically realizes that equipment is computer, and the concrete form of computer can
To be personal computer, laptop computer, cell phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet PC, wearable device or these equipment
The combination of any several equipment.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, this is being implemented
The function of each unit can be realized in same or multiple softwares and/or hardware during application.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more
The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
In a typical configuration, computing device includes one or more processors (CPU), input/output interface, net
Network interface and internal memory.
Internal memory may include computer-readable medium in volatile memory, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus
Or any other non-transmission medium, the information that can be accessed by a computing device available for storage.Define, calculate according to herein
Machine computer-readable recording medium does not include temporary computer readable media (transitory media), such as data-signal and carrier wave of modulation.
It should also be noted that, term " comprising ", "comprising" or its any other variant are intended to nonexcludability
Comprising so that process, method, commodity or equipment including a series of elements not only include those key elements, but also wrapping
Include the other element being not expressly set out, or also include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that wanted including described
Other identical element also be present in the process of element, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer program product.
Therefore, the application can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.Deposited moreover, the application can use to can use in one or more computers for wherein including computer usable program code
The shape for the computer program product that storage media is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The application can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type
Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these DCEs, by
Task is performed and connected remote processing devices by communication network.In a distributed computing environment, program module can be with
In the local and remote computer-readable storage medium including storage device.
Each embodiment in this specification is described by the way of progressive, identical similar portion between each embodiment
Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for system
For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method
Part explanation.
Embodiments herein is the foregoing is only, is not limited to the application.For those skilled in the art
For, the application can have various modifications and variations.All any modifications made within spirit herein and principle, it is equal
Replace, improve etc., it should be included within the scope of claims hereof.