CN106294475A - The generation method and apparatus of the page - Google Patents

The generation method and apparatus of the page Download PDF

Info

Publication number
CN106294475A
CN106294475A CN201510301154.9A CN201510301154A CN106294475A CN 106294475 A CN106294475 A CN 106294475A CN 201510301154 A CN201510301154 A CN 201510301154A CN 106294475 A CN106294475 A CN 106294475A
Authority
CN
China
Prior art keywords
page
page data
instrument
switch
tool
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.)
Pending
Application number
CN201510301154.9A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201510301154.9A priority Critical patent/CN106294475A/en
Publication of CN106294475A publication Critical patent/CN106294475A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/957Browsing optimisation, e.g. caching or content distillation

Abstract

The application proposes the generation method and apparatus of a kind of page, and wherein, the generation method of this page comprises the following steps: server obtains the page request that browser sends;Obtain the page data that page request is corresponding;If the tool properties switch that page data is corresponding is opening, then by instrument activation corresponding with tool properties switch in page data;And page data is sent to browser, so that browser renders page data show the page that page data is corresponding, wherein, the page has the instrument corresponding with tool properties switch.The generation method of the page of the application, it is not necessary to the page is encoded again exploitation the instrument being easy to page browsing can be provided automatically in the page, reduce development cost.Additionally, whether the state switched by tool properties controls the activation of instrument, thus improve autgmentability and the motility of tool set in the page so that user browses during webpage more convenient, improves Consumer's Experience.

Description

The generation method and apparatus of the page
Technical field
The application relates to Internet technical field, particularly to the generation method and apparatus of a kind of page.
Background technology
User's browsing pages for convenience, can provide tool set for user the page to carry out prompt operation in the page, such as, When the quantity of information of the page is relatively big, or when the height of the page exceedes screen height and makes content of pages all to show, can pass through There is provided navigation bar so that user learns the entire content of the page, controls page turning, fast by top set instrument by page-turning button instrument Speed top set, or can initiate search in the page currently browsed by research tool.
But, the tool set major part provided in the current page is all beforehand through coding by page engineer or developer Mode realizes, and is supplied directly to user when showing the page.And due to the multiformity of single-page expression-form, can cause each Tool set in the page all must be realized by page engineer or developer's stand-alone development, and development cost is high.Additionally, the page In tool set once developed, would not change again, trigger page engineer or the developer instrument again to the page Collection is developed, and therefore autgmentability and the motility of the tool set in the current page is the most extremely short of.
Summary of the invention
The application is intended to solve above-mentioned technical problem the most to a certain extent.
To this end, the first of the application purpose is to propose a kind of generation method of page, reduces development cost, improve page The autgmentability of tool set and motility in face so that user browses during webpage more convenient.
Second purpose of the application is to propose the generation method of the another kind of page.
3rd purpose of the application is to propose the generating means of a kind of page.
4th purpose of the application is to propose the generating means of the another kind of page.
For reaching above-mentioned purpose, propose a kind of generation method of page according to the application first aspect embodiment, be applied to server, Comprise the following steps: described server obtains the page request that browser sends;Obtain the page data that described page request is corresponding; If the tool properties switch that described page data is corresponding is opening, then will described page data be opened with described tool properties Close corresponding instrument activation;And described page data is sent to described browser, so that the page described in described browser renders Data also show the page that described page data is corresponding, wherein, have the work corresponding with described tool properties switch in the described page Tool.
The generation method of the page of the embodiment of the present application, can obtain corresponding page data according to the page request that browser sends, If the tool properties switch that this page data is corresponding is opening, then by work corresponding for tool properties switch in this page data Tool activates, and page transmission is selected to browser, has the page of instrument corresponding to tool properties switch, nothing with display The page need to be encoded again exploitation and the instrument being easy to page browsing can be provided automatically in the page, reduce development cost. Additionally, whether the state switched by tool properties controls the activation of instrument, thus improve in the page autgmentability of tool set and Motility so that user browses during webpage more convenient, improves Consumer's Experience.
The application second aspect embodiment provides the generation method of the another kind of page, is applied to browser, comprises the following steps: Described browser sends page request to server;Receive the page data that described server returns;Render described page data also Show the page that described page data is corresponding;Wherein, if tool properties switch corresponding to described page data is for opening, The most described page has the instrument corresponding with described tool properties switch.
The generation method of the page of the embodiment of the present application, browser can send page request to server, and to the service received Device return page data render after show correspondence the page, if this page data corresponding tool properties switch for open State, then have the instrument corresponding with tool properties switch, thus develop without again encoding the page in this page The instrument being easy to page browsing is provided automatically in the page, reduces development cost.Additionally, the state switched by tool properties Whether the activation of control instrument, thus improves autgmentability and the motility of tool set in the page so that when user browses webpage more Add convenient and swift, improve Consumer's Experience.
The application third aspect embodiment provides the generating means of a kind of page, including the first acquisition module, is used for obtaining clear The page request that device of looking at sends;Second acquisition module, for obtaining the page data that described page request is corresponding;Active module, For corresponding at described page data tool properties switch for opening time, by described page data with described tool properties The instrument activation that switch is corresponding;And sending module, for described page data is sent to described browser, so that described clear Device of looking at renders described page data and shows the page that described page data is corresponding, wherein, has and described instrument in the described page The instrument that attribute switch is corresponding.
The generating means of the page of the embodiment of the present application, can obtain corresponding page data according to the page request that browser sends, If the tool properties switch that this page data is corresponding is opening, then by work corresponding for tool properties switch in this page data Tool activates, and page transmission is selected to browser, has the page of instrument corresponding to tool properties switch, nothing with display The page need to be encoded again exploitation and the instrument being easy to page browsing can be provided automatically in the page, reduce development cost. Additionally, whether the state switched by tool properties controls the activation of instrument, thus improve in the page autgmentability of tool set and Motility so that user browses during webpage more convenient, improves Consumer's Experience.
The application fourth aspect embodiment provides the generating means of a kind of page, including: sending module, for sending out to server Send page request;Receiver module, for receiving the page data that described server returns;Display module, is used for rendering described page Face data also show the page that described page data is corresponding;Wherein, if tool properties corresponding to described page data switchs as opening Open state, the most described page has the instrument corresponding with described tool properties switch.
The generating means of the page of the embodiment of the present application, can send page request to server, and return the server received Page data render after show the page of correspondence, if tool properties switch corresponding to this page data is for opening, This page then has the instrument corresponding with tool properties switch, thus can automatically exist without the page being encoded again exploitation The page provides the instrument being easy to page browsing, reduces development cost.Additionally, the state control work switched by tool properties Whether the activation of tool, thus improves autgmentability and the motility of tool set in the page so that user browses during webpage convenient Fast, Consumer's Experience is improved.
The additional aspect of the application and advantage will part be given in the following description, and part will become bright from the following description Aobvious, or recognized by the practice of the application.
Accompanying drawing explanation
Above-mentioned and/or the additional aspect of the application and advantage the accompanying drawings below description to embodiment will be apparent from from combining and Easy to understand, wherein:
Fig. 1 is the flow chart of the generation method of the page according to one embodiment of the application;
Fig. 2 is the page schematic diagram with floor navigational tool according to one embodiment of the application;
Fig. 3 is the flow chart of the generation method of the page according to another embodiment of the application;
Fig. 4 is the flow chart of the generation method of the page according to another embodiment of the application;
Fig. 5 is the structural representation of the generating means of the page according to one embodiment of the application;
Fig. 6 is the structural representation of the generating means of the page according to another embodiment of the application;
Fig. 7 is the structural representation of the generating means of the page according to another embodiment of the application.
Detailed description of the invention
Embodiments herein is described below in detail, and the example of described embodiment is shown in the drawings, the most identical or Similar label represents same or similar element or has the element of same or like function.Describe below with reference to accompanying drawing Embodiment is exemplary, is only used for explaining the application, and it is not intended that restriction to the application.
In the description of the present application, it is to be understood that term " first ", " second " are only used for describing purpose, and are not understood that For instruction or hint relative importance.
Below with reference to the accompanying drawings the generation method and apparatus of the page according to the embodiment of the present application is described.
Fig. 1 is the flow chart of the generation method of the page according to one embodiment of the application.
The method is applied to server, as it is shown in figure 1, the generation method of the page according to the embodiment of the present application, including following step Suddenly.
S101, server obtains the page request that browser sends.
Specifically, when user activates a web page interlinkage in a browser, as clicked on a web page interlinkage or in Web address field The address informations such as the network address of input page or URL (Uniform Resource Locator, same URLs) address, and Triggered when entering webpage corresponding to this address information by carriage return or other modes, browser will send the page to server please Ask.Now, server will get the page request that browser sends.Wherein, page request includes the address letter of the page Breath, such as network address, URL address etc..
S102, obtains the page data that page request is corresponding.
Specifically, server is after obtaining the page request that browser sends, and it is right to obtain according to the address information in page request The page data answered.Wherein, web data can be HTML (Hyper Text Markup Language, HTML) File.
Wherein, page data has the tool properties switch of correspondence.Tool properties switch is used for identifying whether to need to activate in the page In corresponding instrument, i.e. identified page, corresponding instrument is the need of automatically generating.Tool properties switch can be multiple, the most right Answer different instruments.Wherein, the state of each tool properties switch can be pre-set by user, thus facilitates user to control whether Corresponding instrument is provided in the page.Specifically, the state of tool properties switch is storable in the configuration file corresponding with this user In, when the state that user controls tool properties switch changes, configuration file corresponding to user is updated the most accordingly. Thus, the instrument in the page can be controlled by the configuration file that corresponding user is corresponding, can be by the configuration literary composition of amendment user In part, whether the state of tool properties switch controls in the page offer of instrument, by increasing or deleting in the configuration file of user Tool properties switch control the extension of instrument or the deletion that can activate in the page, there is the strongest autgmentability and motility.
Wherein, may also include the identification information of user in page request, server can obtain corresponding according to the identification information of user Configuration file, thus the state of tool properties switch corresponding to page data is obtained according to this configuration file.The identification information of user Equipment identification information (IMEI (the International Mobile such as mobile phone that ID, account name, user are used can be made Equipment Identity, the country identity code of mobile device)) etc..
For example, tool properties switch may include but be not limited to and navigation bar, page-turning button instrument, top set instrument, search work Tool, share the most corresponding navigation bar attribute switch such as instrument, page turning attribute switch, top set attribute switch, search attribute switch, Share attribute switch etc..Certainly, it is possible to include the tool properties switch that other page tools are corresponding.
S103, if tool properties switch corresponding to page data is for opening, then will switch with tool properties in page data Corresponding instrument activation.
In embodiments herein, server, after obtaining the page data that page request is corresponding, can inquire about the configuration literary composition of user Part is to judge that whether the tool properties that this page data is corresponding switchs as opening.If the tool properties that page data is corresponding is opened Closing is opening, then by instrument activation corresponding for tool properties switch in page data.
In an embodiment of the application, instrument activation corresponding for tool properties switch in page data be may particularly include: clear Look at each DOM (Document Object Model, the DOM Document Object Model) node in page data, and extract DOM The tool properties information that node is corresponding;In page data, the step of the instrument of correspondence is added according to tool properties information.Thus swash The instrument that tool properties switch of living is corresponding.
Wherein, tool properties information refers to the node attribute information corresponding from different instruments.As a example by floor navigation bar, server Each DOM Document Object Model DOM node in page data can be traveled through, the floor navigation corresponding to extract each DOM node Attribute information, then adds floor navigation bar according to described floor navigable attribute information in described page data.Wherein, floor The tool properties information (floor navigable attribute information) that navigation bar is corresponding can include the floor that each DOM node is corresponding the number of plies, Floor content, floor content associate with content of pages.Specifically, each DOM in the browsable page data of server Node, according to the content blocks included in web data determined by DOM node, and the son comprised according to each content blocks The situation (whether quantity, content and sub-block such as sub-block farther include sub-block etc.) of block, and determine therefrom that floor navigation bar The number of plies of the floor comprised, the content of each floor and floor content associate with content of pages, thus obtain floor navigation The tool properties information that hurdle is corresponding.Then, can according to the number of plies of the floor obtained, the content of each floor and floor content with The tool properties information that the floor navigation bars such as the association of content of pages are corresponding adds floor navigational tool in page data.
When the DOM node in page data changes, tool properties information changes the most accordingly, thus, The instrument (as shown content, mode etc.) that server generates according to tool properties information is as well as change, it is ensured that in the page The concordance of instrument and content of pages.
S104, sends page data to browser, so that browser renders page data show the page that page data is corresponding, Wherein, the page has the instrument corresponding with tool properties switch.
Page data after interpolation instrument, after by instrument activation corresponding for tool properties switch in page data, can be sent out by server Deliver to browser.Page data is rendered after receiving page data by browser, and show page data corresponding, tool There is the page of the instrument that above-mentioned tool properties switch is corresponding.
For example, Fig. 2 is the page schematic diagram with floor navigational tool according to one embodiment of the application.Such as Fig. 2 institute Show, on the right side of this page, show floor navigational tool A, steel fine including rubber and plastic, chemical industry, machinery five metals, power for illumination Son, electrician's security protection, prevent, pack, 9 floors of row noise, 9 content of pages in the most corresponding page, wherein, Owing to page area is more than the area of display screen, currently only show in the page wherein 5 content of pages (rubber and plastic, chemical industry essence Carefully, metallurgical steel, machinery five metals instrument, lighting electronic).
In an embodiment of the application, may also include step S105.
S105, if tool properties switch corresponding to page data is for closed mode, then can directly feed back to browse by page data Device.
Specifically, if having one or more for closed mode in multiple tool properties switch, then browser enters according to page data Row renders and shows only has the instrument that tool properties switch is opening in the page that page data is corresponding.If page data Corresponding tool properties switch is closed mode, then browser carries out rendering and show that page data is corresponding according to page data Without instrument in the page.
The generation method of the page of the embodiment of the present application, can obtain corresponding page data according to the page request that browser sends, If the tool properties switch that this page data is corresponding is opening, then by work corresponding for tool properties switch in this page data Tool activates, and page transmission is selected to browser, has the page of instrument corresponding to tool properties switch, nothing with display The page need to be encoded again exploitation and the instrument being easy to page browsing can be provided automatically in the page, reduce development cost. Additionally, whether the state switched by tool properties controls the activation of instrument, thus improve in the page autgmentability of tool set and Motility so that user browses during webpage more convenient, improves Consumer's Experience.
Fig. 3 is the flow chart of the generation method of the page according to another embodiment of the application.
As it is shown on figure 3, the generation method of the page according to the embodiment of the present application, comprise the following steps.
S301, server obtains the page request that browser sends.
Specifically, when user activates a web page interlinkage in a browser, as clicked on a web page interlinkage or in Web address field The address informations such as the network address of input page or URL (Uniform Resource Locator, same URLs) address, and Triggered when entering webpage corresponding to this address information by carriage return or other modes, browser will send the page to server please Ask.Now, server will get the page request that browser sends.Wherein, page request includes the address letter of the page Breath, such as network address, URL address etc..
S302, obtains the page data that page request is corresponding.
Specifically, server is after obtaining the page request that browser sends, and it is right to obtain according to the address information in page request The page data answered.Wherein, web data can be HTML (Hyper Text Markup Language, HTML) File.
Wherein, page data has the tool properties switch of correspondence.Tool properties switch is used for identifying whether to need to activate in the page In corresponding instrument, i.e. identified page, corresponding instrument is the need of automatically generating.Tool properties switch can be multiple, the most right Answer different instruments.Wherein, the state of each tool properties switch can be pre-set by user, thus facilitates user to control whether Corresponding instrument is provided in the page.Specifically, the state of tool properties switch is storable in the configuration file corresponding with this user In, when the state that user controls tool properties switch changes, configuration file corresponding to user is updated the most accordingly.
Wherein, may also include the identification information of user in page request, server can obtain corresponding according to the identification information of user Configuration file, thus the state of tool properties switch corresponding to page data is obtained according to this configuration file.The identification information of user Equipment identification information (IMEI (the International Mobile such as mobile phone that ID, account name, user are used can be made Equipment Identity, the country identity code of mobile device)) etc..
For example, tool properties switch may include but be not limited to and navigation bar, page-turning button instrument, top set instrument, search work Tool, share the most corresponding navigation bar attribute switch such as instrument, page turning attribute switch, top set attribute switch, search attribute switch, Share attribute switch etc..Certainly, it is possible to include the tool properties switch that other page tools are corresponding.
S303, if tool properties switch corresponding to page data is for opening, then will switch with tool properties in page data Corresponding instrument activation.
In embodiments herein, server, after obtaining the page data that page request is corresponding, can inquire about the configuration literary composition of user Part is to judge that whether the tool properties that this page data is corresponding switchs as opening.If the tool properties that page data is corresponding is opened Closing is opening, then by instrument activation corresponding for tool properties switch in page data.
In an embodiment of the application, instrument activation corresponding for tool properties switch in page data be may particularly include: clear Look at each DOM (Document Object Model, the DOM Document Object Model) node in page data, and extract DOM The tool properties information that node is corresponding;In page data, the step of the instrument of correspondence is added according to tool properties information.Thus swash The instrument that tool properties switch of living is corresponding.
Wherein, tool properties information refers to the node attribute information corresponding from different instruments.As a example by floor navigation bar, server Each DOM Document Object Model DOM node in page data can be traveled through, the floor navigation corresponding to extract each DOM node Attribute information, then adds floor navigation bar according to described floor navigable attribute information in described page data.Wherein, floor The tool properties information (floor navigable attribute information) that navigation bar is corresponding can include the floor that each DOM node is corresponding the number of plies, Floor content, floor content associate with content of pages.Specifically, each DOM in the browsable page data of server Node, according to the content blocks included in web data determined by DOM node, and the son comprised according to each content blocks The situation (whether quantity, content and sub-block such as sub-block farther include sub-block etc.) of block, and determine therefrom that floor navigation bar The number of plies of the floor comprised, the content of each floor and floor content associate with content of pages, thus obtain floor navigation The tool properties information that hurdle is corresponding.Then, can according to the number of plies of the floor obtained, the content of each floor and floor content with The tool properties information that the floor navigation bars such as the association of content of pages are corresponding adds floor navigational tool in page data.
S304, sends page data to browser, so that browser renders page data show the page that page data is corresponding, Wherein, the page has the instrument corresponding with tool properties switch.
Page data after interpolation instrument, after by instrument activation corresponding for tool properties switch in page data, can be sent out by server Deliver to browser.Page data is rendered after receiving page data by browser, and show page data corresponding, tool There is the page of the instrument that above-mentioned tool properties switch is corresponding.
For example, Fig. 2 is the page schematic diagram with floor navigational tool according to one embodiment of the application.Such as Fig. 2 institute Show, on the right side of this page, show floor navigational tool A, steel fine including rubber and plastic, chemical industry, machinery five metals, power for illumination Son, electrician's security protection, prevent, pack, 9 floors of row noise, 9 content of pages in the most corresponding page, wherein, Owing to page area is more than the area of display screen, currently only show in the page wherein 5 content of pages (rubber and plastic, chemical industry essence Carefully, metallurgical steel, machinery five metals instrument, lighting electronic).
S305, if tool properties switch corresponding to page data is for closed mode, then can directly feed back to browse by page data Device.
Specifically, if having one or more for closed mode in multiple tool properties switch, then browser enters according to page data Row renders and shows only has the instrument that tool properties switch is opening in the page that page data is corresponding.If page data Corresponding tool properties switch is closed mode, then browser carries out rendering and show that page data is corresponding according to page data Without instrument in the page.
S306, provides the button of deletion instrument in the page.
For example, as in figure 2 it is shown, in Fig. 2 button B be delete floor navigational tool button.Pressing shown in Fig. 2 Key-like formula is exemplary only, should not be construed as the restriction to the application.
S307, when button is triggered by user, revises the state of tool properties switch corresponding to user according to the trigger action of user.
Specifically, when the button deleting an instrument is triggered by user, can be by corresponding for this instrument in the configuration file of this user The status modifier of tool properties switch is revised as closed mode by opening, and is removed from this page by this instrument.Further, When user asks this page again, then the page will no longer have that this instrument, until user is by tool properties corresponding for this instrument The status modifier of switch is opening.
The generation method of the page of the embodiment of the present application, can provide the button of deletion instrument, when this button is touched by user in the page When sending out, the state of tool properties switch corresponding to this user can be revised according to the trigger action of user such that it is able to flexibly and easily Instrument in the page is controlled, improves Consumer's Experience further.
In order to realize above-described embodiment, the application also proposes the generation method of the another kind of page.The method is applied to browser.
Fig. 4 is the flow chart of the generation method of the page according to another embodiment of the application.
As shown in Figure 4, the generation method of this page, comprise the following steps.
S401, browser sends page request to server.
Specifically, when user activates a web page interlinkage in a browser, as clicked on a web page interlinkage or in Web address field The address informations such as the network address of input page or URL (Uniform Resource Locator, same URLs) address, and Triggered when entering webpage corresponding to this address information by carriage return or other modes, browser will send the page to server please Ask.Wherein, page request includes the address information of the page, such as network address, URL address etc..
S402, receives the page data that server returns.
S403, renders page data and shows the page that page data is corresponding.
Wherein, if tool properties switch corresponding to page data is for opening, then it is right with tool properties switch to have in the page The instrument answered.
Server, after receiving the page request that browser sends, can obtain corresponding page according to the address information in page request Face data.Wherein, web data can be HTML (Hyper Text Markup Language, HTML) file.
Wherein, page data has the tool properties switch of correspondence.Tool properties switch can be multiple, the most corresponding different work Tool.Wherein, the state of each tool properties switch can be pre-set by user, thus facilitate user to control whether in the page and carry For corresponding instrument.Specifically, the state of tool properties switch is storable in the configuration file corresponding with this user, works as user Controlling the state of tool properties switch when changing, configuration file corresponding to user is updated the most accordingly.Thus, the page In instrument can be controlled by the configuration file that corresponding user is corresponding, can by amendment user configuration file in instrument belong to Property switch state whether control in the page offer of instrument, by increasing or deleting the tool properties in the configuration file of user Switch controls the extension of instrument or the deletion that can activate in the page, has the strongest autgmentability and motility.
For example, tool properties switch may include but be not limited to and navigation bar, page-turning button instrument, top set instrument, search work Tool, share the most corresponding navigation bar attribute switch such as instrument, page turning attribute switch, top set attribute switch, search attribute switch, Share attribute switch etc..Certainly, it is possible to include the tool properties switch that other page tools are corresponding.
Wherein, may also include the identification information of user in page request, server can obtain corresponding according to the identification information of user Configuration file, thus the state of tool properties switch corresponding to page data is obtained according to this configuration file.The identification information of user Equipment identification information (IMEI (the International Mobile such as mobile phone that ID, account name, user are used can be made Equipment Identity, the country identity code of mobile device)) etc..
In embodiments herein, server, after obtaining the page data that page request is corresponding, can inquire about the configuration literary composition of user Part is to judge that whether the tool properties that this page data is corresponding switchs as opening.If the tool properties that page data is corresponding is opened Closing is opening, then will switch corresponding instrument activation with tool properties in page data.If the page that browser receives Instrument activation corresponding with tool properties switch in data, then have corresponding with tool properties switch in the page of browser display Instrument.
If additionally, tool properties switch corresponding to page data is for closed mode, then can directly feed back to browse by page data Device, browser carries out rendering and showing in the page that page data is corresponding without instrument according to page data.
The generation method of the page of the embodiment of the present application, browser can send page request to server, and to the service received Device return page data render after show correspondence the page, if this page data corresponding tool properties switch for open State, then have the instrument corresponding with tool properties switch, thus develop without again encoding the page in this page The instrument being easy to page browsing is provided automatically in the page, reduces development cost.Additionally, the state switched by tool properties Whether the activation of control instrument, thus improves autgmentability and the motility of tool set in the page so that when user browses webpage more Add convenient and swift, improve Consumer's Experience.
In order to realize above-described embodiment, the application also proposes the generating means of a kind of page.This device can be applicable to server.
Fig. 5 is the structural representation of the generating means of the page according to one embodiment of the application.
As it is shown in figure 5, the generating means of the page according to the embodiment of the present application, including: the first acquisition module 110, second obtain Delivery block 120, active module 130 and sending module 140.
Specifically, the first acquisition module 110 is for obtaining the page request that browser sends.
More specifically, when user activates a web page interlinkage in a browser, as clicked on a web page interlinkage or at Web address field The address informations such as the network address of middle input page or URL (Uniform Resource Locator, same URLs) address, And being triggered when entering webpage corresponding to this address information by carriage return or other modes, browser will send page request.This Time, the first acquisition module 110 can get the page request that browser sends.Wherein, page request includes the address of the page Information, such as network address, URL address etc..
Second acquisition module 120 is for obtaining the page data that page request is corresponding.
More specifically, after the first acquisition module 110 obtains the page request that browser sends, the second acquisition module 120 can root Corresponding page data is obtained according to the address information in page request.Wherein, web data can be HTML (Hyper Text Markup Language, HTML) file.
Wherein, page data has the tool properties switch of correspondence.Tool properties switch is used for identifying whether to need to activate in the page In corresponding instrument, i.e. identified page, corresponding instrument is the need of automatically generating.Tool properties switch can be multiple, the most right Answer different instruments.Wherein, the state of each tool properties switch can be pre-set by user, thus facilitates user to control whether Corresponding instrument is provided in the page.Specifically, the state of tool properties switch is storable in the configuration file corresponding with this user In, when the state that user controls tool properties switch changes, configuration file corresponding to user is updated the most accordingly.
For example, tool properties switch may include but be not limited to and navigation bar, page-turning button instrument, top set instrument, search work Tool, share the most corresponding navigation bar attribute switch such as instrument, page turning attribute switch, top set attribute switch, search attribute switch, Share attribute switch etc..Certainly, it is possible to include the tool properties switch that other page tools are corresponding.
Instrument in page data, when the tool properties corresponding at page data switchs as opening, is belonged to by active module 130 Property instrument activation corresponding to switch.
In embodiments herein, after the second acquisition module 120 obtains the page data that page request is corresponding, active module 130 can inquire about the configuration file of user to judge that whether the tool properties that this page data is corresponding switchs as opening.If page Tool properties switch corresponding to face data is for opening, then by instrument activation corresponding for tool properties switch in page data.
Wherein, may also include the identification information of user in page request, active module 130 can obtain according to the identification information of user Corresponding configuration file, thus the state of tool properties switch corresponding to page data is obtained according to this configuration file.The mark of user Knowledge information can make the equipment identification information (IMEI (International such as mobile phone that ID, account name, user are used Mobile Equipment Identity, the country identity code of mobile device)) etc..
In an embodiment of the application, active module 130 is specifically for each DOM in browsing pages data (Document Object Model, DOM Document Object Model) node, and extract the tool properties information that DOM node is corresponding; In page data, the instrument of correspondence is added according to tool properties information.Thus activate the instrument that tool properties switch is corresponding.
Wherein, tool properties information refers to the node attribute information corresponding from different instruments.As a example by floor navigation bar, server Each DOM Document Object Model DOM node in page data can be traveled through, the floor navigation corresponding to extract each DOM node Attribute information, then adds floor navigation bar according to described floor navigable attribute information in described page data.Wherein, floor The tool properties information (floor navigable attribute information) that navigation bar is corresponding can include the floor that each DOM node is corresponding the number of plies, Floor content, floor content associate with content of pages.Specifically, each in the browsable page data of active module 130 DOM node, according to the content blocks included in web data determined by DOM node, and is wrapped according to each content blocks The situation (whether quantity, content and sub-block such as sub-block farther include sub-block etc.) of the sub-block contained, and determine therefrom that floor The number of plies of the floor that navigation bar is comprised, the content of each floor and floor content associate with content of pages, thus obtain building The tool properties information that layer navigation bar is corresponding.Then, can be according to the number of plies of the floor obtained, the content of each floor and floor The content tool properties information corresponding with floor navigation bars such as the associations of content of pages adds floor navigational tool in page data.
Sending module 140 is for sending page data to browser, so that browser renders page data show page data The corresponding page, wherein, has the instrument corresponding with tool properties switch in the page.
After active module 130 is by instrument activation corresponding for tool properties switch in page data, sending module 140 can will add Page data after instrument sends to browser.Page data is rendered after receiving page data by browser, and shows The page that page data is corresponding, have instrument corresponding to above-mentioned tool properties switch.
For example, Fig. 2 is the page schematic diagram with floor navigational tool according to one embodiment of the application.Such as Fig. 2 institute Show, on the right side of this page, show floor navigational tool A, steel fine including rubber and plastic, chemical industry, machinery five metals, power for illumination Son, electrician's security protection, prevent, pack, 9 floors of row noise, 9 content of pages in the most corresponding page, wherein, Owing to page area is more than the area of display screen, currently only show in the page wherein 5 content of pages (rubber and plastic, chemical industry essence Carefully, metallurgical steel, machinery five metals instrument, lighting electronic).
In an embodiment of the application, sending module 140 is additionally operable to when the tool properties switch that page data is corresponding is cut out During state, directly page data is fed back to browser.If more specifically, multiple tool properties switch having one or more For closed mode, then browser carries out rendering and show only have tool properties in the page that page data is corresponding according to page data Switch is the instrument of opening.If the tool properties switch that page data is corresponding is closed mode, then browser is according to page Face data carry out rendering and showing in the page that page data is corresponding without instrument.
The generating means of the page of the embodiment of the present application, can obtain corresponding page data according to the page request that browser sends, If the tool properties switch that this page data is corresponding is opening, then by work corresponding for tool properties switch in this page data Tool activates, and page transmission is selected to browser, has the page of instrument corresponding to tool properties switch, nothing with display The page need to be encoded again exploitation and the instrument being easy to page browsing can be provided automatically in the page, reduce development cost. Additionally, whether the state switched by tool properties controls the activation of instrument, thus improve in the page autgmentability of tool set and Motility so that user browses during webpage more convenient, improves Consumer's Experience.
Fig. 6 is the structural representation of the generating means of the page according to another embodiment of the application.
As shown in Figure 6, according to the generating means of the page of the embodiment of the present application, including: the first acquisition module 110, second obtain Delivery block 120, active module 130, sending module 140, offer module 150 and modified module 160.
Specifically, first acquisition module the 110, second acquisition module 120, active module 130 and sending module 140 can refer to Embodiment illustrated in fig. 5, does not repeats them here.
There is provided module 150 at browser renders page data and after showing the page that page data is corresponding, carrying in the page Button for deletion instrument.For example, as in figure 2 it is shown, in Fig. 2 button B be delete floor navigational tool button. Button form shown in Fig. 2 is exemplary only, should not be construed as the restriction to the application.
Modified module 160, for when button is triggered by user, revises, according to the trigger action of user, the tool properties that user is corresponding The state of switch.
More specifically, when the button deleting an instrument is triggered by user, modified module 160 can be by the configuration file of this user In the status modifier of tool properties switch corresponding to this instrument be revised as closed mode by opening, and by this instrument from this page Middle removal.Further, when user asks this page again, then the page will no longer have that this instrument, until user is by this instrument The status modifier of corresponding tool properties switch is opening.
The generating means of the page of the embodiment of the present application, can provide the button of deletion instrument, when this button is touched by user in the page When sending out, the state of tool properties switch corresponding to this user can be revised according to the trigger action of user such that it is able to flexibly and easily Instrument in the page is controlled, improves Consumer's Experience further.
In order to realize above-described embodiment, the application also proposes the generating means of the another kind of page.This device can be applicable to browser.
Fig. 7 is the structural representation of the generating means of the page according to another embodiment of the application.
As it is shown in fig. 7, the generating means of this page includes: sending module 210, receiver module 220 and display module 230.
Specifically, sending module 210 is for sending page request to server.
More specifically, when user activates a web page interlinkage in a browser, as clicked on a web page interlinkage or at Web address field The address informations such as the network address of middle input page or URL (Uniform Resource Locator, same URLs) address, And being triggered when entering webpage corresponding to this address information by carriage return or other modes, sending module 210 will be sent out to server Send page request.Wherein, page request includes the address information of the page, such as network address, URL address etc..
Receiver module 220 is for receiving the page data that described server returns.
Display module 230 is for rendering described page data and showing the page that described page data is corresponding.
Wherein, if tool properties switch corresponding to described page data is for opening, the most described page has and described work The instrument that tool attribute switch is corresponding.
Server, after receiving the page request that browser sends, can obtain corresponding page according to the address information in page request Face data.Wherein, web data can be HTML (Hyper Text Markup Language, HTML) file.
Wherein, page data has the tool properties switch of correspondence.Tool properties switch can be multiple, the most corresponding different work Tool.Wherein, the state of each tool properties switch can be pre-set by user, thus facilitate user to control whether in the page and carry For corresponding instrument.Specifically, the state of tool properties switch is storable in the configuration file corresponding with this user, works as user Controlling the state of tool properties switch when changing, configuration file corresponding to user is updated the most accordingly.Thus, the page In instrument can be controlled by the configuration file that corresponding user is corresponding, can by amendment user configuration file in instrument belong to Property switch state whether control in the page offer of instrument, by increasing or deleting the tool properties in the configuration file of user Switch controls the extension of instrument or the deletion that can activate in the page, has the strongest autgmentability and motility.
For example, tool properties switch may include but be not limited to and navigation bar, page-turning button instrument, top set instrument, search work Tool, share the most corresponding navigation bar attribute switch such as instrument, page turning attribute switch, top set attribute switch, search attribute switch, Share attribute switch etc..Certainly, it is possible to include the tool properties switch that other page tools are corresponding.
Wherein, may also include the identification information of user in page request, server can obtain corresponding according to the identification information of user Configuration file, thus the state of tool properties switch corresponding to page data is obtained according to this configuration file.The identification information of user Equipment identification information (IMEI (the International Mobile such as mobile phone that ID, account name, user are used can be made Equipment Identity, the country identity code of mobile device)) etc..
In embodiments herein, server, after obtaining the page data that page request is corresponding, can inquire about the configuration literary composition of user Part is to judge that whether the tool properties that this page data is corresponding switchs as opening.If the tool properties that page data is corresponding is opened Closing is opening, then will switch corresponding instrument activation with tool properties in page data.If receiver module 220 receives Page data in tool properties instrument activation corresponding to switch, then the page of display module 230 display has and instrument genus Property instrument corresponding to switch.
If additionally, tool properties switch corresponding to page data is for closed mode, then can directly feed back to browse by page data Device, display module 230 carries out rendering and showing in the page that page data is corresponding without instrument according to page data.
The generating means of the page of the embodiment of the present application, can send page request to server, and return the server received Page data render after show the page of correspondence, if tool properties switch corresponding to this page data is for opening, This page then has the instrument corresponding with tool properties switch, thus can automatically exist without the page being encoded again exploitation The page provides the instrument being easy to page browsing, reduces development cost.Additionally, the state control work switched by tool properties Whether the activation of tool, thus improves autgmentability and the motility of tool set in the page so that user browses during webpage convenient Fast, Consumer's Experience is improved.
Any process described otherwise above or method describe and are construed as in flow chart or at this, represent include one or The module of code, fragment or the part of the executable instruction of the more steps for realizing specific logical function or process, and The scope of the preferred implementation of the application includes other realization, wherein can not be by order that is shown or that discuss, including root According to involved function by basic mode simultaneously or in the opposite order, performing function, this should be by embodiments herein institute Belong to those skilled in the art to be understood.
Represent in flow charts or the logic described otherwise above at this and/or step, for example, it is possible to be considered as reality The sequencing list of the executable instruction of existing logic function, may be embodied in any computer-readable medium, holds for instruction Row system, device or equipment (system such as computer based system, including processor or other can from instruction execution system, Device or equipment instruction fetch also perform the system of instruction) use, or combine these instruction execution systems, device or equipment and use. For the purpose of this specification, " computer-readable medium " can be any can comprise, store, communicate, propagate or transmission procedure with For instruction execution system, device or equipment or combine these instruction execution systems, device or equipment and device.Computer The more specifically example (non-exhaustive list) of computer-readable recording medium includes following: have the electrical connection section (electricity of one or more wiring Sub-device), portable computer diskette box (magnetic device), random access memory (RAM), read only memory (ROM), Erasable edit read only memory (EPROM or flash memory), fiber device, and the read-only storage of portable optic disk Device (CDROM).It addition, computer-readable medium can even is that and can print the paper of described program thereon or other are suitable Medium, because then can carry out editing, interpreting or if desired with it such as by paper or other media are carried out optical scanning His suitable method is processed to electronically obtain described program, is then stored in computer storage.
Should be appreciated that each several part of the application can realize by hardware, software, firmware or combinations thereof.In above-mentioned enforcement In mode, multiple steps or method can be with storing the software or firmware that in memory and be performed by suitable instruction execution system Realize.Such as, if realized with hardware, with the most the same, available following technology well known in the art In any one or their combination realize: have and patrol for the discrete of logic gates that data signal is realized logic function Collect circuit, there is the special IC of suitable combination logic gate circuit, programmable gate array (PGA), field-programmable Gate array (FPGA) etc..
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is can Completing instructing relevant hardware by program, described program can be stored in a kind of computer-readable recording medium, should Program upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, each functional unit in each embodiment of the application can be integrated in a processing module, it is also possible to be each Unit is individually physically present, it is also possible to two or more unit are integrated in a module.Above-mentioned integrated module is the most permissible The form using hardware realizes, it would however also be possible to employ the form of software function module realizes.If described integrated module is with software merit Can the form of module realize and as independent production marketing or when using, it is also possible to be stored in the storage of embodied on computer readable and be situated between In matter.
Storage medium mentioned above can be read only memory, disk or CD etc..
In the description of this specification, reference term " embodiment ", " some embodiments ", " example ", " concrete example ", Or specific features, structure, material or the feature that the description of " some examples " etc. means to combine this embodiment or example describes comprises In at least one embodiment or example of the application.In this manual, the schematic representation to above-mentioned term not necessarily refers to It is identical embodiment or example.And, the specific features of description, structure, material or feature can at any one or Multiple embodiments or example combine in an appropriate manner.
While there has been shown and described that embodiments herein, it will be understood by those skilled in the art that: without departing from this These embodiments can be carried out multiple change in the case of the principle of application and objective, revise, replace and modification, the application's Scope is limited by claim and equivalent thereof.

Claims (18)

1. a generation method for the page, is applied to server, it is characterised in that comprise the following steps:
Described server obtains the page request that browser sends;
Obtain the page data that described page request is corresponding;
If the tool properties switch that described page data is corresponding is opening, then will described page data belong to described instrument Property instrument activation corresponding to switch;And
Described page data is sent to described browser, so that page data described in described browser renders show the described page The page that data are corresponding, wherein, has the instrument corresponding with described tool properties switch in the described page.
2. the generation method of the page as claimed in claim 1, it is characterised in that at page number described in described browser renders According to and after showing the page that described page data is corresponding, also include:
The button deleting described instrument is provided in the described page;And
When described button is triggered by user, revise the shape of tool properties switch corresponding to described user according to the trigger action of user State.
3. the generation method of the page as claimed in claim 2, it is characterised in that the state storage of described tool properties switch In the configuration file corresponding with described user.
4. the generation method of the page as claimed in claim 1, it is characterised in that described by work described in described page data The instrument activation that tool attribute switch is corresponding specifically includes:
Browse each DOM node in described page data, and extract the tool properties information that described DOM node is corresponding;
In described page data, the instrument of correspondence is added according to described tool properties information.
5. the generation method of the page as claimed in claim 1, it is characterised in that described tool properties switch, for multiple, divides The most corresponding different instrument.
6. the generation method of the page as claimed in claim 1, it is characterised in that the instrument that described tool properties switch is corresponding For floor navigation bar, described instrument activation corresponding with described tool properties switch in described page data is specifically included:
Each DOM Document Object Model DOM node in traversal page data, leads with the floor extracting each DOM node corresponding Boat attribute information;
In described page data, floor navigation bar is added according to described floor navigable attribute information.
7. the generation method of the page as claimed in claim 6, it is characterised in that described floor navigable attribute information includes building The relation information of the number of plies of layer, floor content, floor content and DOM node content.
8. the generation method of the page as claimed in claim 1, it is characterised in that also include:
If the tool properties switch that described page data is corresponding is closed mode, then directly described page data is fed back to described Browser.
9. a generation method for the page, is applied to browser, it is characterised in that comprise the following steps:
Described browser sends page request to server;
Receive the page data that described server returns;
Described render described page data and show the page that described page data is corresponding;
Wherein, if tool properties switch corresponding to described page data is for opening, the most described page has and described work The instrument that tool attribute switch is corresponding.
10. the generating means of a page, it is characterised in that including:
First acquisition module, for obtaining the page request that browser sends;
Second acquisition module, for obtaining the page data that described page request is corresponding;
Active module, when the tool properties corresponding at described page data switchs as opening, by described page data The instrument activation corresponding with described tool properties switch;And
Sending module, for described page data is sent to described browser, so that page data described in described browser renders And show the page that described page data is corresponding, wherein, the described page has the instrument corresponding with described tool properties switch.
The generating means of 11. pages as claimed in claim 10, it is characterised in that also include:
Module is provided, at page data described in described browser renders and after showing the page that described page data is corresponding, The button deleting described instrument is provided in the described page;And
Modified module, for when described button is triggered by user, revises, according to the trigger action of user, the work that described user is corresponding The state of tool attribute switch.
The generating means of 12. pages as claimed in claim 11, it is characterised in that the state of described tool properties switch is deposited In the configuration file that user described in Chu Yu is corresponding.
The generating means of 13. pages as claimed in claim 10, it is characterised in that described active module specifically for:
Browse each DOM node in described page data, and extract the tool properties information that described DOM node is corresponding;
In described page data, the instrument of correspondence is added according to described tool properties information.
The generating means of 14. pages as claimed in claim 10, it is characterised in that described tool properties switch is multiple, The most corresponding different instrument.
The generating means of 15. pages as claimed in claim 10, it is characterised in that the work that described tool properties switch is corresponding Tool for floor navigation bar, described active module specifically for:
Each DOM Document Object Model DOM node in traversal page data, leads with the floor extracting each DOM node corresponding Boat attribute information;
In described page data, floor navigation bar is added according to described floor navigable attribute information.
The generating means of 16. pages as claimed in claim 15, it is characterised in that described floor navigable attribute information includes The number of plies of floor, floor content, floor content and the relation information of DOM node content.
The generating means of 17. pages as claimed in claim 10, it is characterised in that described sending module is additionally operable to when described When the tool properties switch that page data is corresponding is closed mode, directly described page data is fed back to described browser.
The generating means of 18. 1 kinds of pages, it is characterised in that including:
Sending module, for sending page request to server;
Receiver module, for receiving the page data that described server returns;
Display module, for rendering described page data and showing the page that described page data is corresponding;
Wherein, if tool properties switch corresponding to described page data is for opening, the most described page has and described work The instrument that tool attribute switch is corresponding.
CN201510301154.9A 2015-06-04 2015-06-04 The generation method and apparatus of the page Pending CN106294475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510301154.9A CN106294475A (en) 2015-06-04 2015-06-04 The generation method and apparatus of the page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510301154.9A CN106294475A (en) 2015-06-04 2015-06-04 The generation method and apparatus of the page

Publications (1)

Publication Number Publication Date
CN106294475A true CN106294475A (en) 2017-01-04

Family

ID=57655286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510301154.9A Pending CN106294475A (en) 2015-06-04 2015-06-04 The generation method and apparatus of the page

Country Status (1)

Country Link
CN (1) CN106294475A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021365A (en) * 2017-11-30 2018-05-11 深圳市椰壳信息科技有限公司 Intelligent electrical appliance control, device and computer-readable recording medium
CN111142774A (en) * 2019-12-26 2020-05-12 网易(杭州)网络有限公司 Page display method and device
CN112905448A (en) * 2021-01-25 2021-06-04 长沙市到家悠享网络科技有限公司 Nested page performance test method, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034517A (en) * 2012-12-14 2013-04-10 北京奇虎科技有限公司 Method and device for loading browser control tool
CN103218425A (en) * 2013-04-03 2013-07-24 北京奇虎科技有限公司 Method and device for processing browser extension items
CN103365877A (en) * 2012-03-29 2013-10-23 百度在线网络技术(北京)有限公司 Method and server for making directory after webpage is transcoded
CN103491116A (en) * 2012-06-12 2014-01-01 深圳市世纪光速信息技术有限公司 Method and device for processing text-related structural data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365877A (en) * 2012-03-29 2013-10-23 百度在线网络技术(北京)有限公司 Method and server for making directory after webpage is transcoded
CN103491116A (en) * 2012-06-12 2014-01-01 深圳市世纪光速信息技术有限公司 Method and device for processing text-related structural data
CN103034517A (en) * 2012-12-14 2013-04-10 北京奇虎科技有限公司 Method and device for loading browser control tool
CN103218425A (en) * 2013-04-03 2013-07-24 北京奇虎科技有限公司 Method and device for processing browser extension items

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021365A (en) * 2017-11-30 2018-05-11 深圳市椰壳信息科技有限公司 Intelligent electrical appliance control, device and computer-readable recording medium
CN111142774A (en) * 2019-12-26 2020-05-12 网易(杭州)网络有限公司 Page display method and device
CN112905448A (en) * 2021-01-25 2021-06-04 长沙市到家悠享网络科技有限公司 Nested page performance test method, equipment and storage medium

Similar Documents

Publication Publication Date Title
KR100490734B1 (en) Annotation-based automatic document generation apparatus and method
KR101608099B1 (en) Simultaneous collaborative review of a document
CN104412249A (en) File handling within a cloud-based file system
KR20110038643A (en) Exposing non-authoring features through document status information in an out-space user interface
CN103136342B (en) The searching method of application A PP, system and search server
CN103198074A (en) Page design method and system for dynamic publishing website
CN103064738A (en) Method and system for embedding local application program window into browser in Linux
CN106294475A (en) The generation method and apparatus of the page
CN104142774A (en) Page content processing method and page content processing device
CN105069037A (en) Search content display method and apparatus
Pribeanu et al. Municipal web sites accessibility and usability for blind users: preliminary results from a pilot study
CN112732246A (en) Data visualization method and device based on HTML template and electronic equipment
US8495521B2 (en) Relationship map generator
US20180329920A1 (en) Portal connected to a social backend
JPWO2004111877A1 (en) Information processing method and apparatus, and program thereof
CN103150339A (en) Method and system for providing product specifications and main book server
US9626445B2 (en) Search results modulator
CN104699836A (en) Multi-keyword search prompting method and multi-keyword search prompting device
CN103593481A (en) Method and device for processing internet webpage content
CN104252288A (en) Browser and multi-label-page control method thereof
CN109101429A (en) A kind of method and device of the browser page debugging of set-top box
KR100261265B1 (en) Apparatus for making a web document and method of operating it
JP2006127531A (en) Method for acquiring information on network at high speed, and its system
US10372764B2 (en) Extending document editors to assimilate documents returned by a search engine
US20090248673A1 (en) Method of sorting web pages, search terminal and client terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination