CN104468795B - The method and system of website sharing function - Google Patents

The method and system of website sharing function Download PDF

Info

Publication number
CN104468795B
CN104468795B CN201410758360.8A CN201410758360A CN104468795B CN 104468795 B CN104468795 B CN 104468795B CN 201410758360 A CN201410758360 A CN 201410758360A CN 104468795 B CN104468795 B CN 104468795B
Authority
CN
China
Prior art keywords
js
website
sharing
exclusive
function
Prior art date
Application number
CN201410758360.8A
Other languages
Chinese (zh)
Other versions
CN104468795A (en
Inventor
冯鸳鹤
张鹏宵
Original Assignee
北京国双科技有限公司
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 北京国双科技有限公司 filed Critical 北京国双科技有限公司
Priority to CN201410758360.8A priority Critical patent/CN104468795B/en
Publication of CN104468795A publication Critical patent/CN104468795A/en
Application granted granted Critical
Publication of CN104468795B publication Critical patent/CN104468795B/en

Links

Abstract

The invention discloses a kind of method and systems of website sharing function.Wherein, the implementation method of the website sharing function includes:User website server sends sharing function request to sharing website server, and sharing website server is used to be asked to return to exclusive sharing function parameter corresponding with user website to user website server according to the sharing function from user website server;And user website server realizes the sharing function for being specific to user website according to the exclusive sharing function parameter of return.Through the invention, solve the problems, such as that public JS files unified in the related technology cannot be satisfied the individual demand of each different user website.

Description

The method and system of website sharing function

Technical field

The present invention relates to internet arenas, in particular to a kind of method and system of website sharing function.

Background technology

Currently, in the related art, what all sharing websites all led to public JS files to control user website shares work( Can (e.g., sharing operation function and share pattern function), in other words, currently, all sharing websites all give user website offer One public JS file, user website quote the public JS files to realize sharing function.Since this technical solution makes institute There is the user website all to quote unified public JS files, thus shares product (e.g., public JS files) convenient for sharing website Maintenance and upgrade.However, all using unified public JS files just because of all user websites, therefore cause it that can not expire The individual demand of each different user website of foot:

(1) share product and lack flexibility, it is difficult to meet the individual demand of different user website.For example, party A-subscriber website Want it is rectangular share interface, and what square was wanted in party B-subscriber website shares interface, and in this case, current is public JS files are just difficult to meet the needs of these are different simultaneously.For another example some user websites want the base in original sharing function When customizing new sharing function on plinth, at this moment, unified public JS files have just thoroughly broken off user website and have wanted to realize individual character The hope of change demand.

(2) if sharing product up-gradation, but certain user website thinks that pervious sharing module is more preferable, thus is not desired to At this moment upgrading can then force user website to be upgraded using unified public JS files.

(3) individual difference of user website causes to exist between its layout and the default layout of sharing function and conflict.For example, In unified public JS files, share the right side that column is arranged on full page, and the right side of the current page of C user websites But it is provided with important content, in this case, the default setting of public JS files just produces punching with the layout of C user websites It is prominent.

It cannot be satisfied the individual demand of each different user website for public JS files unified in the related technology Problem, currently no effective solution has been proposed.

Invention content

The main purpose of the present invention is to provide a kind of method and systems of website sharing function, to solve related skill The problem of unified public JS files cannot be satisfied the individual demand of each different user website in art.

To achieve the goals above, according to an aspect of the invention, there is provided a kind of realization side of website sharing function Method.This method includes:User website server sends sharing function request, above-mentioned sharing website service to sharing website server Device be used for according to the above-mentioned sharing function from above-mentioned user website server ask to above-mentioned user website server return with The corresponding exclusive sharing function parameter of user website;And above-mentioned user website server exclusive is shared according to the above-mentioned of return Functional parameter realizes the sharing function for being specific to above-mentioned user website.

Further, above-mentioned exclusive sharing function parameter is exclusive JS files, wherein above-mentioned sharing website server passes through Following manner generates above-mentioned exclusive JS files:It obtains function JS codes and obtains configuration JS codes, wherein above-mentioned function JS codes For the code for describing default sharing function, above-mentioned configuration JS codes are to share work(for describe above-mentioned user website configuration The code of energy, and above-mentioned configuration JS codes are corresponded with above-mentioned user website;And above-mentioned configuration JS codes are filled supreme It states in function JS codes, generates above-mentioned exclusive JS files corresponding with above-mentioned user website.

Further, above-mentioned user website server is specific to according to the above-mentioned exclusive sharing function parameter realization of return The sharing function for stating user website includes:Above-mentioned user website server is specific to according to the above-mentioned exclusive JS file generateds of return Control is shared in the personalization of above-mentioned user website, and by the above-mentioned personalization for being specific to above-mentioned user website share control include On above-mentioned user website.

Further, it fills into above-mentioned function JS codes, generates and above-mentioned user website by above-mentioned configuration JS codes After corresponding above-mentioned exclusive JS files, above-mentioned implementation method further includes:Whether above-mentioned function JS codes are promoted;If It detects that above-mentioned function JS codes are promoted, then whether judges in above-mentioned configuration JS codes comprising the code for agreeing to upgrading;Such as Fruit is judged to include the code of above-mentioned agreement upgrading in above-mentioned configuration JS codes, then updates on corresponding with above-mentioned user website State exclusive JS files;And if it is judged that the code not upgraded comprising above-mentioned agreement in above-mentioned configuration JS codes, then do not update Above-mentioned exclusive JS files corresponding with above-mentioned user website.

Further, it fills into above-mentioned function JS codes, generates and above-mentioned user website by above-mentioned configuration JS codes After corresponding above-mentioned exclusive JS files, above-mentioned implementation method further includes:Whether altered detect above-mentioned configuration JS codes; And if detecting that above-mentioned configuration JS codes are altered, the configuration JS codes after change were filled to above-mentioned function JS generations In code, exclusive JS files corresponding with above-mentioned user website are regenerated.

To achieve the goals above, according to another aspect of the present invention, a kind of realization system of website sharing function is provided System.The system includes:User website server, for sending sharing function request to sharing website server;It is above-mentioned to share net Site server, for being asked to above-mentioned user website server according to the above-mentioned sharing function from above-mentioned user website server Return to exclusive sharing function parameter corresponding with user website;And above-mentioned user website server, it is additionally operable to according to return Above-mentioned exclusive sharing function parameter realize the sharing function for being specific to above-mentioned user website.

Further, above-mentioned exclusive sharing function parameter is exclusive JS files, wherein above-mentioned sharing website server is also used In generating above-mentioned exclusive JS files in the following manner:It obtains function JS codes and obtains configuration JS codes, wherein above-mentioned function JS codes are the code for describing default sharing function, and above-mentioned configuration JS codes are for describing above-mentioned user website configuration The code of sharing function, and above-mentioned configuration JS codes are corresponded with above-mentioned user website;And above-mentioned configuration JS codes are filled out It is charged in above-mentioned function JS codes, generates above-mentioned exclusive JS files corresponding with above-mentioned user website.

Further, above-mentioned user website server is additionally operable to be realized according to the above-mentioned exclusive sharing function parameter of return special The sharing function for belonging to above-mentioned user website includes:Above-mentioned user website server is additionally operable to the above-mentioned exclusive JS texts according to return Control is shared in the personalization that part generation is specific to above-mentioned user website, and the above-mentioned personalization for being specific to above-mentioned user website is divided Control is enjoyed to be shown on above-mentioned user website.

Further, it fills into above-mentioned function JS codes, generates and above-mentioned user website by above-mentioned configuration JS codes After corresponding above-mentioned exclusive JS files, above-mentioned sharing website server is additionally operable to:Whether to detect above-mentioned function JS codes It is promoted;If detecting that above-mentioned function JS codes are promoted, judge whether risen comprising agreement in above-mentioned configuration JS codes The code of grade;If it is judged that including the code of above-mentioned agreement upgrading in above-mentioned configuration JS codes, then update and above-mentioned user network It stands corresponding above-mentioned exclusive JS files;And if it is judged that do not include the generation of above-mentioned agreement upgrading in above-mentioned configuration JS codes Code, then do not update above-mentioned exclusive JS files corresponding with above-mentioned user website.

Further, it fills into above-mentioned function JS codes, generates and above-mentioned user website by above-mentioned configuration JS codes After corresponding above-mentioned exclusive JS files, above-mentioned sharing website server is additionally operable to:Whether to detect above-mentioned configuration JS codes It is altered;And if detecting that above-mentioned configuration JS codes are altered, the configuration JS codes after change are filled to above-mentioned In function JS codes, exclusive JS files corresponding with above-mentioned user website are regenerated.

Through the invention, sharing function request is sent to sharing website server using user website server, shares net Site server is used to be asked to the return of user website server and user network according to the sharing function from user website server It stands corresponding exclusive sharing function parameter;And user website server is realized specially according to the exclusive sharing function parameter of return The sharing function for belonging to user website solves public JS files unified in the related technology and cannot be satisfied each different user net The problem of individual demand stood, and then reached the individual demand effect for meeting each different user website.

Description of the drawings

The attached drawing constituted part of this application is used to provide further understanding of the present invention, schematic reality of the invention Example and its explanation are applied for explaining the present invention, is not constituted improper limitations of the present invention.In the accompanying drawings:

Fig. 1 is the flow chart of the implementation method of website sharing function according to the ... of the embodiment of the present invention;And

Fig. 2 is the schematic diagram of the realization system of website sharing function according to the ... of the embodiment of the present invention.

Specific implementation mode

It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.

In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, technical solutions in the embodiments of the present application are clearly and completely described, it is clear that described embodiment is only The embodiment of the application part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people The every other embodiment that member is obtained without making creative work should all belong to the model of the application protection It encloses.

It should be noted that term " first " in the description and claims of this application and above-mentioned attached drawing, " Two " etc. be for distinguishing similar object, without being used to describe specific sequence or precedence.It should be appreciated that using in this way Data can be interchanged in the appropriate case, so as to embodiments herein described herein.In addition, term " comprising " and " tool Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing series of steps or unit Process, method, system, product or equipment those of are not necessarily limited to clearly to list step or unit, but may include without clear It is listing to Chu or for these processes, method, product or equipment intrinsic other steps or unit.

According to an embodiment of the invention, a kind of implementation method of website sharing function is provided.The website sharing function Implementation method may operate on computer-processing equipment.

Fig. 1 is the flow chart of the implementation method of website sharing function according to the ... of the embodiment of the present invention.As shown in Figure 1, the party Method includes following step S102 to step S104:

Step S102, user website server send sharing function request to sharing website server.

Sharing function request for user website for asking required sharing function.Wherein, sharing function may include: One basic sharing function and one or more additional sharing functions.Basic sharing function shares button for click and carries out sharing behaviour Work energy;Additional sharing function is other sharing functions other than basic sharing function, for example, passing through short message sending point Content is enjoyed to the function of designated mobile phone terminal.

Above-mentioned sharing function, including:Basic sharing function and additional sharing function, can be compiled by a variety of programming languages Cheng Shixian is realized for example, they can be encoded by JS.Hereinafter this hair is elaborated by taking the sharing function encoded by JS as an example It is bright.

It for basic sharing function, can first be encoded using JS, obtain one section of JS code, then press this section of JS code Contracting, encryption generate compress encrypted JS codes later, that is, core JS codes;It, can also be first for each additional sharing function It is encoded using JS, obtains corresponding JS code segments, then corresponding JS code segments are compressed, are encrypted, generated compression later and add JS code segments after close, that is, additional JS codes.Wherein, core JS codes and additional JS codes are together as function JS codes.

When implementing, each user website can configure basic sharing function on demand, and generation is specific to each user network The exclusive JS codes of personalization stood simultaneously are uploaded to sharing website server, for example, party A-subscriber website, which can configure and generate, shares boundary The exclusive JS codes of personalization of the theme colors and shape in face etc..Meanwhile sharing website corresponding with sharing website server The additional sharing function of different user website can then be configured on demand, generate and be specific to the personalized special of each user website Belong to JS codes and be uploaded to sharing website server, is opened through short message sending net for example, sharing website can be party A-subscriber website Function of the page content to mobile phone terminal.Wherein, the exclusive JS generations of the exclusive JS codes of user website configuration and sharing website configuration Code is together as configuration JS codes.

It should be noted that function JS codes above-mentioned and configuration JS codes can be assembled into one by sharing website server It rises, forms exclusive JS files, and compress to the code in exclusive JS files, obtain final exclusive JS files.

Sharing website server, which can be used for basis, asks from the sharing function of user website server to user website Server returns to exclusive sharing function parameter corresponding with user website.

When implementation, when the user website (e.g., Government of the People's Republic of China's net) with sharing function allow share net When page is opened or is loaded every time, that is, when user website is needed using sharing function, it can pass through the use of itself Family Website server sends sharing function request to sharing website server and shares work(to be arranged on current permission sharing web page Can, including sharing operation with share pattern etc..

And sharing function request, and corresponding point of sharing website are sent to sharing website server in user website server Enjoy Website server receive from user website server sharing function request after, it can first read and the user network It stands corresponding sharing function parameter, and it is pre-processed, the user website is specific to further according to pre-processed results generation Sharing function parameter, that is, then exclusive sharing function parameter corresponding with user website is returned the exclusive sharing function parameter It is back to user website server.

Step S104, user website server are specific to user website according to the realization of the exclusive sharing function parameter of return Sharing function.

For example, in unified public sharing function parameter, the background color parameter of sharing module on any user website Default value be all Background Color=Blue, and use the embodiment of the present invention, user website then can configure voluntarily The background color parameter of sharing module on oneself website, for example, Background Color are assigned a value of Red, that is, setting The background colour of sharing module is changed into the red of personalization by Background Color=Red to realize by the blue given tacit consent to The purpose of color.

Through the embodiment of the present invention, it is specific to the sharing function ginseng of itself since different user websites can be pre-configured with Number (e.g., exclusive JS files), when user website initiates sharing function request by user website server, sharing website service Device can be handled the pre-configured sharing function parameter that is specific to, and handling result is sent to corresponding user network It stands, thereby realizes the purpose of the sharing function of user website oneself customization, reached and met each different user website Individual demand effect.

Preferably, in embodiments of the present invention, exclusive sharing function parameter can be exclusive JS files, in this way, sharing net Site server can generate exclusive JS files in the following manner:

S2 obtains function JS codes and obtains configuration JS codes, wherein function JS codes are to share work(for describing to preset The code of energy, configuration JS codes are the code of the sharing function for describing user website configuration, and configure JS codes and user Website corresponds;And

Configuration JS codes are filled into function JS codes, generate exclusive JS files corresponding with user website by S4.

When implementation, a file consistent with the ID of user can be created under the root of sharing website, and will before The exclusive JS files that sharing module is customized by user website stated are saved under this document folder.Wherein, in exclusive JS files, work( Energy JS codes are in file front, and configuration JS codes are in file rear portion.In this way, realizing configuration JS codes and user website one One corresponding purpose, and then realize exclusive JS files and the one-to-one purpose of user website.

Through the embodiment of the present invention, since by the function JS codes of sharing module and JS code dehinds can be configured so that User website can neatly select the function of sharing module, and by giving each user website to formulate a exclusive JS generations Code so that user can freely select the version of sharing module, meet various personalizations of the user website to sharing module Demand, and when the function JS code upgrades of sharing website, user website can also freely select upgraded version or common Version.

Preferably, in embodiments of the present invention, user website server is realized according to the exclusive sharing function parameter of return The sharing function for being specific to user website may include:

S6, user website server share control according to the personalization that the exclusive JS file generateds of return are specific to user website Part, and it includes on user website that control is shared in the personalization for being specific to user website.

Preferably, in embodiments of the present invention, it fills into function JS codes JS codes will be configured, generates and user network It stands after corresponding exclusive JS files, which can also include:

Whether S8, detection function JS code are promoted;

Whether S10 judges to configure in JS codes if detecting that function JS codes are promoted comprising agreement upgrading Code;

S12 then updates corresponding with user website if it is judged that comprising the code for agreeing to upgrading in configuration JS codes Exclusive JS files;And

S14 does not update then opposite with user website if it is judged that not including the code for agreeing to upgrading in configuration JS codes The exclusive JS files answered.

That is, in embodiments of the present invention, if the partial function of sharing website improves, function JS codes can be made Upgrading, at this point, whether user can update the exclusive JS files of oneself with unrestricted choice.If user selects update, share net Site server can update the exclusive JS files under the file corresponding to the ID of the user;If user's selection does not update, divide It enjoys Website server and does any processing.In this way, the leeway of user's selection is not only increased, and even if the new version of upgrading occurs Problem will not influence the user not upgraded.

Preferably, in embodiments of the present invention, it fills into function JS codes JS codes will be configured, generates and user network It stands after corresponding exclusive JS files, which can also include:

Whether S16, detection configuration JS codes are altered;And

S18 fills the configuration JS codes after change to function JS generations if detecting that configuration JS codes are altered In code, exclusive JS files corresponding with user website are regenerated.

Since user website with the upgrading of function JS codes other than it can upgrade, itself can also be actively changed Demand, that is, the configuration JS code sections in exclusive JS files are changed, therefore, through the embodiment of the present invention, to specific user's net The configuration JS codes stood do not interfere with the use to current sharing function of other users website when being modified.

It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not The sequence being same as herein executes shown or described step.

According to an embodiment of the invention, a kind of realization system of website sharing function is provided.It should be noted that this hair The implementation method for the website sharing function that bright embodiment is provided can be through the embodiment of the present invention website sharing function reality Show system to execute, the realization system of the website sharing function of the embodiment of the present invention can be used for executing the embodiment of the present invention The implementation method of website sharing function.

Fig. 2 is the schematic diagram of the realization system of website sharing function according to the ... of the embodiment of the present invention.As shown in Fig. 2, this is System includes:User website server 10 and sharing website server 20.

User website server 10 is used to send sharing function request to sharing website server.

Sharing function request for user website for asking required sharing function.Wherein, sharing function may include: One basic sharing function and one or more additional sharing functions.Basic sharing function shares button for click and carries out sharing behaviour Work energy;Additional sharing function is other sharing functions other than basic sharing function, for example, passing through short message sending point Content is enjoyed to the function of designated mobile phone terminal.

Above-mentioned sharing function, including:Basic sharing function and additional sharing function, can be compiled by a variety of programming languages Cheng Shixian is realized for example, they can be encoded by JS.Hereinafter this hair is elaborated by taking the sharing function encoded by JS as an example It is bright.

It for basic sharing function, can first be encoded using JS, obtain one section of JS code, then press this section of JS code Contracting, encryption generate compress encrypted JS codes later, that is, core JS codes;It, can also be first for each additional sharing function It is encoded using JS, obtains corresponding JS code segments, then corresponding JS code segments are compressed, are encrypted, generated compression later and add JS code segments after close, that is, additional JS codes.Wherein, core JS codes and additional JS codes are together as function JS codes.

When implementing, each user website can configure basic sharing function on demand, and generation is specific to each user network The exclusive JS codes of personalization stood simultaneously are uploaded to sharing website server, for example, party A-subscriber website, which can configure and generate, shares boundary The exclusive JS codes of personalization of the theme colors and shape in face etc..Meanwhile sharing website corresponding with sharing website server The additional sharing function of different user website can then be configured on demand, generate and be specific to the personalized special of each user website Belong to JS codes and be uploaded to sharing website server, is opened through short message sending net for example, sharing website can be party A-subscriber website Function of the page content to mobile phone terminal.Wherein, the exclusive JS generations of the exclusive JS codes of user website configuration and sharing website configuration Code is together as configuration JS codes.

It should be noted that function JS codes above-mentioned and configuration JS codes can be assembled into one by sharing website server It rises, forms exclusive JS files, and compress to the code in exclusive JS files, obtain final exclusive JS files.

Sharing website server 20, which can be used for basis, asks from the sharing function of user website server to user network Site server returns to exclusive sharing function parameter corresponding with user website.

When implementation, when the user website (e.g., Government of the People's Republic of China's net) with sharing function allow share net When page is opened or is loaded every time, that is, when user website is needed using sharing function, it can pass through the use of itself Family Website server sends sharing function request to sharing website server and shares work(to be arranged on current permission sharing web page Can, including sharing operation with share pattern etc..

And sharing function request, and corresponding point of sharing website are sent to sharing website server in user website server Enjoy Website server receive from user website server sharing function request after, it can first read and the user network It stands corresponding sharing function parameter, and it is pre-processed, the user website is specific to further according to pre-processed results generation Sharing function parameter, that is, then exclusive sharing function parameter corresponding with user website is returned the exclusive sharing function parameter It is back to user website server.

User website server 10 is additionally operable to be specific to user website according to the realization of the exclusive sharing function parameter of return Sharing function.

For example, in unified public sharing function parameter, the background color parameter of sharing module on any user website Default value be all Background Color=Blue, and use the embodiment of the present invention, user website then can configure voluntarily The background color parameter of sharing module on oneself website, for example, Background Color are assigned a value of Red, that is, setting The background colour of sharing module is changed into the red of personalization by Background Color=Red to realize by the blue given tacit consent to The purpose of color.

Through the embodiment of the present invention, it is specific to the sharing function ginseng of itself since different user websites can be pre-configured with Number (e.g., exclusive JS files), when user website initiates sharing function request by user website server, sharing website service Device can be handled the pre-configured sharing function parameter that is specific to, and handling result is sent to corresponding user network It stands, thereby realizes the purpose of the sharing function of user website oneself customization, reached and met each different user website Individual demand effect.

Preferably, in embodiments of the present invention, exclusive sharing function parameter is exclusive JS files, in this way, sharing website takes Business device is additionally operable to generate exclusive JS files in the following manner:

S2 obtains function JS codes and obtains configuration JS codes, wherein function JS codes are to share work(for describing to preset The code of energy, configuration JS codes are the code of the sharing function for describing user website configuration, and configure JS codes and user Website corresponds;And

Configuration JS codes are filled into function JS codes, generate exclusive JS files corresponding with user website by S4.

When implementation, a file consistent with the ID of user can be created under the root of sharing website, and will before The exclusive JS files that sharing module is customized by user website stated are saved under this document folder.Wherein, in exclusive JS files, work( Energy JS codes are in file front, and configuration JS codes are in file rear portion.In this way, realizing configuration JS codes and user website one One corresponding purpose, and then realize exclusive JS files and the one-to-one purpose of user website.

Through the embodiment of the present invention, since by the function JS codes of sharing module and JS code dehinds can be configured so that User website can neatly select the function of sharing module, and by giving each user website to formulate a exclusive JS generations Code so that user can freely select the version of sharing module, meet various personalizations of the user website to sharing module Demand, and when the function JS code upgrades of sharing website, user website can also freely select upgraded version or common Version.

Preferably, in embodiments of the present invention, user website server is additionally operable to be joined according to the exclusive sharing function of return Number realizes that the sharing function for being specific to user website may include:

S6, user website server share control according to the personalization that the exclusive JS file generateds of return are specific to user website Part, and it includes on user website that control is shared in the personalization for being specific to user website.

Preferably, in embodiments of the present invention, it fills into function JS codes JS codes will be configured, generates and user network It stands after corresponding exclusive JS files, which can be also used for:

Whether S8, detection function JS code are promoted;

Whether S10 judges to configure in JS codes if detecting that function JS codes are promoted comprising agreement upgrading Code;

S12 then updates corresponding with user website if it is judged that comprising the code for agreeing to upgrading in configuration JS codes Exclusive JS files;And

S14 does not update then opposite with user website if it is judged that not including the code for agreeing to upgrading in configuration JS codes The exclusive JS files answered.

That is, in embodiments of the present invention, if the partial function of sharing website improves, function JS codes can be made Upgrading, at this point, whether user can update the exclusive JS files of oneself with unrestricted choice.If user selects update, share net Site server can update the exclusive JS files under the file corresponding to the ID of the user;If user's selection does not update, divide It enjoys Website server and does any processing.In this way, the leeway of user's selection is not only increased, and even if the new version of upgrading occurs Problem will not influence the user not upgraded.

Preferably, in embodiments of the present invention, it fills into function JS codes JS codes will be configured, generates and user network It stands after corresponding exclusive JS files, which can be also used for:

Whether S16, detection configuration JS codes are altered;And

S18 fills the configuration JS codes after change to function JS generations if detecting that configuration JS codes are altered In code, exclusive JS files corresponding with user website are regenerated.

Since user website with the upgrading of function JS codes other than it can upgrade, itself can also be actively changed Demand, that is, the configuration JS code sections in exclusive JS files are changed, therefore, through the embodiment of the present invention, to specific user's net The configuration JS codes stood do not interfere with the use to current sharing function of other users website when being modified.

Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing system realize that they can be concentrated in single computing system, or be distributed in multiple computing systems and formed Network on, optionally, they can be realized with the program code that computing system can perform, it is thus possible to they are stored Executed within the storage system by computing system, either they are fabricated to each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific Hardware and software combines.

The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (6)

1. a kind of implementation method of website sharing function, which is characterized in that including:
User website server sends sharing function request to sharing website server, and the sharing website server is used for basis The sharing function from the user website server asks to return and user website phase to the user website server Corresponding exclusive sharing function parameter;And
The user website server is specific to the user website according to the exclusive sharing function parameter realization of return Sharing function;
Wherein, the exclusive sharing function parameter is exclusive JS files, wherein the sharing website server is in the following manner Generate the exclusive JS files:
It obtains function JS codes and obtains configuration JS codes, wherein the function JS codes are for describing default sharing function Code, the configuration JS codes are the code of the sharing function for describing user website configuration, and the configuration JS Code is corresponded with the user website;And
The configuration JS codes are filled into the function JS codes, are generated corresponding with the user website described exclusive JS files;
Whether promoted detect the function JS codes;
If detecting that the function JS codes are promoted, whether judge in the configuration JS codes comprising agreement upgrading Code;
If it is judged that then being updated opposite with the user website comprising the code for agreeing to upgrading in the configuration JS codes The exclusive JS files answered;And
If it is judged that not including the code for agreeing to upgrading in the configuration JS codes, then do not update and the user website The corresponding exclusive JS files.
2. the implementation method of website sharing function according to claim 1, which is characterized in that the user website server Realize that the sharing function for being specific to the user website includes according to the exclusive sharing function parameter of return:
The user website server is specific to the personalization of the user website according to the exclusive JS file generateds of return Share control, and it includes on the user website that control is shared in the personalization for being specific to the user website.
3. the implementation method of website sharing function according to claim 1, which is characterized in that by the configuration JS codes In filling to the function JS codes, after generating the exclusive JS files corresponding with the user website, the realization Method further includes:
Whether altered detect the configuration JS codes;And
If detecting that the configuration JS codes are altered, the configuration JS codes after change were filled to the function JS generations In code, exclusive JS files corresponding with the user website are regenerated.
4. a kind of realization system of website sharing function, which is characterized in that including:
User website server, for sending sharing function request to sharing website server;
The sharing website server, for being asked to described according to the sharing function from the user website server User website server returns to exclusive sharing function parameter corresponding with user website;And
The user website server is additionally operable to be specific to the user according to the exclusive sharing function parameter realization of return The sharing function of website;
Wherein, the exclusive sharing function parameter be exclusive JS files, wherein the sharing website server be additionally operable to by with Under type generates the exclusive JS files:
It obtains function JS codes and obtains configuration JS codes, wherein the function JS codes are for describing default sharing function Code, the configuration JS codes are the code of the sharing function for describing user website configuration, and the configuration JS Code is corresponded with the user website;And
The configuration JS codes are filled into the function JS codes, are generated corresponding with the user website described exclusive JS files;
Wherein, the sharing website server is additionally operable to:
Whether promoted detect the function JS codes;
If detecting that the function JS codes are promoted, whether judge in the configuration JS codes comprising agreement upgrading Code;
If it is judged that then being updated opposite with the user website comprising the code for agreeing to upgrading in the configuration JS codes The exclusive JS files answered;And
If it is judged that not including the code for agreeing to upgrading in the configuration JS codes, then do not update and the user website The corresponding exclusive JS files.
5. the realization system of website sharing function according to claim 4, which is characterized in that the user website server It is additionally operable to realize that the sharing function for being specific to the user website includes according to the exclusive sharing function parameter of return:
The user website server is additionally operable to be specific to the user website according to the exclusive JS file generateds of return Control is shared in personalization, and it includes in the user website that control is shared in the personalization for being specific to the user website On.
6. the realization system of website sharing function according to claim 4, which is characterized in that by the configuration JS codes It is described to share after generating the exclusive JS files corresponding with the user website in filling to the function JS codes Website server is additionally operable to:
Whether altered detect the configuration JS codes;And
If detecting that the configuration JS codes are altered, the configuration JS codes after change were filled to the function JS generations In code, exclusive JS files corresponding with the user website are regenerated.
CN201410758360.8A 2014-12-10 2014-12-10 The method and system of website sharing function CN104468795B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410758360.8A CN104468795B (en) 2014-12-10 2014-12-10 The method and system of website sharing function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410758360.8A CN104468795B (en) 2014-12-10 2014-12-10 The method and system of website sharing function

Publications (2)

Publication Number Publication Date
CN104468795A CN104468795A (en) 2015-03-25
CN104468795B true CN104468795B (en) 2018-07-13

Family

ID=52914147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410758360.8A CN104468795B (en) 2014-12-10 2014-12-10 The method and system of website sharing function

Country Status (1)

Country Link
CN (1) CN104468795B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1841369A (en) * 2005-03-29 2006-10-04 腾讯科技(深圳)有限公司 Configuration method for webpage display
CN101876908A (en) * 2010-06-30 2010-11-03 中兴通讯股份有限公司 User customizing method and system
WO2011116227A2 (en) * 2010-03-19 2011-09-22 Black Drumm, Inc. Customizing content displayed for a user based on user preferences of another user
CN102207872A (en) * 2011-06-04 2011-10-05 中国移动通信集团内蒙古有限公司 Method and system for customizing Web UI (User Interface) control according to user requirements
CN103941982A (en) * 2014-05-12 2014-07-23 腾讯科技(深圳)有限公司 Method for sharing interface processing and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1841369A (en) * 2005-03-29 2006-10-04 腾讯科技(深圳)有限公司 Configuration method for webpage display
WO2011116227A2 (en) * 2010-03-19 2011-09-22 Black Drumm, Inc. Customizing content displayed for a user based on user preferences of another user
CN101876908A (en) * 2010-06-30 2010-11-03 中兴通讯股份有限公司 User customizing method and system
CN102207872A (en) * 2011-06-04 2011-10-05 中国移动通信集团内蒙古有限公司 Method and system for customizing Web UI (User Interface) control according to user requirements
CN103941982A (en) * 2014-05-12 2014-07-23 腾讯科技(深圳)有限公司 Method for sharing interface processing and terminal

Also Published As

Publication number Publication date
CN104468795A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
US6456857B1 (en) Terminal to execute a terminal application
US9485252B2 (en) Apparatuses, methods and systems for virtualizing a reprogrammable universal integrated circuit chip
US20140242908A1 (en) Combination Process Interaction
CN104982050B (en) The wireless UE device and method supported convenient for multi-user's identity in wireless device
US20130137417A1 (en) System and Method of Wireless Communication
US20130332996A1 (en) System and process for managing network communications
US20170115998A1 (en) Screen locking method and mobile terminal
KR20130132295A (en) Method for providing sim profile in euicc environment and devices therefor
US20070150816A1 (en) User interface authoring utility for changing user interface elements on wireless devices
KR100697174B1 (en) Local and remote access to radio parametric and regulatory data and methods therefor
US20140282398A1 (en) Platform for developing and distributing mobile applications
CN104126330B (en) Method and apparatus for emulating multinomial order
WO2009155203A2 (en) Method and system for customization of a graphical user interface (gui) of a communication device in a communication network
CN101894023B (en) screen locking method and mobile terminal
US20040255010A1 (en) Method, a controller, an arrangement and a computer program for managing a configuration of clustered computers
KR20040019838A (en) System and method for application and application metadata filtering based on wireless device capabilities
US9357378B1 (en) Subscriber identity module (SIM) card initiation of custom application launcher installation on a mobile communication device
CN1137587C (en) Method and system of parameterizing display on mobile radio-communications equipment
US20120309434A1 (en) Application Adaptive Mobile Terminal
BRPI0609197A2 (en) System and method for using a visual password scheme
US20060199599A1 (en) Method for setting communication device and communication device thereof
WO2002067502A1 (en) Method and system for providing a network service using service scripts
CA2539474A1 (en) System and method for dynamic generation and customization of web service client applications for terminals
CN101216765B (en) Mobile terminal topic style dynamic altering method
US20130104102A1 (en) User Customization Method and System

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Realization method and system for website sharing function

Effective date of registration: 20190531

Granted publication date: 20180713

Pledgee: Shenzhen Black Horse World Investment Consulting Co., Ltd.

Pledgor: Beijing Guoshuang Technology Co.,Ltd.

Registration number: 2019990000503

Denomination of invention: Realization method and system for website sharing function

Effective date of registration: 20190531

Granted publication date: 20180713

Pledgee: Shenzhen Black Horse World Investment Consulting Co., Ltd.

Pledgor: Beijing Guoshuang Technology Co.,Ltd.

Registration number: 2019990000503

CP02 Change in the address of a patent holder

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Patentee after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Patentee before: Beijing Guoshuang Technology Co.,Ltd.