CN109871501A - Page display method, device, computer readable storage medium and computer equipment - Google Patents

Page display method, device, computer readable storage medium and computer equipment Download PDF

Info

Publication number
CN109871501A
CN109871501A CN201910180586.7A CN201910180586A CN109871501A CN 109871501 A CN109871501 A CN 109871501A CN 201910180586 A CN201910180586 A CN 201910180586A CN 109871501 A CN109871501 A CN 109871501A
Authority
CN
China
Prior art keywords
page
user
agent identification
layout
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910180586.7A
Other languages
Chinese (zh)
Other versions
CN109871501B (en
Inventor
樊林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910180586.7A priority Critical patent/CN109871501B/en
Publication of CN109871501A publication Critical patent/CN109871501A/en
Application granted granted Critical
Publication of CN109871501B publication Critical patent/CN109871501B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

This application involves a kind of page display method, device, computer readable storage medium and computer equipments, which comprises obtains the page address of institute's accession page;The corresponding recommended user's agent identification in the page address is inquired, recommended user's agent identification corresponds to the recommendation page layout of the page;Obtain the default user agent identification for initiating to use when the access to the page;When recommended user's agent identification and the default user agent identification are inconsistent, according to recommended user's agent identification and the page address, show and meet the content of pages for recommending page layout.Scheme provided by the present application is not necessarily to identify by manual switching user agent to change page layout, to improve the convenience of the page layout switching of content of pages.

Description

Page display method, device, computer readable storage medium and computer equipment
Technical field
This application involves page data processing technology fields, more particularly to a kind of page display method, device, computer Readable storage medium storing program for executing and computer equipment.
Background technique
With the development of internet technology, there is page data processing technique.In page data processing technique, very much The page is all directed to different show surroundings and has carried out the optimization of page presentation, same content of pages in different show surroundings, It can be laid out different displayed pages, there are some differences in layout.
However, some pages can be directed to different show surroundings, the content of pages in displayed page is limited, so that There are difference for the content of pages shown in different show surroundings, so that this results in content of pages in some show surroundings Show inefficiency.
Summary of the invention
Based on this, it is necessary to for content of pages displaying inefficiency the technical issues of, a kind of page presentation side is provided Method, device, computer readable storage medium and computer equipment.
A kind of page display method, comprising:
Obtain the page address of institute's accession page;
The corresponding recommended user's agent identification in the page address is inquired, recommended user's agent identification corresponds to the page The recommendation page layout in face;
Obtain the default user agent identification for initiating to use when the access to the page;
When recommended user's agent identification and the default user agent identification are inconsistent, according to the recommended user Agent identification and the page address show and meet the content of pages for recommending page layout.
A kind of page presentation device, which is characterized in that described device includes:
Address acquisition module, the page address of accession page for obtaining;
Recommend mark enquiry module, for inquiring the corresponding recommended user's agent identification in the page address, the recommendation User agent identifies the recommendation page layout of the corresponding page;
Initial marking obtains module, for obtaining the default user for initiating to use when the access to page agency's mark Know;
Page presentation module, it is inconsistent for working as recommended user's agent identification and the default user agent identification When, according to recommended user's agent identification and the page address, shows and meet the content of pages for recommending page layout.
A kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor, So that the processor executes following steps:
Obtain the page address of institute's accession page;
The corresponding recommended user's agent identification in the page address is inquired, recommended user's agent identification corresponds to the page The recommendation page layout in face;
Obtain the default user agent identification for initiating to use when the access to the page;
When recommended user's agent identification and the default user agent identification are inconsistent, according to the recommended user Agent identification and the page address show and meet the content of pages for recommending page layout.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the calculating When machine program is executed by the processor, so that the processor executes following steps:
Obtain the page address of institute's accession page;
The corresponding recommended user's agent identification in the page address is inquired, recommended user's agent identification corresponds to the page The recommendation page layout in face;
Obtain the default user agent identification for initiating to use when the access to the page;
When recommended user's agent identification and the default user agent identification are inconsistent, according to the recommended user Agent identification and the page address show and meet the content of pages for recommending page layout.
Above-mentioned page display method, device, computer readable storage medium and computer equipment, access to the page When, inquire the corresponding recommended user's agent identification in page address of institute's accession page.When recommended user's agent identification and initiation pair When default user agent identification when the access of the page is inconsistent, according to the corresponding recommendation page layout of recommended user's agent identification The corresponding content of pages in displayed page address, it is ensured that the page for meeting and recommending page layout is shown in different show surroundings Content changes page layout without identifying by manual switching user agent, to improve the page layout of content of pages The convenience of switching.
Detailed description of the invention
Fig. 1 is the applied environment figure of page display method in one embodiment;
Fig. 2 is the flow diagram of page display method in one embodiment;
The flow diagram for the step of Fig. 3 is displayed page content in one embodiment;
Fig. 4 is flow diagram the step of inquiring recommended user's agent identification in one embodiment;
Fig. 5 is the flow diagram that the step of recommending page layout is determined in one embodiment;
Fig. 6 is the flow diagram of the establishment step of mapping relations in one embodiment;
Fig. 7 is the flow diagram of the generation step of history switching record in one embodiment;
Fig. 8 is flow diagram the step of establishing mapping relations in one embodiment;
Fig. 9 is the page presentation schematic diagram of computerized version in one embodiment;
Figure 10 is the page presentation schematic diagram of mobile phone version in one embodiment;
Figure 11 is the structural block diagram of page presentation device in one embodiment;
Figure 12 is the structural block diagram of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
Fig. 1 is the applied environment figure of page display method in one embodiment.Referring to Fig.1, the page display method application In page presentation system.The page presentation system includes terminal 110 and server 120.Terminal 110 and server 120 pass through net Network connection.Terminal 110 specifically can be terminal console or mobile terminal, and mobile terminal specifically can be with mobile phone, tablet computer, notes At least one of this computer etc..Server 120 can use the server of the either multiple server compositions of independent server Cluster is realized.
As shown in Fig. 2, in one embodiment, providing a kind of page display method.The present embodiment is mainly in this way It is illustrated applied to the terminal 110 in above-mentioned Fig. 1.Referring to Fig. 2, which specifically comprises the following steps:
S202 obtains the page address of institute's accession page.
Specifically, terminal display browser page obtains browser page when triggering page access instruction by browser The page address of typing in face, page address are used for the page of identification access.
In one embodiment, when triggering page access instruction by browser, terminal determines page access instruction pair Determining page address is added to the address typing frame in the browser triggering page, obtained in typing frame by the page address answered The page address of typing.
In one embodiment, terminal intercepts the accessing page request of triggering, parses, passes through to accessing page request The page address in accessing page request is extracted in parsing.
S204, the corresponding recommended user's agent identification in query page address, recommended user's agent identification corresponding page push away Recommend page layout.
Wherein, user agent identifies the mark that (UA, User Agent) is used to identify terminal page show surroundings.It can use In identified page show surroundings browser type, browser version, OS Type, operating system version, in browser At least one of core type and terminal type.Page layout is the version that corresponding displayed page content is identified with user agent Formula.Different user agents identifies corresponding page layout can be different.
Specifically, terminal is acted on behalf of according to page address and recommended user and is closed after getting the page address of accession page The corresponding relationship of system inquires recommended user's agent identification corresponding with the page address got.Recommended user's agent identification is logical It crosses recommended user's agent identification and recommends the corresponding relationship of page layout, it is corresponding with the recommendation page layout of institute accession page.
S206 obtains the default user agent identification for initiating to use when the access to the page.
Specifically, terminal obtains the accessing page request for initiating to access to the page, solves to accessing page request Analysis extracts default user agent identification in accessing page request by parsing.Default user agent identification be terminal to the page into The mark of user agent used by row accesses.
S208 is acted on behalf of according to recommended user and is marked when recommended user's agent identification and default user agent identification are inconsistent Know and page address, displaying meet the content of pages for recommending page layout.
Specifically, recommended user's agent identification is compared by terminal with default user agent identification, when recommended user's generation When reason mark is inconsistent with default user agent identification, according to recommended user's agent identification and page address, acquisition meets recommendation The content of pages of page layout, the content of pages that will acquire are shown according to recommendation page layout.
In one embodiment, when recommended user's agent identification and default user agent identification are inconsistent, acquisition and page The corresponding content of pages in face address shows the page got according to recommendation page layout corresponding with recommended user's agent identification Content.
In one embodiment, when recommended user's agent identification and inconsistent default user agency, according to recommended user Agent identification and page address generate accessing page request, and accessing page request is sent to server.Terminal receives server According to the content of pages that accessing page request returns, page is shown according to recommendation page layout corresponding with recommended user's agent identification Face content.
In the present embodiment, when accessing to the page, the corresponding recommended user in page address of institute's accession page is inquired Agent identification.When recommended user's agent identification and inconsistent default user agent identification when initiating to the access of the page, press According to the corresponding content of pages in the corresponding recommendation page layout displayed page address of recommended user's agent identification, it is ensured that different The content of pages for meeting and recommending page layout is shown in show surroundings, changes page without identifying by manual switching user agent Face layout, to improve the convenience of the page layout switching of content of pages.
As shown in figure 3, in one embodiment, being triggered when default user agent identification is to page initiation access Accessing page request;S208 specifically further includes the steps that displayed page content, which specifically includes the following contents:
Default user agent identification in accessing page request is replaced with recommended user's agent identification by S302.
Specifically, when the accessing page request that terminal is triggered when obtaining and the page being initiated and accessed, to accessing page request It is parsed, the default user agent identification in accessing page request is extracted by parsing.When recommended user's agent identification and write from memory Recognize user agent mark it is inconsistent when, by the default user agent identification in accessing page request replace with recommended user act on behalf of mark Know, obtains the accessing page request by replacement.
S304 is obtained according to the accessing page request by replacement and is met the content of pages for recommending page layout.
Specifically, terminal will be sent to server by the accessing page request of replacement.Server, which receives, met replacement Accessing page request when, to by replacement accessing page request parse, by parse from by replacement the page visit It asks and extracts page address and recommended user's agent identification in request, determination is jointly right with recommended user's agent identification and page iden-tity The recommendation page layout answered, and the content of pages for meeting and recommending page layout is obtained, server will acquire content of pages transmission To terminal.Terminal receive server according to by replacement page access turning back to content of pages.
S306, displayed page content.
Specifically, terminal receive server according to by replacement page access turning back to content of pages, according to Recommendation page layout corresponding with recommended user's agent identification, is shown content of pages.
It, will be to page access when recommended user's agent identification and default user agent identification are inconsistent in the present embodiment Default user agent identification replaces with recommended user's agent identification in request, according to the accessing page request by replacement, obtains Meet the content of pages for recommending page layout corresponding with recommended user's agent identification, be shown to content of pages is got, Guarantee that the content of pages shown meets recommendation page layout, avoiding passing through manual switching recommended user agent identification could be according to pushing away Recommend the case where page layout is shown.
In one embodiment, S208 is specific further include: when recommended user's agent identification and default user agent identification not Unanimously, and page address is corresponding with criterion and clocks, and according to recommended user's agent identification and page address, displaying meets the recommendation page The content of pages of layout.
Wherein, significant notation is used to identify to identify to obtain by switching user agent and meet in the page for recommending page layout Have effect.Invalid flag be used for identify by switching user agent identify obtain meet recommendation page layout content of pages without Effect.
When recommended user's agent identification and default user agent identification are inconsistent, and page address is corresponding with criterion and clocks, Terminal generates accessing page request according to recommended user's agent identification and page address, is obtained according to accessing page request from server Take meet it is corresponding with recommended user's agent identification and page address, meet recommend page layout content of pages.
In one embodiment, content displaying method further include: when recommended user's agent identification and default user agency are marked Know inconsistent, and when page address corresponds to invalid flag, obtain the corresponding recommendation page address in page address, and according to recommending page Face address, which obtains, meets the content of pages for recommending page layout and displaying.
Specifically, when recommended user's agent identification and default user agent identification are inconsistent, and page address is corresponding invalid When label, terminal inquiry recommendation corresponding with page iden-tity page address generates accessing page request according to recommendation page address, Accessing page request is sent to server.Server according to the recommendation page address in accessing page request, inquiry meet with Recommend the corresponding content of pages for recommending page layout in page address, the content of pages inquired is sent to terminal.Terminal connects The content of pages corresponding with page address is recommended that server returns is received, content of pages is shown according to recommendation content of pages.
In the present embodiment, when recommended user's agent identification and default user agent identification are inconsistent, and page address is corresponding When invalid flag, when indicating invalid by handover recommendation user agent mark acquisition content of pages, it can pass through and recommend page address Obtain the content of pages for meeting and recommending page layout, it is ensured that obtain the page for meeting and recommending page layout in several ways Content improves the acquisition efficiency for meeting the content of pages for recommending page layout.
As shown in figure 4, in one embodiment, S204 includes the steps that inquiring recommended user's agent identification, step tool Body includes the following contents:
S402 determines recommendation page layout corresponding with page address.
Wherein, memory page address and recommend the corresponding relationship between page layout in terminal or server.Corresponding relationship It can be indicated by mapping table.
Specifically, terminal obtains page address and recommends the corresponding relationship between page layout, and corresponding according to acquisition is closed System determines recommendation page layout corresponding with the page address used when accession page.
In one embodiment, terminal obtains page address and recommends the mapping table of page layout, in corresponding relationship Push away corresponding with the page address inquired is extracted in the page address used when the queried access page in table from mapping table Recommend page layout.
S404, the mapping relations for recommending page layout and recommended user's agent identification recorded according to corresponding page address, Inquire determining recommendation page layout mapped recommended user's agent identification.
Specifically, terminal, which obtains, answers page address is corresponding the mapping of page layout and recommended user's agent identification is recommended to close System determines according to mapping relations and recommends page layout mapped recommended user's agent identification.
In one embodiment, the mapping relations of page layout and recommended user's agent identification are recommended to pass through mapping table It embodies, there are corresponding mapping tables for each page address.Terminal inquiry mapping table corresponding with page address, is mapping Determining recommendation page layout mapped recommended user's agent identification is inquired in relation table.
In the present embodiment, after determining recommendation page layout corresponding with page address, recorded by corresponding page address Mapping relations between recommended user's agent identification and recommendation page layout, inquiry are pushed away with recommendation page layout mapped is determined User agent's mark is recommended, to improve the accuracy of determining recommended user's agent identification.
As shown in figure 5, in one embodiment, S402, which is specifically included, determines the step of recommending page layout, step tool Body includes the following contents:
S502 obtains user identifier used by the access initiated to the page.
Specifically, terminal parses the accessing page request of generation when generating accessing page request, passes through parsing The user identifier in accessing page request is extracted, the user identifier extracted is that user used by the access initiated to the page marks Know.
S504, inquiry and user identifier and page address corresponding user layout concern dimension jointly.
Wherein, user layout concern dimension is the dimension of layout concern of the user to content of pages.For example, user layout closes Infusing dimension may include at least one of content displaying amount, content bandwagon effect and page ad amount.
Specifically, terminal extracts address key words from page address, and inquiry is with user identifier and keyword jointly to drink User layout pays close attention to dimension, pays close attention to dimension as user identifier and page address corresponding use jointly using the user layout that inquires Family layout concern dimension.
S506, determining recommendation page layout corresponding with user layout concern dimension and page address.
Specifically, terminal is determining pays close attention to dimension and page address corresponding layout comparing result jointly with user layout, from It is laid out in comparing result to extract and pays close attention to dimension and page address corresponding recommendation page layout jointly with user layout.
In one embodiment, terminal extracts the address key words in page address, inquiry and user in layout contrast table Layout pays close attention to dimension and address key words corresponding layout comparing result jointly, extraction and user layout from layout comparing result Pay close attention to dimension and address key words corresponding recommendation page layout jointly, with the recommendation page layout extracted, as with user Layout pays close attention to dimension and page address corresponding recommendation page layout jointly.
In the present embodiment, after obtaining user identifier used by the access initiated to the page, inquiry and user identifier and page Corresponding user layout pays close attention to dimension jointly for face address, pays close attention to dimension and the corresponding recommendation page in page address according to user layout Layout, so that content of pages recommends page layout to be shown according to user layout concern dimension is corresponding, guarantee is marked according to user The user layout concern dimension of knowledge is shown, and is improved and is shown different user layout concern dimension for user identifier The displaying accuracy of content of pages.
As shown in fig. 6, in one embodiment, page display method further includes the establishment step of mapping relations, the layout Specifically include the following contents:
S602 obtains switching user agent's mark with the history of accession page and switches record.
Wherein, user accesses the page of different page layouts, user of the terminal to switching by switching user agent's mark The access data of agent identification are recorded, and history switching record is obtained.
Specifically, the switching that terminal obtains triggering records acquisition instruction, extracts storage according to switching record acquisition instruction History switching record, the history switching extracted are recorded as switching user agent mark with the history switching record of accession page.
S604 determines recommended user's agent identification based on history switching record.
Specifically, terminal get history switching record after, according to each user agent mark to history switching record into Row classification counts each user agent and identifies corresponding page access number, chooses highest page access number corresponding user's generation Reason mark is used as recommended user's agent identification.
In one embodiment, terminal switches the switching frequency that record counts each user agent's mark according to history, chooses The corresponding user agent's mark of highest switching frequency is used as recommended user's agent identification.
In one embodiment, terminal switches record distribution to history according to page address, obtains each page address difference Corresponding history switching record counts each use in each page address according to the corresponding history switching record in each page address The switching frequency or switching times of family agent identification choose user agent corresponding to highest switching frequency or maximum switching times Mark is as the corresponding recommended user's agent identification in each page address.
S606 will recommend page layout to establish accordingly in determining recommended user's agent identification and history switching record Mapping relations.
Specifically, terminal extracts page cloth corresponding with the recommended user's agent identification determined from history switching record Office establishes determining recommended user's agent identification and recommends page layout to extract page layout as page layout is recommended Between mapping relations.Mapping relations can pass through mapping table.Mapping table be indicate recommended user's agent identification and Recommend the table of page layout.
In one embodiment, terminal switches from the history of page address corresponding to determining recommended user's agent identification In record, extract User Page layout, using the User Page layout extracted as with determining recommended user's agent identification and Page address corresponding recommendation page layout jointly.
In the present embodiment, record is switched with the history of accession page according to switching user agent's mark, determines recommended user Agent identification recommends page layout to establish mapping relations accordingly according in history switching record, and guarantee can be cut according to user Habit is changed, recommended user's agent identification is established and recommends the mapping relations between page layout, to guarantee according to mapping relations standard It determines recommended user's agent identification and recommends page layout.
As shown in fig. 7, in one embodiment, page display method further includes the generation step of history switching record, it should Step specifically further includes the following contents:
S702 intercepts the accessing page request of generation when generating accessing page request.
Specifically, terminal detects when generating accessing page request by browser, to the accessing page request of generation into Row intercepts, the accessing page request intercepted.
S704 shows the typing frame for switching user agent's mark.
Specifically, terminal shows typing frame, typing frame is for recording when intercepting accessing page request in current page Enter the user agent's mark switched to.The user agent of switching identifies for the user agent in the accessing page request to interception Mark is replaced.
S706 obtains the user agent's mark switched in typing frame.
Specifically, terminal obtains user's generation of typing in typing frame in detecting typing when typing user agent mark Reason mark is identified using the user agent's mark got as the user agent switched to.
S708, after user agent's mark in the accessing page request of interception is replaced with the user agent's mark switched to Page access is carried out, and generates history switching record.
Specifically, terminal parses the accessing page request of interception, determines the use in the accessing page request intercepted Determining user agent's mark is replaced with the user agent switched to and identified by family agent identification, is obtained carrying and is switched to The accessing page request of user agent's mark carries out page according to the accessing page request for carrying the user agent's mark switched to Interview asks that the access data during record access generate history switching record.It include that user agent marks in history switching record Knowledge, page layout and page address, can also include at least one of user identifier and access time.
In the present embodiment, by being replaced to the user agent's mark for intercepting the accessing page request generated, Ke Yibao Card obtains the user agent for meeting and switching to and identifies the content of pages of corresponding page layout, to realize to page address not The content of pages of same page layout accesses, and improves the access convenience to the content of pages of different page layouts.
As shown in figure 8, in one embodiment, page display method further includes the steps that establishing mapping relations, the step Specifically include the following contents:
S802 obtains the history access record of the page.
Wherein, history access record is the record for recording page access data.History access record includes user agent's mark Knowledge, page address and content of pages, can also include at least one of user identifier and access time.
S804, according to content of pages of the page address recorded in history access record under different user agent identification it Between placement differences, determine and recommend page layout and corresponding recommended user's agent identification.
Specifically, terminal classifies to history access record according to different page addresses, for each page address pair The history access record answered determines the content of pages under different user agent identification, by the page under different user agent identification Content compares, and obtains placement differences, is determined according to placement differences and page layout and corresponding recommended user is recommended to act on behalf of mark Know.
In one embodiment, terminal extracts the user identifier in history access record, determines the corresponding use of user identifier Family layout concern dimension, is compared the content of pages under different user agent identification according to user layout concern dimension, obtains To placement differences.Terminal, which is extracted the page layout that content bandwagon effect is best under user layout concern dimension and is used as, recommends page cloth Office, to recommend the corresponding user agent's mark of page layout as recommended user's agent identification.
Determining recommendation page layout and corresponding recommended user's agent identification are established mapping relations by S806.
Specifically, terminal is directed to each page address, and determining recommendation page layout and recommended user's agent identification are built The vertical mapping relations recommended between page layout and recommended user's agent identification.
In the present embodiment, the history access record of the page is obtained, is existed according to the page address recorded in history access record The placement differences between content of pages under different user agent identification determine and recommend page layout and corresponding recommended user's generation Determining recommendation page layout and corresponding user agent mark are established mapping relations, guarantee that the mapping established is closed by reason mark System matches with history access record, improves the accuracy of mapping relations.
For example, user identifier passes through the corresponding relationship between the user layout concern dimension of each address key words The following table 1 indicates.As shown in table 1, user identifier ID1 is content bandwagon effect to the user layout concern dimension of all pages; User identifier ID2 is the corresponding page of ABC to address key words, and it is content displaying amount that user layout, which pays close attention to dimension,.
Table 1:
Corresponding relationship between page address and recommendation page layout, it is corresponding with recommendation page layout by page address Relation table indicates that as shown in table 2, the mapping table of page address and recommendation page layout specifically includes address key words, page The layout comparing result between each page layout under face layout and user layout concern dimension, user layout pays close attention to dimension can be with Including content displaying amount and content bandwagon effect.Two kinds of page layouts corresponding for address key words ABC, including mobile phone version and electricity Brain version.
Please refer to Fig. 9 and Figure 10.Fig. 9 is the page layout schematic diagram of computerized version in one embodiment.Figure 10 is a reality Apply the page layout schematic diagram of mobile phone version in example.Page address corresponding to Fig. 9 and Figure 10 iswww.ABC.com, address key Word is ABC, is directed to identical problem content in computerized version, in the content displaying amount of the answer content of displaying, the page of computerized version Layout is more than the page layout of mobile phone version, and the button " opened in APP " in the page layout of mobile phone version, which has blocked part, answers Content.
And in the case where the user layout of content displaying amount pays close attention to dimension, computerized version is better than mobile phone version;In content bandwagon effect User layout is paid close attention under dimension, and computerized version is identical with mobile phone version.
Table 2:
The recommendation page layout of address key words ABC and the mapping relations of recommended user's agent identification are indicated by table 3.Such as Shown in table 3, the recommended user's agent identification for recommending page layout mapping of mobile phone version is UA1, the recommendation page layout of computerized version Recommended user's agent identification of mapping is UA2.
Table 3:
Page layout User agent's mark
Mobile phone version UA1
Computerized version UA2
…… ……
When terminal, which detects, triggers accessing page request in browser, extracted in page address from accessing page request Address key words ABC, user identifier ID2 and default user agent identification UA1.First inquiry and address are crucial in table 1 for terminal Corresponding user layout pays close attention to dimension to word ABC and user identifier ID2 jointly.When the user layout concern dimension inquired is content When displaying amount, then in table 2 it is determining with address key words ABC and content displaying amount jointly corresponding layout comparison as a result, when really Fixed layout comparison result be " computerized version > mobile phone version ", then choose computerized version for recommend page layout, then in table 3 inquiry with The user agent of computerized version mapping identifies UA2, then UA2 is recommended user's agent identification.Terminal compares default user agent identification Whether UA1 and recommended user's agent identification UA2 are consistent, determine default user agent identification UA1 and recommended user's agent identification UA2 It is inconsistent, then the default user agent identification UA1 in accessing page request is switched to recommended user agent identification UA2, terminal The page for meeting and page layout being recommended to be computerized version is obtained according to the accessing page request for carrying recommended user's agent identification UA2 Content, and the content of pages that will acquire is shown.
As shown in figure 11, in one embodiment, a kind of page presentation device 1100 is provided, which specifically includes following Content: address acquisition module 1102 recommends mark enquiry module 1104, initial marking to obtain module 1106 and page presentation module 1108。
Address acquisition module 1102, the page address of accession page for obtaining.
Recommend mark enquiry module 1104, is used for the corresponding recommended user's agent identification in query page address, recommended user The recommendation page layout of agent identification corresponding page.
Initial marking obtains module 1106, for obtaining the default user for initiating to use when the access to page agency's mark Know.
Page presentation module 1108 is used for when recommended user's agent identification and default user agent identification are inconsistent, root According to recommended user's agent identification and page address, the content of pages for meeting and recommending page layout is shown.
In one embodiment, default user agent identification is asked from the page access triggered when the page is initiated and accessed It asks;Page presentation module 1108 is also used to replace with default user agent identification in accessing page request recommended user and acts on behalf of mark Know;It is obtained according to the accessing page request by replacement and meets the content of pages for recommending page layout;Displayed page content.
In one embodiment, page presentation module 1108 is also used to act on behalf of when recommended user's agent identification and default user Identify inconsistent, and page address is corresponding with criterion and clocks, and according to recommended user's agent identification and page address, displaying, which meets, to be pushed away Recommend the content of pages of page layout;
In one embodiment, page presentation module 1108 is also used to act on behalf of when recommended user's agent identification and default user It identifies inconsistent, and when page address corresponds to invalid flag, obtains the corresponding recommendation page address in page address, and according to recommendation Page address, which obtains, meets the content of pages for recommending page layout and displaying.
In one embodiment, mark enquiry module 1104 is recommended to be also used to determine the recommendation page corresponding with page address Layout;According to the mapping relations of the recommendation page layout and recommended user's agent identification of corresponding page address record, inquiry is determined Recommendation page layout mapped recommended user's agent identification.
In one embodiment, used by the access for recommending mark enquiry module 1104 to be also used to obtain Fa Qis to the page User identifier;Inquiry and user identifier and page address corresponding user layout concern dimension jointly;It is determining to be closed with user layout Infuse dimension and the corresponding recommendation page layout in page address.
In one embodiment, page presentation device 1100 further includes that module is established in mapping.
Mapping relations establish the history switching record that module is also used to obtain switching user agent mark with accession page;Base Switch in history and record, determines recommended user's agent identification;By determining recommended user's agent identification and history switching record In recommend page layout to establish mapping relations accordingly.
In one embodiment, page presentation device 1100 further includes historical record generation module.
Historical record generation module is also used to intercept the accessing page request of generation when generating accessing page request;Exhibition Show the typing frame for switching user agent's mark;Obtain the user agent's mark switched in typing frame;By the page of interception User agent's mark in access request carries out page access after replacing with the user agent's mark switched to, and generates history and cut Change record.
In one embodiment, page presentation device 1100 is also used to obtain the history access record of the page;According to history Placement differences of the page address recorded in access record between the content of pages under different user agent identification, determine and recommend Page layout and corresponding recommended user's agent identification;By determining recommendation page layout and corresponding recommended user's agent identification Establish mapping relations.
In the present embodiment, when accessing to the page, the corresponding recommended user in page address of institute's accession page is inquired Agent identification.When recommended user's agent identification and inconsistent default user agent identification when initiating to the access of the page, press According to the corresponding content of pages in the corresponding recommendation page layout displayed page address of recommended user's agent identification, it is ensured that different The content of pages for meeting and recommending page layout is shown in show surroundings, changes page without identifying by manual switching user agent Face layout, to improve the convenience of the page layout switching of content of pages.
Figure 12 shows the internal structure chart of computer equipment in one embodiment.The computer equipment specifically can be figure Terminal 110 in 1.As shown in figure 12, it includes the place connected by system bus which, which includes the computer equipment, Manage device, memory, network interface, input unit and display screen.Wherein, memory includes non-volatile memory medium and interior storage Device.The non-volatile memory medium of the computer equipment is stored with operating system, can also be stored with computer program, the computer When program is executed by processor, processor may make to realize page display method.Computer can also be stored in the built-in storage Program when the computer program is executed by processor, may make processor to execute page display method.The display of computer equipment Screen can be liquid crystal display or electric ink display screen, and the input unit of computer equipment can be to be covered on display screen Touch layer is also possible to the key being arranged on computer equipment shell, trace ball or Trackpad, can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figure 12, only part relevant to application scheme The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, page presentation device 1100 provided by the present application can be implemented as a kind of computer program Form, computer program can be run in computer equipment as shown in figure 12.Group can be stored in the memory of computer equipment At each program module of the page presentation device 1100, for example, address acquisition module 1102 shown in Figure 11, recommendation mark are looked into Ask module 1104, initial marking obtains module 1106 and page presentation module 1108.The computer journey that each program module is constituted Sequence makes processor execute the step in the page display method of each embodiment of the application described in this specification.
For example, computer equipment shown in Figure 12 can pass through the address in page presentation device 1100 as shown in figure 11 Obtain the page address that module 1102 obtains institute's accession page.Computer equipment can be by recommending mark enquiry module 1104 to inquire The corresponding recommended user's agent identification in page address, the recommendation page layout of recommended user's agent identification corresponding page.Computer Equipment can obtain module 1106 by initial marking and obtain the default user agent identification for initiating to use when the access to the page.Meter Calculating machine equipment can be by page presentation module 1108 when recommended user's agent identification and default user agent identification are inconsistent, root According to recommended user's agent identification and page address, the content of pages for meeting and recommending page layout is shown.
In one embodiment, a kind of computer equipment, including memory and processor are provided, memory is stored with meter Calculation machine program, when computer program is executed by processor, so that the step of processor executes above-mentioned XX method.Page presentation herein The step of method, can be the step in the page display method of above-mentioned each embodiment.
In one embodiment, a kind of computer readable storage medium is provided, computer program, computer journey are stored with When sequence is executed by processor, so that the step of processor executes above-mentioned page display method.The step of page display method herein It can be the step in the page display method of above-mentioned each embodiment.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, provided herein Each embodiment used in any reference to memory, storage, database or other media, may each comprise non-volatile And/or volatile memory.Nonvolatile memory may include that read-only memory (ROM), programming ROM (PROM), electricity can be compiled Journey ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) directly RAM (RDRAM), straight Connect memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (15)

1. a kind of page display method, comprising:
Obtain the page address of institute's accession page;
The corresponding recommended user's agent identification in the page address is inquired, recommended user's agent identification corresponds to the page Recommend page layout;
Obtain the default user agent identification for initiating to use when the access to the page;
When recommended user's agent identification and the default user agent identification are inconsistent, acted on behalf of according to the recommended user Mark and the page address show and meet the content of pages for recommending page layout.
2. the method according to claim 1, wherein the default user agent identification is to the page Initiate the accessing page request triggered when access;
It is described according to recommended user's agent identification and the page address, show and meet the page for recommending page layout Content includes:
Default user agent identification in the accessing page request is replaced with into recommended user's agent identification;
It is obtained according to the accessing page request by replacement and meets the content of pages for recommending page layout;
Show the content of pages.
3. according to the method described in claim 2, it is characterized in that, described work as recommended user's agent identification and the default When user agent's mark is inconsistent, according to recommended user's agent identification and the page address, displaying meets the recommendation The content of pages of page layout includes:
When recommended user's agent identification and the default user agent identification are inconsistent, and the page address is corresponding effective When label, according to recommended user's agent identification and the page address, shows and meet the page for recommending page layout Content;
The method also includes:
When recommended user's agent identification and the default user agent identification are inconsistent, and the page address is corresponding invalid When label, obtain the corresponding recommendation page address in the page address, and obtain according to the recommendation page address meet it is described Recommend the content of pages of page layout and displaying.
4. the method according to claim 1, wherein the inquiry page address corresponding recommended user's generation Reason identifies
Determine recommendation page layout corresponding with the page address;
According to the mapping relations of the recommendation page layout and recommended user's agent identification of the correspondence page address record, inquiry is true Fixed recommendation page layout mapped recommended user's agent identification.
5. according to the method described in claim 4, it is characterized in that, the determination recommendation page corresponding with the page address Layout includes:
Obtain user identifier used by the access initiated to the page;
Inquiry and the user identifier and the page address corresponding user layout concern dimension jointly;
Determining recommendation page layout corresponding with user layout concern dimension and the page address.
6. according to the method described in claim 4, it is characterized in that, the establishment step of the mapping relations includes:
It obtains switching user agent's mark and record is switched with the history of accession page;
Switched based on the history and recorded, determines recommended user's agent identification;
Page layout will be recommended to establish accordingly in determining recommended user's agent identification and history switching record Mapping relations.
7. according to the method described in claim 6, it is characterized in that, the generation step of history switching record includes:
When generating accessing page request, the accessing page request of generation is intercepted;
Show the typing frame for switching user agent's mark;
Obtain the user agent's mark switched in the typing frame;
The page is carried out after user agent's mark in the accessing page request of interception is replaced with the user agent's mark switched to Access, and generate history switching record.
8. according to the method described in claim 4, it is characterized in that, the establishment step of the mapping relations includes:
Obtain the history access record of the page;
According to the page address recorded in the history access record between the content of pages under different user agent identification Placement differences determine and recommend page layout and corresponding recommended user's agent identification;
The determining recommendation page layout and corresponding recommended user's agent identification are established into mapping relations.
9. a kind of page presentation device, which is characterized in that described device includes:
Address acquisition module, the page address of accession page for obtaining;
Recommend mark enquiry module, for inquiring the corresponding recommended user's agent identification in the page address, the recommended user Agent identification corresponds to the recommendation page layout of the page;
Initial marking obtains module, for obtaining the default user agent identification for initiating to use when the access to the page;
Page presentation module is used for when recommended user's agent identification and the default user agent identification are inconsistent, root According to recommended user's agent identification and the page address, shows and meet the content of pages for recommending page layout.
10. device according to claim 9, which is characterized in that the default user agent identification is to the page Initiate the accessing page request triggered when access in face;
The page presentation module is also used to default user agent identification in the accessing page request replacing with the recommendation User agent's mark;It is obtained according to the accessing page request by replacement and meets the content of pages for recommending page layout;Exhibition Show the content of pages.
11. device according to claim 10, which is characterized in that the page presentation module is also used to use when the recommendation Family agent identification and the default user agent identification are inconsistent, and the page address is corresponding with criterion and clocks, according to described Recommended user's agent identification and the page address show and meet the content of pages for recommending page layout;
The page presentation module is also used to work as recommended user's agent identification and the default user agent identification is inconsistent, And the page address obtains the corresponding recommendation page address in the page address, and push away according to described when corresponding to invalid flag It recommends page address and obtains and meet the content of pages for recommending page layout and displaying.
12. device according to claim 9, which is characterized in that the recommendation mark enquiry module is also used to determining and institute State the corresponding recommendation page layout in page address;According to the recommendation page layout of the correspondence page address record and recommended user The mapping relations of agent identification inquire determining recommendation page layout mapped recommended user's agent identification.
13. device according to claim 12, which is characterized in that the recommendation mark enquiry module is also used to obtain initiation User identifier used by access to the page;Inquiry and the user identifier and the page address corresponding use jointly Family layout concern dimension;Determining recommendation page layout corresponding with user layout concern dimension and the page address.
14. a kind of computer readable storage medium is stored with computer program, when the computer program is executed by processor, So that the processor is executed such as the step of any one of claims 1 to 8 the method.
15. a kind of computer equipment, including memory and processor, the memory is stored with computer program, the computer When program is executed by the processor, so that the processor is executed such as the step of any one of claims 1 to 8 the method.
CN201910180586.7A 2019-03-11 2019-03-11 Page display method and device, computer readable storage medium and computer equipment Active CN109871501B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910180586.7A CN109871501B (en) 2019-03-11 2019-03-11 Page display method and device, computer readable storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910180586.7A CN109871501B (en) 2019-03-11 2019-03-11 Page display method and device, computer readable storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN109871501A true CN109871501A (en) 2019-06-11
CN109871501B CN109871501B (en) 2021-04-20

Family

ID=66920160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910180586.7A Active CN109871501B (en) 2019-03-11 2019-03-11 Page display method and device, computer readable storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN109871501B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130952A (en) * 2011-03-16 2011-07-20 广州市动景计算机科技有限公司 Method and device for forwarding hyper text transport protocol (HPPT) request message of mobile terminal
CN103237088A (en) * 2013-05-16 2013-08-07 百度在线网络技术(北京)有限公司 Corresponding relation library-based browsing method and system and cloud server
CN103744985A (en) * 2014-01-16 2014-04-23 世纪龙信息网络有限责任公司 Webpage adaption method and webpage adaption system
CN104965831A (en) * 2014-06-11 2015-10-07 腾讯科技(深圳)有限公司 Method, server, terminal and system for correcting website addresses
CN106844396A (en) * 2015-12-04 2017-06-13 腾讯科技(深圳)有限公司 A kind of information processing method and electronic equipment
CN107870989A (en) * 2017-10-17 2018-04-03 平安科技(深圳)有限公司 webpage generating method and terminal device
CN108228873A (en) * 2018-01-17 2018-06-29 腾讯科技(深圳)有限公司 Object recommendation, publication content delivery method, device, storage medium and equipment
CN108255550A (en) * 2017-11-27 2018-07-06 深圳市小牛在线互联网信息咨询有限公司 Method for page jump, device, storage medium and computer equipment
CN109189386A (en) * 2018-07-12 2019-01-11 新华三云计算技术有限公司 A kind of application access method and device based on micro services

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130952A (en) * 2011-03-16 2011-07-20 广州市动景计算机科技有限公司 Method and device for forwarding hyper text transport protocol (HPPT) request message of mobile terminal
CN103237088A (en) * 2013-05-16 2013-08-07 百度在线网络技术(北京)有限公司 Corresponding relation library-based browsing method and system and cloud server
CN103744985A (en) * 2014-01-16 2014-04-23 世纪龙信息网络有限责任公司 Webpage adaption method and webpage adaption system
CN104965831A (en) * 2014-06-11 2015-10-07 腾讯科技(深圳)有限公司 Method, server, terminal and system for correcting website addresses
CN106844396A (en) * 2015-12-04 2017-06-13 腾讯科技(深圳)有限公司 A kind of information processing method and electronic equipment
CN107870989A (en) * 2017-10-17 2018-04-03 平安科技(深圳)有限公司 webpage generating method and terminal device
CN108255550A (en) * 2017-11-27 2018-07-06 深圳市小牛在线互联网信息咨询有限公司 Method for page jump, device, storage medium and computer equipment
CN108228873A (en) * 2018-01-17 2018-06-29 腾讯科技(深圳)有限公司 Object recommendation, publication content delivery method, device, storage medium and equipment
CN109189386A (en) * 2018-07-12 2019-01-11 新华三云计算技术有限公司 A kind of application access method and device based on micro services

Also Published As

Publication number Publication date
CN109871501B (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN111193599B (en) Message processing method and device
CN109558404B (en) Data storage method, device, computer equipment and storage medium
Brunn et al. Mapping the “Worlds” of the World Wide Web: (Re) Structuring Global Commerce through Hyperlinks
Taneja Mapping an audience-centric World Wide Web: A departure from hyperlink analysis
CN109670049A (en) Map path query method, apparatus, computer equipment and storage medium
CN108829781A (en) Client information inquiry method, device, computer equipment and storage medium
CN109597979B (en) List table generation method and device, computer equipment and storage medium
CN108804159A (en) Javascript module loadings method and its preprocess method, device and computer equipment
CN111193603B (en) Network architecture generation method and device, readable storage medium and computer equipment
CN113076731A (en) Report file generation method and device, computer equipment and storage medium
CN108334625A (en) Processing method, device, computer equipment and the storage medium of user information
CN110134656A (en) Page control method, device, computer readable storage medium and computer equipment
CN109783589A (en) The method, apparatus and storage medium of electronic map parsing address
CN109656954A (en) Trade mark inquiry method, apparatus and computer equipment
CN109271564A (en) Declaration form querying method and equipment
CN112084403B (en) Data query method, device, computer equipment and storage medium
CN110599373B (en) Trademark data generation method and device
CN110515979B (en) Data query method, device, equipment and storage medium
CN110213067A (en) Tracking information processing method, the device and system of service request
CN109871501A (en) Page display method, device, computer readable storage medium and computer equipment
CN111158998A (en) Display method and device of buried point data
CN108460116A (en) Searching method, device, computer equipment, storage medium and search system
CN112835886A (en) Data table field adding method and device
KR20140019049A (en) Input window providing system and methods thereof
KR20070025226A (en) Method for linking wireless internet homepage based on phone number and record media recored program for realizing the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant