CN104915845B - For the merchandise news display methods and device of window - Google Patents

For the merchandise news display methods and device of window Download PDF

Info

Publication number
CN104915845B
CN104915845B CN201510341237.0A CN201510341237A CN104915845B CN 104915845 B CN104915845 B CN 104915845B CN 201510341237 A CN201510341237 A CN 201510341237A CN 104915845 B CN104915845 B CN 104915845B
Authority
CN
China
Prior art keywords
commodity
window
merchandise news
current window
identification data
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.)
Active
Application number
CN201510341237.0A
Other languages
Chinese (zh)
Other versions
CN104915845A (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201510341237.0A priority Critical patent/CN104915845B/en
Publication of CN104915845A publication Critical patent/CN104915845A/en
Application granted granted Critical
Publication of CN104915845B publication Critical patent/CN104915845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of merchandise news display methods and device for window.Whether the merchandise news display methods is the following steps are included: open item detail page in detection current window;If opening item detail page in current window, merchandise news corresponding with the item identification data is obtained from network service end according to item identification data stored in the sessionStorage of current window;The merchandise news is shown in current window.The commodity information display apparatus includes: detection module, commodity information acquisition module and display module.Merchandise news display methods and device provided by the present invention for window can carry out personalized recommendation for same browser different windows, the dependence to cookie can be reduced, scalability is promoted, communication traffic consumption of the user in access process can also be reduced.

Description

For the merchandise news display methods and device of window
Technical field
The present invention relates to the merchandise news display technologies of electric business industry, more particularly, to a kind of merchandise news for window Display methods and device.
Background technique
In traditional real-time merchandise news is shown, the real time access data of user are saved usually using cookie, so It is recorded afterwards according to the access saved in cookie, Recommendations are to user in real time.When relying on cookie storage, due to same Cookie data under domain name cannot carry out differentiation storage for different opening windows, so real-time recommendation is typically only capable to control Browser granularity is made, the different windows granularity of same browser cannot be controlled downwards, user opens more under same domain name When window browses respectively, real time individual recommendation cannot be carried out for respective browsing habit.
Further, since the limitation of browser, cookie size and number are all limited under same domain name, often will appear because Cookie is excessive excessive and the abnormal conditions such as cause the page slack-off, causes scalability poor.Meanwhile it loading in use Excessive cookie will increase the consumption of communication traffic, cause the waste of Internet resources and the increase of user's access cost.
Therefore, it is necessary to design a kind of merchandise news display methods for window, to overcome disadvantages described above, improve because Cookie it is excessive it is excessive caused by a series of problems.
Summary of the invention
In view of this, the present invention provides a kind of merchandise news display methods and device for window, it is intended to overcome existing There is the defect of technology.
Merchandise news display methods provided by the present invention for window includes the following steps.
Step S100 detects in current window whether open item detail page.
Step S200, if opening item detail page in current window, according to the sessionStorage of current window In stored item identification data obtain merchandise news corresponding with the item identification data from network service end.
Step S300 shows the merchandise news in current window.
Preferably, the merchandise news display methods further include: step S400, the commodity details that current page is opened Item identification data corresponding to the page is stored in the sessionStorage of current window.
Preferably, the merchandise news display methods further include: step S500 is deleted current after current window closing Item identification data in the sessionStorage of window.
Preferably, in the step S200, the item identification data be shown in current window commodity institute it is right The numbered list answered.
Preferably, in step s 200, the merchandise news includes any of the following or a variety of: the photo of commodity, quotient The title of product, the history evaluation of commodity, the website links of commodity, the price of commodity.
Commodity information display apparatus provided by the present invention for window includes: detection module, and the detection module is used Whether item detail page is opened in detection current window;Commodity information acquisition module, the commodity information acquisition module exist When opening item detail page in current window, according to commodity sign number stored in the sessionStorage of current window Merchandise news corresponding with the item identification data is obtained according to from network service end;Display module, the display module are used In showing the merchandise news in current window.
Preferably, the commodity information display apparatus further include: memory module, the memory module are used for current page Item identification data corresponding to the item detail page opened is stored in the sessionStorage of current window.
Preferably, the commodity information display apparatus further include: data removing module, the data removing module are used for After current window is closed, the item identification data in the sessionStorage of current window is deleted.
Preferably, the item identification data is numbered list corresponding to the commodity that showed in current window.
Preferably, the merchandise news acquired in the commodity information acquisition module includes any of the following or more Kind: the photo of commodity, the title of commodity, the history evaluation of commodity, the website links of commodity, the price of commodity.
Merchandise news display methods and device provided by the present invention for window has technical effect beneficial below: 1) personalized recommendation can be carried out for same browser different windows.Specifically, item identification data can be directed to different It opens window and carries out differentiation storage, can control the different windows granularity of same browser, user beats under same domain name Multiwindowing can carry out real time individual recommendation for respectively browsing habit when browsing respectively.2) it can reduce to cookie's It relies on, promotes scalability.3) communication traffic consumption of the user in access process can be reduced.
Detailed description of the invention
Preferred embodiment in attached drawing the present invention is described in detail will be passed through below, it will help understand the purpose of the present invention and excellent Point, in which:
Fig. 1 is the flow chart of the preferred embodiment of the merchandise news display methods for window of the invention.
Fig. 2 is a kind of specific implementation process of the merchandise news display methods for window of the invention.
Fig. 3 is the preferred embodiment of the commodity information display apparatus for window of the invention.
Specific embodiment
The following describes the present invention in detail with reference to examples.The wherein identical appended drawing reference table of identical components Show.
Fig. 1 is the flow chart of the preferred embodiment of the merchandise news display methods for window of the invention.Such as Fig. 1 institute Show, the merchandise news display methods provided by the present invention for window includes the following steps.
Step S100 detects in current window whether open item detail page.In the step s 100, detection can be passed through Whether with commodity related information is being shown in current window to judge whether current window opens item detail page.Example Such as: if detecting, the address url of current window is the address of some electric business website, can be determined that current window has already turned on Item detail page, this mode can be completed by the text information in the identification address url.It can also be by working as front window Shown specifying information identify to be judged in mouthful, such as: image shown by identifying whether be it is related with commodity, Whether the shown text information of identification is related etc. with commodity transaction or buyer's guide.In the step s 100, the commodity details The page can be arbitrary, and also be can according to need and be set as specific item detail page, only open these specifically Item detail page is just to be judged as "Yes".
Step S200, if opening item detail page in current window, according to the sessionStorage of current window In stored item identification data obtain merchandise news corresponding with the item identification data from network service end.Its In, the item identification data may include goods number, product name etc..If the testing result in step S100 are as follows: current Item detail page is opened in window, i.e. the judging result of step S100 is "Yes", then can preferably by the following method To realize step S200.
1) item identification data stored in the sessionStorage of current window is obtained.The item identification data It can be number data corresponding to the commodity once shown in current window, i.e. historical viewings data;The commodity sign Data are also possible to and historical viewings data same category in current window or the higher commodity of similarity or corresponding number Data.Such as: the commodity with similarity can be set by the two class commodity that commodity sign is " housing " and " trousers ", may be used also To set the two class commodity that commodity sign is " A brand laptop " and " B brand laptop " to similarity Commodity, the setting of this similarity can be adjusted correspondingly or change according to actual needs.It is understood that working as window When showing a certain commodity in mouthful, number, and/or commodity similar with the commodity corresponding to the commodity or corresponding number are It is stored in the sessionStorage of the window, is shown for merchandise news and foundation is provided.
2) item identification data that will acquire is sent to network server.Preferably, the item identification data can lead to It crosses textual form to be transmitted, to save Internet resources.Such as: it is the item identification data of " 12345 " for goods number, it can To send network server in the form of text for " 12345 " these fields.It is understood that the biography of item identification data Mode is sent to be not limited to this.
3) merchandise news from network server is received.Preferably, the merchandise news can be network server root It is obtained according to the item identification data, such as: it, can be according to the quotient after network server receives item identification data Product mark data scans for, obtain include the item identification data merchandise news, and corresponding merchandise news is returned To current window.
After completing step S200, step S300 is executed, the merchandise news is shown in current window.The commodity letter Breath can be shown by any one or more following form: the photo of commodity, the title of commodity, the history of commodity are commented Valence, the website links of commodity, price of commodity etc..Such as: it can be in the lower section of current window display of commodity in the form of a popup window Title and price, and be implanted into pop-up the website links of the commodity, click access convenient for user.
In a preferred embodiment, the merchandise news display methods for window of the invention further includes step S400, Item identification data corresponding to item detail page that current page is opened is stored in current window In sessionStorage.The item identification data in sessionStorage in order to improve current window, can will be current Number data corresponding to shown commodity are stored in the sessionStorage of current window in window, are expanded Item identification data in sessionStorage can preferably reflect the historical viewings record of the window, make quotient Product mark data is in the state of real-time update, so that the recommendation for commodity provides more accurate foundation, promotes merchandise news The effect of display.
Preferably, the merchandise news display methods further include: step S500 is deleted current after current window closing Item identification data in the sessionStorage of window.After closing current window, current window Item identification data in sessionStorage can be automatically deleted, and such design does not need specially to go to remove additionally Data, thus will not due to the data of storage are too many caused by access slowly, while network flow can also be saved.
Fig. 2 is a kind of specific implementation process of the merchandise news display methods for window of the invention.As shown in Fig. 2, Assuming that user accesses commodity page a first, commodity page b is visited again, then specific access process can be divided into following steps.
When a1) opening commodity page a in current window as user, the commodity sign number that the visit time browsed recently is obtained According to i.e. acquisition is stored in item identification data stored in the sessionStorage of current window.If Without storage item identification data in sessionStorage, i.e., without browsing history, can also be shown without merchandise news.
A2 the item identification data that) will acquire reaches in network server, and network server is according to the item identification data To search for merchandise news relevant to the item identification data.
A3) network server returns to relevant merchandise news in the commodity page a of current window, and is shown (i.e. It carries out merchandise news to show).
A4) item identification data corresponding to commodity page a is stored in sessionStorage, is believed for later commodity Breath display provides foundation.
B1) continue to open commodity page b in current window as user, then obtain and be stored in current window Stored item identification data in sessionStorage, it should be noted that at this point, in current window Item identification data relevant to commodity a has been added in item identification data in sessionStorage.
B2) by step a2) item identification data, pass together with the item identification data relevant to commodity a that has just been stored in Merchandise news is obtained into network server.
B3) network server returns to relevant merchandise news in the commodity page b of current window, and is shown (i.e. Merchandise news is carried out to show), at this point, merchandise news shown in current window show be possible in content include and commodity page The relevant information of a.
B4) item identification data corresponding to commodity page b also is stored in sessionStorage, is later commodity Information display provides foundation.
In a preferred embodiment, a window session can be stored in client browser using sessionStorage In (session) item identification data, page ability of these item identification datas only in the same window of browser Read-write, closes data auto-destruct after the window, does not need additionally to remove.
Accordingly, the present invention also provides a kind of commodity information display apparatus for window, Fig. 3 is of the invention is directed to The preferred embodiment of the commodity information display apparatus of window.As shown in figure 3, the commodity information display apparatus includes: detection mould Block 10, commodity information acquisition module 20 and display module 30.Whether the detection module 10 is opened for detecting in current window Item detail page;When the commodity information acquisition module 20 opens item detail page in current window, according to working as front window Item identification data stored by the sessionStorage of mouth is obtained from network service end and the item identification data phase Corresponding merchandise news;The display module 30 in current window for showing the merchandise news.
In a preferred embodiment, the commodity information display apparatus further includes memory module 40, the memory module 40 for being stored in current window for item identification data corresponding to item detail page that current page is opened In sessionStorage.
In a further advantageous embodiment, the commodity information display apparatus further includes data removing module 50, the number It is used for after current window closing according to removing module 50, deletes the commodity sign number in the sessionStorage of current window According to.
Preferably, the item identification data is numbered list corresponding to the commodity that showed in current window.
Preferably, the merchandise news acquired in the commodity information acquisition module 20 includes any of the following or more Kind: the photo of commodity, the title of commodity, the history evaluation of commodity, the website links of commodity, the price of commodity.
Merchandise news display methods and device provided by the present invention for window has technical effect beneficial below: 1) personalized recommendation can be carried out for same browser different windows.Specifically, item identification data can be directed to different It opens window and carries out differentiation storage, can control the different windows granularity of same browser, user beats under same domain name Multiwindowing can carry out real time individual recommendation for respectively browsing habit when browsing respectively.2) it can reduce to cookie's It relies on, promotes scalability.3) communication traffic consumption of the user in access process can be reduced.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be used To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features; And these are modified or replaceed, the range for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (12)

1. a kind of merchandise news display methods for window, which is characterized in that the merchandise news display methods includes following Step:
Step S100 detects in current window whether open item detail page;
Step S200, if opening item detail page in current window, according to institute in the sessionStorage of current window The item identification data of storage obtains merchandise news corresponding with the item identification data from network service end;The commodity Mark data is number data corresponding to the commodity that once showed in current window;Or with historical viewings number in current window According to same category or the higher commodity of similarity or corresponding number data;
Step S300 shows the merchandise news in current window.
2. the merchandise news display methods according to claim 1 for window, which is characterized in that the merchandise news is aobvious Show method further include: step S400, the storage of item identification data corresponding to the item detail page that current page is opened In the sessionStorage of current window.
3. the merchandise news display methods according to claim 1 or 2 for window, which is characterized in that the commodity letter Cease display methods further include: step S500 deletes the quotient in the sessionStorage of current window after current window closing Product mark data.
4. the merchandise news display methods according to claim 1 or 2 for window, which is characterized in that the step In S200, the item identification data is numbered list corresponding to the commodity that showed in current window.
5. the merchandise news display methods according to claim 1 or 2 for window, which is characterized in that in step S200 In, the merchandise news includes any of the following or a variety of: the photo of commodity, the title of commodity, the history evaluation of commodity, quotient Website links, the price of commodity of product.
6. a kind of commodity information display apparatus for window, which is characterized in that the commodity information display apparatus includes:
Detection module, the detection module is for detecting in current window whether open item detail page;
Commodity information acquisition module, when the commodity information acquisition module opens item detail page in current window, according to Stored item identification data obtains and the commodity sign from network service end in the sessionStorage of current window The corresponding merchandise news of data;The item identification data is number corresponding to the commodity that once showed in current window Data;Or with historical viewings data same category in current window or the higher commodity of similarity or corresponding number data;
Display module, the display module in current window for showing the merchandise news.
7. the commodity information display apparatus according to claim 6 for window, which is characterized in that the merchandise news is aobvious Showing device further include: memory module, the memory module are used for corresponding to the item detail page of being opened current page Item identification data is stored in the sessionStorage of current window.
8. the commodity information display apparatus according to claim 6 or 7 for window, which is characterized in that the commodity letter Cease display device further include: data removing module, the data removing module are used for after current window closing, and front window is worked as in deletion Item identification data in the sessionStorage of mouth.
9. the commodity information display apparatus according to claim 6 or 7 for window, which is characterized in that the commodity mark Knowing data is numbered list corresponding to the commodity that showed in current window.
10. the commodity information display apparatus according to claim 6 or 7 for window, which is characterized in that the commodity letter Breath obtains the merchandise news acquired in module and includes any of the following or a variety of: the photo of commodity, the title of commodity, quotient The history evaluation of product, the website links of commodity, the price of commodity.
11. a kind of computer readable storage medium, the storage medium is for storing computer instruction, described in computer execution When computer instruction, perform claim requires the merchandise news display methods for window described in any one of 1-5.
12. a kind of electronic equipment, which is characterized in that including at least one processor;And it is logical at least one described processor Believe the memory of connection;Wherein,
The memory is stored with the instruction that can be executed by one processor, and described instruction is by least one described processor It executes, so that at least one described processor is able to carry out the commodity of any of claims 1-5 for window and believes Cease display methods.
CN201510341237.0A 2015-06-18 2015-06-18 For the merchandise news display methods and device of window Active CN104915845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510341237.0A CN104915845B (en) 2015-06-18 2015-06-18 For the merchandise news display methods and device of window

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510341237.0A CN104915845B (en) 2015-06-18 2015-06-18 For the merchandise news display methods and device of window

Publications (2)

Publication Number Publication Date
CN104915845A CN104915845A (en) 2015-09-16
CN104915845B true CN104915845B (en) 2019-07-02

Family

ID=54084891

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510341237.0A Active CN104915845B (en) 2015-06-18 2015-06-18 For the merchandise news display methods and device of window

Country Status (1)

Country Link
CN (1) CN104915845B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105706140A (en) * 2016-01-25 2016-06-22 程强 Dining app platform merchant information display method and system
CN107766231B (en) * 2016-08-22 2021-03-16 阿里巴巴集团控股有限公司 Automatic testing method and device
CN108681932A (en) * 2018-04-04 2018-10-19 刘强 A kind of novel product information processing method and system
CN109325825B (en) * 2018-09-04 2020-06-30 口口相传(北京)网络技术有限公司 Flow data regulation and control method and device
CN109685614A (en) * 2018-12-19 2019-04-26 广州易起行信息技术有限公司 Travelling products recommended method, device, computer equipment and storage medium
CN110175310A (en) * 2019-06-03 2019-08-27 浪潮云信息技术有限公司 A kind of variation of foreground interface data showed slow solution
CN114612188A (en) * 2022-03-17 2022-06-10 上海禹璨信息技术有限公司 Information processing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102332020A (en) * 2011-09-22 2012-01-25 奇智软件(北京)有限公司 Generation method and device of website navigation page
CN103530292A (en) * 2012-07-02 2014-01-22 阿里巴巴集团控股有限公司 Webpage displaying method and device
CN103703483A (en) * 2011-06-24 2014-04-02 乐天株式会社 Information providing device, information providing method, information providing program, information display program, and computer-readable recording medium for storing information providing program
CN104615665A (en) * 2015-01-12 2015-05-13 华为技术有限公司 Method and device for display control of information in webpage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103703483A (en) * 2011-06-24 2014-04-02 乐天株式会社 Information providing device, information providing method, information providing program, information display program, and computer-readable recording medium for storing information providing program
CN102332020A (en) * 2011-09-22 2012-01-25 奇智软件(北京)有限公司 Generation method and device of website navigation page
CN103530292A (en) * 2012-07-02 2014-01-22 阿里巴巴集团控股有限公司 Webpage displaying method and device
CN104615665A (en) * 2015-01-12 2015-05-13 华为技术有限公司 Method and device for display control of information in webpage

Also Published As

Publication number Publication date
CN104915845A (en) 2015-09-16

Similar Documents

Publication Publication Date Title
CN104915845B (en) For the merchandise news display methods and device of window
US10409874B2 (en) Search based on combining user relationship datauser relationship data
TW202001736A (en) Classification model training method and store classification method and device
WO2011080899A1 (en) Information recommendation method
CN104951961A (en) Method, terminal, server and system for pushing contents
CN101517967A (en) Traffic prediction for web sites
US20110047160A1 (en) Information management through a single application
CN108334489A (en) Text core word recognition method and device
CN107911448A (en) Content pushing method and device
CN104090869B (en) A kind of method and translation system for translating the network information
CN105653724B (en) A kind of monitoring method and device of page light exposure
US8595619B1 (en) In response to a search result query providing a snippet of a document including an element previously highlighted by a user
US20130204864A1 (en) Information provision device, information provision method, program, and information recording medium
CN110134844A (en) Subdivision field public sentiment monitoring method, device, computer equipment and storage medium
CN116992081A (en) Page form data processing method and device and user terminal
CN108280102A (en) Internet behavior recording method, device and user terminal
US20130185295A1 (en) Information provisioning device, information provisioning method, program, and information recording medium
JP2005275488A (en) Input support method and program
US20230259569A1 (en) Systems and methods for automatic and adaptive browser bookmarks
CN108268488A (en) The recognition methods of webpage master map and device
CN103257976A (en) Display method and device of data objects
CN111914173B (en) Content processing method, device, computer system and storage medium
KR100466601B1 (en) Method and System for updating goods information
CN107463573A (en) Content information provides method, equipment, browser, electronic equipment and server
JP2021022107A (en) Information providing system and server

Legal Events

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