CN104765844B - A kind of generation method and device of Website page - Google Patents

A kind of generation method and device of Website page Download PDF

Info

Publication number
CN104765844B
CN104765844B CN201510181506.1A CN201510181506A CN104765844B CN 104765844 B CN104765844 B CN 104765844B CN 201510181506 A CN201510181506 A CN 201510181506A CN 104765844 B CN104765844 B CN 104765844B
Authority
CN
China
Prior art keywords
page
rendering
address
website
browser
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
CN201510181506.1A
Other languages
Chinese (zh)
Other versions
CN104765844A (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 CN201510181506.1A priority Critical patent/CN104765844B/en
Publication of CN104765844A publication Critical patent/CN104765844A/en
Application granted granted Critical
Publication of CN104765844B publication Critical patent/CN104765844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides the generation method and device of a kind of Website page, the Website page with page management function can be generated, solve the problems, such as that content manager can not be done directly the management of content of pages in browsing pages content, management function is abnormal caused by avoiding because of browsing pages adjustment, the user experience of viewer and manager are improved simultaneously, reduces the complexity of addition management function.The generation method of Website page of the invention includes: to obtain website domain name from the page after browser rendering;Search the corresponding expanded configuration file of the website domain name;According to the page rendering file address in the expanded configuration file, the page rendering file of the address is loaded;According to the page rendering file, the browser is called to render the page rendered again, generates the Website page with page management function.

Description

A kind of generation method and device of Website page
Technical field
The present invention relates to field of computer technology, in particular to the generation method and device of a kind of Website page.
Background technique
With the development of website, it is gradually completing the separation of website browsing function and web content management function.But it is true On while completing above two functions and separating, sacrifice the usage experience of a part of content manager and the management to content Efficiency, so that content manager not can be carried out quick management in the content for the page that browses web sites, it can only be by repeatedly jumping It could be operated in content management backstage.
In order to allow content manager quickly to be managed when browsing web sites content of pages, existing technical solution is After webpage has loaded, request is initiated again, Website server judges whether according to the user role of client browser can be with It is returned using management function, and by result, then Website page in a browser is presented by browser plug-in modification, from And the link of management function point is added in Website page.
There are the following problems in existing scheme:
1. the management that content manager can not be done directly content of pages in browsing pages content;
2. since browser executes primary request more, in the performance for above consuming server to a certain degree;
3. after server returns to request data, Website page in a browser is presented by browser plug-in modification When, since the function for the page to be adjusted influences each other, if web page element associated by the function of adjusting with needs occurs It changes, then needs the function of synchronous vacations respective associated, be not only easy initiation problem in this way, but also also add Website page tune Whole workload.
Summary of the invention
In view of this, the present invention provides the generation method and device of a kind of Website page, can generate with page management The Website page of function solves content manager and can not be done directly the management of content of pages in browsing pages content and asks Topic, management function is abnormal caused by avoiding because of browsing pages adjustment, while improving the user experience of viewer and manager, Reduce the complexity of addition management function.
To achieve the above object, according to an aspect of the invention, there is provided a kind of generation method of Website page.
The generation method of Website page of the invention includes: to obtain website domain name from the page after browser rendering;It looks into Look for the corresponding expanded configuration file of the website domain name;According to the page rendering file address in the expanded configuration file, add Carry the page rendering file of the address;According to the page rendering file, call the browser to the page rendered It is rendered again, generates the Website page with page management function.
Optionally, described according to the page rendering file, call the browser to the page rendered again It is rendered, generating the step of having the Website page of page management function includes: to obtain from the page after browser rendering Page address;It searches and rendering method corresponding to the page address;According to the rendering method, the browser pair is called The page rendered is rendered again, generates the Website page with page management function.
Optionally, the expanded configuration file includes extension title, extended version, extended description, extension instruction page, figure Mark, page rendering file address and website domain name.
Optionally, the page rendering file includes one or more page addresses, management function corresponding to page address Rendering method corresponding to energy configuration and page address.
According to another aspect of the present invention, a kind of generating means of Website page are provided.
The generating means of Website page of the invention include: acquisition module, for obtaining in the page after rendering from browser Take website domain name;Searching module, for searching the corresponding expanded configuration file of the website domain name;Loading module is used for basis Page rendering file address in the expanded configuration file loads the page rendering file of the address;Calling module is used for root According to the page rendering file, the browser is called to render the page rendered again, generating has the page The Website page of management function.
Optionally, page address is obtained in the page after the calling module is also used to render from browser, is then searched The browser is called to render to described and according to the rendering method with rendering method corresponding to the page address The page rendered again, generate have page management function Website page.
Optionally, the expanded configuration file includes extension title, extended version, extended description, extension instruction page, figure Mark, page rendering file address and website domain name.
Optionally, the page rendering file includes one or more page addresses, management function corresponding to page address Rendering method corresponding to energy configuration and page address.
According to the technique and scheme of the present invention, due to increasing expanded configuration file and page rendering file, browser energy Enough Website pages according to the increased file generated of institute with page management function, not only solving content manager can not be clear Look at content of pages when the problem of being done directly the management of content of pages, and manage function caused by avoiding because of browsing pages adjustment Can be abnormal, thus the user experience of viewer and manager are improved to a certain extent, reduce answering for addition management function Miscellaneous degree;Since in the inventive solutions, browser is only once requested, thus decrease since generation is extra Consumption of the network request to the performance of server;Simultaneously because the multi-site configuration and administration feature point in page rendering file Configuration, enable technical solution of the present invention support multi-site configure and management function point configuration.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is a kind of schematic diagram of the generating means of Website page according to an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of the generation method of Website page according to an embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is a kind of schematic diagram of the generating means of Website page according to an embodiment of the present invention.As shown in Figure 1, this hair The generating means 10 (i.e. browser extension) of the Website page of bright embodiment mainly include obtaining module 11, searching module 12, adding Carry module 13 and calling module 14.Module 11 is obtained to be used to obtain website domain name from the page after browser rendering;It searches Module 12 is for searching the corresponding expanded configuration file of the website domain name;Loading module 13 is used for according to the expanded configuration text Page rendering file address in part loads the page rendering file of the address;Calling module 14 is used for according to the page wash with watercolours File is contaminated, the browser is called to render the page rendered again, generates the net with page management function It stands the page.
The calling module 14 of the generating means 10 of the Website page of the embodiment of the present invention can also be used in after rendering from browser The page in obtain page address, then search with rendering method corresponding to the page address, and according to the rendering side Method calls the browser to render the page rendered again, generates the website pages with page management function Face.
Fig. 2 is a kind of schematic diagram of the generation method of Website page according to an embodiment of the present invention.As shown in Fig. 2, browsing Device is extended to the main body for executing this method, and this method mainly includes the following steps, namely S20 to S23.
Step S20: website domain name is obtained from the page after browser rendering.In this step, server is to receiving The request that issues of browser responded, and the data for responding the request are returned into browser, then browser returns this The data returned carry out rendering and generate Website page, and last browser extension obtains website domain from the page after browser rendering Name;Wherein, browser extension belongs to a part of browser, for the customized of browser function.
Step S21: the corresponding expanded configuration file of the website domain name is searched.Wherein, expanded configuration file includes extension Title, extended version, extended description, extension instruction page, icon, page rendering file address and website domain name.Browser The website domain name got in step S20 is compared with the website domain name in expanded configuration file for extension, to search To the expanded configuration file for corresponding to the website domain name got in step S20.
Step S22: according to the page rendering file address in the expanded configuration file, the page rendering of the address is loaded File.In this step, browser extension corresponds to the ground according to the page rendering file address in expanded configuration file, load The page rendering file of location.
Step S23: according to the page rendering file, the browser is called to carry out the page rendered again Rendering generates the Website page with page management function.Page rendering file includes one or more page addresses, the page Rendering method corresponding to the configuration of management function corresponding to location and page address.In this step, browser extends first Page address is obtained from the page after browser rendering, the page address that then will acquire and is recorded in page rendering file Page address be compared, thus find with obtain page address corresponding to rendering method, finally, according to the page Rendering method corresponding to location calls the browser to render the page of rendered mistake again, so that generating has The Website page of page management function.Page management function specifically includes that the management function of the management function of content of pages, comment Energy and the management function of Website page theme etc..
Technical solution according to an embodiment of the present invention, it is clear due to increasing expanded configuration file and page rendering file Look at device can according to increased file generated have page management function Website page, not only solve content manager without The problem of method is done directly the management of content of pages in browsing pages content, and avoid because browsing pages adjustment caused by Management function is abnormal, thus improves the user experience of viewer and manager to a certain extent, reduces addition management function The complexity of energy;Since in the technical solution of the embodiment of the present invention, browser is only once requested, thus is decreased Due to generating consumption of the extra network request to the performance of server;Simultaneously because the multi-site in page rendering file configures With the configuration of management function point, the technical solution of the embodiment of the present invention is enabled to support multi-site configuration and management function point Configuration.
Describe basic principle of the invention in conjunction with specific embodiments above, in the apparatus and method of the present invention, it is clear that Each component or each step can be decomposed and/or be reconfigured.These decompose and/or reconfigure should be regarded as it is of the invention etc. Efficacious prescriptions case.Also, the step of executing above-mentioned series of processes can execute according to the sequence of explanation in chronological order naturally, still It does not need centainly to execute sequentially in time.Certain steps can execute parallel or independently of one another.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (8)

1. a kind of generation method of Website page characterized by comprising
Browser extension obtains website domain name from the page after browser rendering;
Search the corresponding expanded configuration file of the website domain name;
According to the page rendering file address in the expanded configuration file, the page rendering file of the address is loaded;
According to the page rendering file, the browser is called to render the page rendered again, generates tool There is the Website page of page management function.
2. calling is described clear the method according to claim 1, wherein described according to the page rendering file Device of looking at renders the page rendered again, and generation the step of having the Website page of page management function includes:
Page address is obtained from the page after browser rendering;
It searches and rendering method corresponding to the page address;
According to the rendering method, the browser is called to render the page rendered again, generating has page The Website page of face management function.
3. method according to claim 1 or 2, which is characterized in that the expanded configuration file includes extension title, extension Version, extended description, extension instruction page, icon, page rendering file address and website domain name.
4. method according to claim 1 or 2, which is characterized in that the page rendering file includes one or more pages Rendering method corresponding to the configuration of management function corresponding to face address, page address and page address.
5. a kind of generating means of Website page, which is characterized in that extended including browser, the browser extension includes obtaining Module, searching module, loading module and calling module, in which:
Module is obtained, for obtaining website domain name in the page after rendering from browser;
Searching module, for searching the corresponding expanded configuration file of the website domain name;
Loading module, for loading the page wash with watercolours of the address according to the page rendering file address in the expanded configuration file Contaminate file;
Calling module, for according to the page rendering file, call the browser to the page rendered again into Row rendering, generates the Website page with page management function.
6. device according to claim 5, which is characterized in that the calling module is also used to from the page after browser rendering Page address is obtained in face, then lookup and rendering method corresponding to the page address, and according to the rendering method, adjust The page rendered is rendered again with the browser, generates the Website page with page management function.
7. device according to claim 5 or 6, which is characterized in that the expanded configuration file includes extension title, extension Version, extended description, extension instruction page, icon, page rendering file address and website domain name.
8. device according to claim 5 or 6, which is characterized in that the page rendering file includes one or more pages Rendering method corresponding to the configuration of management function corresponding to face address, page address and page address.
CN201510181506.1A 2015-04-16 2015-04-16 A kind of generation method and device of Website page Active CN104765844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510181506.1A CN104765844B (en) 2015-04-16 2015-04-16 A kind of generation method and device of Website page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510181506.1A CN104765844B (en) 2015-04-16 2015-04-16 A kind of generation method and device of Website page

Publications (2)

Publication Number Publication Date
CN104765844A CN104765844A (en) 2015-07-08
CN104765844B true CN104765844B (en) 2019-02-19

Family

ID=53647672

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510181506.1A Active CN104765844B (en) 2015-04-16 2015-04-16 A kind of generation method and device of Website page

Country Status (1)

Country Link
CN (1) CN104765844B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682960B (en) * 2016-12-20 2020-10-13 深圳市创想天空科技股份有限公司 Method and device for generating landing page
CN108259480A (en) * 2018-01-02 2018-07-06 杭州探索文化传媒有限公司 Video data handling procedure and device
CN109902247B (en) * 2019-02-14 2021-04-16 北京奇艺世纪科技有限公司 Page rendering method and device and electronic equipment
CN111931111A (en) * 2020-08-14 2020-11-13 工银科技有限公司 Webpage development method, webpage display method, device and equipment
CN112527429B (en) * 2020-11-30 2024-01-19 文思海辉智科科技有限公司 Page configuration method and device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306174A (en) * 2011-08-24 2012-01-04 百度在线网络技术(北京)有限公司 Method and equipment for interacting with user based on web page elements
CN103455503A (en) * 2012-05-31 2013-12-18 腾讯科技(深圳)有限公司 Word stock collection method, webpage rendering method, device and system
CN104158836A (en) * 2014-06-23 2014-11-19 浙江大学城市学院 Method for rendering mobile application interface through data
CN104182403A (en) * 2013-05-22 2014-12-03 阿里巴巴集团控股有限公司 Method and equipment for loading image information
CN104281447A (en) * 2014-09-01 2015-01-14 国家电网公司 Report form fast generating and issuing system and method
CN104462424A (en) * 2014-12-12 2015-03-25 北京奇虎科技有限公司 Method, device, client and system for generating grid page in mobile browser

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8156418B2 (en) * 2008-06-05 2012-04-10 Microsoft Corporation Image acquisition from dynamic content for delivery to network-enabled static display devices
US20140067934A1 (en) * 2012-08-30 2014-03-06 Sarah Ware System and method to provide a social network layer over the World-Wide Web and other networks

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102306174A (en) * 2011-08-24 2012-01-04 百度在线网络技术(北京)有限公司 Method and equipment for interacting with user based on web page elements
CN103455503A (en) * 2012-05-31 2013-12-18 腾讯科技(深圳)有限公司 Word stock collection method, webpage rendering method, device and system
CN104182403A (en) * 2013-05-22 2014-12-03 阿里巴巴集团控股有限公司 Method and equipment for loading image information
CN104158836A (en) * 2014-06-23 2014-11-19 浙江大学城市学院 Method for rendering mobile application interface through data
CN104281447A (en) * 2014-09-01 2015-01-14 国家电网公司 Report form fast generating and issuing system and method
CN104462424A (en) * 2014-12-12 2015-03-25 北京奇虎科技有限公司 Method, device, client and system for generating grid page in mobile browser

Also Published As

Publication number Publication date
CN104765844A (en) 2015-07-08

Similar Documents

Publication Publication Date Title
CN104765844B (en) A kind of generation method and device of Website page
US10412176B2 (en) Website access method, apparatus, and website system
CN102938776B (en) Dynamic page processing system based on ajax technology
WO2016011883A1 (en) Data resource acquisition method, device and system
CN103077171B (en) Method and terminal for adding quick link
US8135732B2 (en) System and method for providing network-based services to users with high availability
CN102521257B (en) Method and device for providing corresponding on-line picture according to thumbnail
CN103581358B (en) IP address list matching method and device
CN102541732A (en) Method for constructing Web automatic testing framework
US20200142674A1 (en) Extracting web api endpoint data from source code
KR102121679B1 (en) Link request processing method and device
CN108363734A (en) The page generates the method and device of picture
CN105068802A (en) Cross device running Web application software implementation system and method
CN102156697A (en) Method and terminal equipment for realizing webpage application through widget
CN102664952A (en) Method for managing and monitoring embedded equipment cluster
US10095791B2 (en) Information search method and apparatus
CN104980464A (en) Network request processing method, network server and network system
CN104765811A (en) Device, system and method for providing associated searching keywords for users
CN104572194B (en) A kind of module loading method and apparatus
CN106126743A (en) The generation method and system of the configuration page
CN103778181B (en) The introduction method and device of icon in browser collection folder
CN102902791B (en) Web page classification storage system and method
CN110598146B (en) SPA application program implementation method and device based on Reactjs
CN103455351A (en) Method and device for quickly installing application
CN107766046A (en) A kind of built modular method based on mobility framework

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant