CN104461634B - The loading method and device of sharing module on webpage - Google Patents

The loading method and device of sharing module on webpage Download PDF

Info

Publication number
CN104461634B
CN104461634B CN201410758654.0A CN201410758654A CN104461634B CN 104461634 B CN104461634 B CN 104461634B CN 201410758654 A CN201410758654 A CN 201410758654A CN 104461634 B CN104461634 B CN 104461634B
Authority
CN
China
Prior art keywords
webpage
sharing
sharing module
module
share
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
CN201410758654.0A
Other languages
Chinese (zh)
Other versions
CN104461634A (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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201410758654.0A priority Critical patent/CN104461634B/en
Publication of CN104461634A publication Critical patent/CN104461634A/en
Application granted granted Critical
Publication of CN104461634B publication Critical patent/CN104461634B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses the loading method and device of sharing module on a kind of webpage.Wherein, the loading method of sharing module includes on the webpage:Whether there is label allocation, label allocation is used for the sharing module being adapted for webpage configuration with webpage, is used to share webpage to the sharing platform of one or more social media set in advance with the sharing module that webpage is adapted in detection webpage;And then it is the sharing module that webpage loading is adapted with webpage according to label allocation if detecting has label allocation in webpage.By the present invention, solve the problems, such as by unified template generation webpage sharing module can only be caused incompatible with webpage in correlation technique.

Description

The loading method and device of sharing module on webpage
Technical field
The present invention relates to internet arena, in particular to the loading method and device of sharing module on a kind of webpage.
Background technology
At present, all sharing websites (that is, sharing function provides website) are all by adding one section on user website The mode of front-end code is embedded in sharing module (e.g., sharing plug-in unit), and user website be all using template generation it is each in Hold page, therefore, in the related art, in order to load sharing module for each webpage, typically all only can in a template add and share The front-end code of module.
So, due to having the uniformity of height according to the webpage of template generation, the sharing function one of all webpages is caused Cause, therefore the specific demand of separate webpage can not be met, share mould for example, can all be shown using all webpages of template generation Block, and in fact, different webpages is not quite similar to the conditions of demand of sharing module, this necessarily causes the sharing module on the page With webpage it is incompatible the problem of.
For example, for some notices in some government websites, policy, laws and regulations etc., only need to issue, without sharing, At this moment, if using above-mentioned technical proposal, the selection for whether allowing to share can not be realized.
For another example for some trend of work, related webpages such as leaders' activity schedule to office, only allow to share On platform inside some governments;And for as the related webpage of the related news of Huimin policy, leader, then needing to share to bag On the sharing platform for including all social medias including Sina weibo, Tengxun's microblogging, wechat etc., at this moment, if using above-mentioned skill Art scheme, then it can not realize the selection of sharing platform.
In another example for different webpages, because content of pages layout can be different, therefore to residing for sharing module Position has different requirements, and because the style design of different web sites would also vary from, therefore to the sample of sharing module Formula also has different requirements, at this moment, if using above-mentioned technical proposal, can not realize position and pattern of sharing module etc. Selection.
For in correlation technique in correlation technique sharing module and net can only be caused by unified template generation webpage The problem of page is incompatible, not yet proposes effective solution at present.
The content of the invention
It is a primary object of the present invention to provide the loading method and device of sharing module on a kind of webpage, to solve correlation In technology in correlation technique can only by unified template generation webpage to cause sharing module and webpage incompatible the problem of.
To achieve these goals, according to an aspect of the invention, there is provided on a kind of webpage sharing module loading Method.This method includes:Whether there is label allocation in detection webpage, above-mentioned label allocation be used for for above-mentioned webpage configure with The adaptable sharing module of webpage is stated, the above-mentioned sharing module being adapted with above-mentioned webpage is used to share above-mentioned webpage to one Or on the sharing platform of multiple social medias set in advance;And if detecting has above-mentioned configuration mark in above-mentioned webpage Label, then it is the above-mentioned sharing module being adapted with above-mentioned webpage of above-mentioned webpage loading according to above-mentioned label allocation.
Further, it is the above-mentioned sharing module being adapted with above-mentioned webpage of above-mentioned webpage loading according to above-mentioned label allocation Including:Obtain the attribute information in above-mentioned label allocation;Determine what above-mentioned and above-mentioned webpage was adapted according to above-mentioned attribute information The Configuration Values of sharing module;And share mould with what above-mentioned webpage was adapted according to above-mentioned Configuration Values for the loading of above-mentioned webpage is above-mentioned Block.
Further, whether detect includes in webpage with label allocation:Obtain the tag identifier of above-mentioned webpage;And root Search in above-mentioned webpage whether there is above-mentioned label allocation according to the above-mentioned tag identifier of above-mentioned webpage.
Further, after whether having label allocation in detecting webpage, above-mentioned loading method also includes:If detection Do not have above-mentioned label allocation into above-mentioned webpage, then obtain the sharing module configuration information of above-mentioned webpage;And according to acquisition Above-mentioned webpage above-mentioned sharing module configuration information to above-mentioned webpage perform sharing module loading processing.
Further, above-mentioned webpage is performed according to the above-mentioned sharing module configuration information of the above-mentioned webpage of acquisition and shares mould Block loading processing includes:Judge whether above-mentioned sharing module configuration information is to allow to share to the sharing module of whole sharing platforms Configuration information;If it is judged that above-mentioned sharing module configuration information allows to share to the sharing module of whole sharing platforms to be above-mentioned Configuration information, then allow to share to the sharing module of whole sharing platforms for the loading of above-mentioned webpage;It is and if it is judged that above-mentioned Sharing module configuration information does not allow to share to the sharing module configuration information of whole sharing platforms to be above-mentioned, then is not above-mentioned net Page loads any sharing module.
To achieve these goals, according to another aspect of the present invention, there is provided the loading of sharing module on a kind of webpage Device.The device includes:Detection unit, for detecting whether have label allocation in webpage, above-mentioned label allocation is for being The sharing module that webpage configuration is adapted with above-mentioned webpage is stated, the above-mentioned sharing module being adapted with above-mentioned webpage is used for will be above-mentioned Webpage is shared to the sharing platform of one or more social media set in advance;And first loading unit, for Detect in above-mentioned webpage when there is above-mentioned label allocation, be that the loading of above-mentioned webpage is above-mentioned with above-mentioned net according to above-mentioned label allocation The adaptable sharing module of page.
Further, above-mentioned first loading unit includes:First acquisition module, for obtaining the category in above-mentioned label allocation Property information;Determining module, for determining the configuration of the above-mentioned sharing module being adapted with above-mentioned webpage according to above-mentioned attribute information Value;And first load-on module, for being above-mentioned point being adapted with above-mentioned webpage of above-mentioned webpage loading according to above-mentioned Configuration Values Enjoy module.
Further, above-mentioned detection unit includes:Second acquisition module, for obtaining the tag identifier of above-mentioned webpage;With And searching modul, for searching in above-mentioned webpage whether there is above-mentioned label allocation according to the above-mentioned tag identifier of above-mentioned webpage.
Further, above-mentioned loading device also includes:Acquiring unit, for whether there is label allocation in webpage is detected Afterwards, when not having above-mentioned label allocation in detecting above-mentioned webpage, the sharing module configuration information of above-mentioned webpage is obtained;With And second loading unit, the above-mentioned sharing module configuration information for the above-mentioned webpage according to acquisition performs to above-mentioned webpage to be shared Module loading processing.
Further, above-mentioned second loading unit includes:Judge module, for judging that above-mentioned sharing module configuration information is No is to allow to share to the sharing module configuration information of whole sharing platforms;Second load-on module, for judging above-mentioned point Enjoy module configuration information for it is above-mentioned allow to share to the sharing module configuration information of whole sharing platforms when, for above-mentioned webpage load Allow to share to the sharing module of whole sharing platforms;And the 3rd load-on module, for judging that above-mentioned sharing module matches somebody with somebody Confidence breath for it is above-mentioned allow to share to the sharing module configuration information of whole sharing platforms when, for above-mentioned webpage load it is any Sharing module.
By the present invention, using whether having label allocation in detection webpage, label allocation is used for for webpage configuration and net The adaptable sharing module of page, it is used to share webpage to one or more to preset with the sharing module that webpage is adapted Social media sharing platform on;And then it is webpage according to label allocation if detecting has label allocation in webpage The sharing module that loading is adapted with webpage, solving in correlation technique can only be caused point by unified template generation webpage Enjoy the problem of module and webpage are incompatible, and then generation webpage causes the sharing module on webpage in several ways Effect is adapted with webpage.
Brief description of the drawings
The accompanying drawing for forming the part of the application is used for providing a further understanding of the present invention, schematic reality of the invention Apply example and its illustrate to be used to explain the present invention, do not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the loading method of sharing module on webpage according to embodiments of the present invention;And
Fig. 2 is the schematic diagram of the loading device of sharing module on webpage according to embodiments of the present invention.
Embodiment
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase Mutually combination.Describe the present invention in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application Accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application part, rather than whole embodiments.Based on the embodiment in the application, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model of the application protection Enclose.
It should be noted that term " first " in the description and claims of this application and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange 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 are not necessarily limited to those steps clearly listed or unit, but may include without clear It is listing to Chu or for the intrinsic other steps of these processes, method, product or equipment or unit.
According to an embodiment of the invention, there is provided the loading method of sharing module on a kind of webpage.Share mould on the webpage The loading method of block may operate on computer-processing equipment.
Fig. 1 is the flow chart of the loading method of sharing module on webpage according to embodiments of the present invention.As shown in figure 1, should Method includes steps S102 to step S104:
Whether step S102, detecting in webpage has label allocation.
Label allocation can be used for the sharing module being adapted for webpage configuration with webpage, so-called point being adapted with webpage Enjoy the sharing module for sharing demand that module refers to meet webpage, i.e. the sharing module being adapted with webpage can be used for net Page share to the sharing platform of one or more social media set in advance, also, it can also have be adapted to page The position and be adapted to pattern of Website style etc. that face is laid out.
Step S104, it is webpage loading and webpage according to label allocation if detecting has label allocation in webpage Adaptable sharing module.
It should be noted that can classify according to template to the webpage on website, 3 major classes are classified as:Do not allow The webpage shared, it is allowed to share to the webpage of part sharing platform, it is allowed to share to the webpage of whole sharing platforms.Wherein, it is right In the webpage for not allowing to share with allow to share to the webpage of whole sharing platforms, can according to corresponding template load webpage on Sharing module;And for allowing to share to the webpage of part sharing platform, then net can be loaded according to corresponding label allocation Sharing module on page.It should be noted that label allocation is arranged in the template of webpage.
That is, for the webpage that does not allow to share with allow to share to the webpage of whole sharing platforms, can be corresponding The configuration information of the sharing module of these webpages is set in template;And allow to share to the webpage of part sharing platform, then needing The label allocation of the sharing module of webpage is added in corresponding template.
So, by the embodiment of the present invention, due to above configuration can be carried out to web page template, webpage can not only be determined Which whether need to be shared, if necessary to be shared, then sharing platform can be shared, but also can determine to share mould The position and pattern of block in webpage etc., generation webpage is in several ways reached and has caused sharing module and webpage on webpage It is adapted effect.
Preferably, in embodiments of the present invention, step S104 is that webpage loading is adapted with webpage according to label allocation Sharing module can include:
S2, obtain the attribute information in label allocation;
S4, the Configuration Values for the sharing module for determining to be adapted with webpage according to attribute information;And
S6, it is the sharing module that webpage loading is adapted with webpage according to Configuration Values.
When implementing, in order to meet to allow the requirement of webpage shared to part sharing platform, can first determine to allow point Enjoying to the webpage of part sharing platform allows which sharing platform shared, then is specified in the Value attributes of label allocation Specific sharing function Configuration Values.
The Value attributes of label allocation can include:Enable, Plat, Position and Style etc., wherein, each attribute Title, meaning and assignment situation and assignment meaning etc. be as shown in label allocation attribute list (that is, table 1):
Table 1
Implement when, sharing website can according to each website to the demand of the sharing function of different web pages to phase in table 1 The Value attributes answered carry out pre-configured.For example, to the P1 webpages of A websites, it is pre-configured as follows:Enable=true, that is, bag Containing sharing function and show sharing module;Plat=" Tsina, Tqq ", that is, can share to Sina weibo and Tengxun's microblogging. After sharing function determination, further, it can carry out and configure with the position to sharing module and pattern.For example, to A nets The P1 webpages stood, it is pre-configured as follows:Position=top, that is, sharing module is arranged on page top;Style= Style1, that is, sharing module is shown as pattern Style1.So, when the page needs to load sharing function, can first parse Above-mentioned Configuration Values, the Configuration Values obtained further according to parsing load corresponding sharing function.
By the embodiment of the present invention, it can reach and be easy to configuration to meet different label allocations, to meet user to adapting to In the demand of the sharing function of each different web pages.
Preferably, in embodiments of the present invention, whether step S102 is detected in webpage there is label allocation can include:
S8, obtain the tag identifier of webpage;And
S10, search in webpage whether there is label allocation according to the tag identifier of webpage.
The tag identifier of webpage can be the tag ID of webpage.For applicability and aesthetic demand, the configuration mark of webpage Label could be arranged to concealed type, that is, in fact, the label allocation of webpage and do not appear on the page, but it is hidden in webpage In.
Can be first one HTML element of page setup, then add it in the generation template of the page during implementation, and And it is set to be hidden in the generation template of the page.For example, it can pass through<Input id=" tag ID value " type= hidden/>To realize aforesaid operations.So, when webpage needs to load sharing function, can be looked into first according to " tag ID value " Whether in webpage have hiding label allocation, if it is not, loading webpage is carried out according to template, if so, then passing through elder generation if looking for The mode that the Value attributes of the label allocation obtain corresponding Configuration Values again loads webpage and its sharing function.
Preferably, in embodiments of the present invention, after it whether there is label allocation during step S102 detects webpage, should add Support method can also include:
S12, if detecting do not have label allocation in webpage, obtain the sharing module configuration information of webpage;And
S14, sharing module loading processing is performed to webpage according to the sharing module configuration information of the webpage of acquisition.
Sharing module configuration information includes:Allow to share to the sharing module configuration information of whole sharing platforms and do not allow Share to the sharing module configuration information of any outside sharing platform.When sharing module configuration information divides to allow to share to whole When enjoying the sharing module configuration information of platform, then webpage loading is allowed to share to the sharing module of whole sharing platforms;When point It is when not allowing to share to the sharing module configuration information of any outside sharing platform, then to only loading net to enjoy module configuration information The content of pages of page, without loading any sharing module for webpage.
It is further preferred that in embodiments of the present invention, S14 is according to the sharing module configuration information of the webpage of acquisition to net Page, which performs sharing module loading processing, to be included:
S16, judge whether sharing module configuration information is to allow to share to the sharing module of whole sharing platforms to match somebody with somebody confidence Breath;
S18, if it is judged that sharing module configuration information is to allow to share to the sharing module configuration of whole sharing platforms Information, then allow to share to the sharing module of whole sharing platforms for webpage loading;And
S20, if it is judged that sharing module configuration information is not matched somebody with somebody to allow to share to the sharing module of whole sharing platforms Confidence ceases, then does not load any sharing module for webpage.
By the present invention, due to templating load mode and individual cultivation label load mode two ways can be used Corresponding sharing module neatly is added to webpage, so as to only can not only be loaded on the page for need to use sharing module, And the place of sharing module need not used to be not loaded with, but also more requirements of the website to sharing module can be met, Including:Whether show that sharing module, sharing module can be used for sharing sharing contents to which sharing platform, sharing module in page On which position in face and sharing module is using what pattern etc., has reached so that the sharing function of the sharing module of website has more The effect of flexibility.
It should be noted that can be in such as one group of computer executable instructions the flow of accompanying drawing illustrates the step of Performed in computer system, although also, show logical order in flow charts, in some cases, can be with not The order being same as herein performs shown or described step.
According to an embodiment of the invention, there is provided the loading device of sharing module on a kind of webpage.It should be noted that this The loading method of sharing module can be by sharing mould on the webpage of the embodiment of the present invention on the webpage that inventive embodiments are provided The loading device of block performs, and on the webpage of the embodiment of the present invention loading device of sharing module can be used for performing the present invention The loading method of sharing module on the webpage of embodiment.
Fig. 2 is the schematic diagram of the loading device of sharing module on webpage according to embodiments of the present invention.As shown in Fig. 2 should Device includes:The loading unit 20 of detection unit 10 and first.
Detection unit 10 is used for detecting whether have label allocation in webpage, and label allocation is used for for webpage configuration and webpage Adaptable sharing module, it is set in advance to one or more for webpage to be shared with the sharing module that webpage is adapted On the sharing platform of social media;And first loading unit 20 be used for when having label allocation in detecting webpage, according to Label allocation is the sharing module that webpage loading is adapted with webpage.
Label allocation can be used for the sharing module being adapted for webpage configuration with webpage, so-called point being adapted with webpage Enjoy the sharing module for sharing demand that module refers to meet webpage, i.e. the sharing module being adapted with webpage can be used for net Page share to the sharing platform of one or more social media set in advance, also, it can also have be adapted to page The position and be adapted to pattern of Website style etc. that face is laid out.
It should be noted that can classify according to template to the webpage on website, 3 major classes are classified as:Do not allow The webpage shared, it is allowed to share to the webpage of part sharing platform, it is allowed to share to the webpage of whole sharing platforms.Wherein, it is right In the webpage for not allowing to share with allow to share to the webpage of whole sharing platforms, can according to corresponding template load webpage on Sharing module;And for allowing to share to the webpage of part sharing platform, then net can be loaded according to corresponding label allocation Sharing module on page.It should be noted that label allocation is arranged in the template of webpage.
That is, for the webpage that does not allow to share with allow to share to the webpage of whole sharing platforms, can be corresponding The configuration information of the sharing module of these webpages is set in template;And allow to share to the webpage of part sharing platform, then needing The label allocation of the sharing module of webpage is added in corresponding template.
So, by the embodiment of the present invention, due to above configuration can be carried out to web page template, webpage can not only be determined Which whether need to be shared, if necessary to be shared, then sharing platform can be shared, but also can determine to share mould The position and pattern of block in webpage etc., generation webpage is in several ways reached and has caused sharing module and webpage on webpage It is adapted effect.
Preferably, in embodiments of the present invention, the first loading unit can include:First acquisition module, determining module and First load-on module.First acquisition module is used to obtain the attribute information in label allocation;Determining module is used to be believed according to attribute Breath determines the Configuration Values for the sharing module being adapted with webpage;And first load-on module be used for according to Configuration Values be webpage loading The sharing module being adapted with webpage.
When implementing, in order to meet to allow the requirement of webpage shared to part sharing platform, can first determine to allow point Enjoying to the webpage of part sharing platform allows which sharing platform shared, then is specified in the Value attributes of label allocation Specific sharing function Configuration Values.
The Value attributes of label allocation can include:Enable, Plat, Position and Style etc., wherein, each attribute Title, meaning and assignment situation and assignment meaning etc. be as shown in label allocation attribute list (that is, table 1).
Implement when, sharing website can according to each website to the demand of the sharing function of different web pages to phase in table 1 The Value attributes answered carry out pre-configured.For example, to the P1 webpages of A websites, it is pre-configured as follows:Enable=true, that is, bag Containing sharing function and show sharing module;Plat=" Tsina, Tqq ", that is, can share to Sina weibo and Tengxun's microblogging. After sharing function determination, further, it can carry out and configure with the position to sharing module and pattern.For example, to A nets The P1 webpages stood, it is pre-configured as follows:Position=top, that is, sharing module is arranged on page top;Style= Style1, that is, sharing module is shown as pattern Style1.So, when the page needs to load sharing function, can first parse Above-mentioned Configuration Values, the Configuration Values obtained further according to parsing load corresponding sharing function.
By the embodiment of the present invention, it can reach and be easy to configuration to meet different label allocations, to meet user to adapting to In the demand of the sharing function of each different web pages.
Preferably, in embodiments of the present invention, detection unit can include:Second acquisition module and searching modul.Second Acquisition module is used for the tag identifier for obtaining webpage;And searching modul is for being searched according to the tag identifier of webpage in webpage It is no that there is label allocation.
The tag identifier of webpage can be the tag ID of webpage.For applicability and aesthetic demand, the configuration mark of webpage Label could be arranged to concealed type, that is, in fact, the label allocation of webpage and do not appear on the page, but it is hidden in webpage In.
Can be first one HTML element of page setup, then add it in the generation template of the page during implementation, and And it is set to be hidden in the generation template of the page.For example, it can pass through<Input id=" tag ID value " type= hidden/>To realize aforesaid operations.So, when webpage needs to load sharing function, can be looked into first according to " tag ID value " Whether in webpage have hiding label allocation, if it is not, loading webpage is carried out according to template, if so, then passing through elder generation if looking for The mode that the Value attributes of the label allocation obtain corresponding Configuration Values again loads webpage and its sharing function.
Preferably, in embodiments of the present invention, the loading device can also include:Acquiring unit and the second loading unit. Acquiring unit is used for after whether having label allocation in detecting webpage, when not having label allocation in detecting webpage, Obtain the sharing module configuration information of webpage;And second loading unit be used to match somebody with somebody confidence according to the sharing module of the webpage of acquisition Breath performs sharing module loading processing to webpage.
Sharing module configuration information includes:Allow to share to the sharing module configuration information of whole sharing platforms and do not allow Share to the sharing module configuration information of any outside sharing platform.When sharing module configuration information divides to allow to share to whole When enjoying the sharing module configuration information of platform, then webpage loading is allowed to share to the sharing module of whole sharing platforms;When point It is when not allowing to share to the sharing module configuration information of any outside sharing platform, then to only loading net to enjoy module configuration information The content of pages of page, without loading any sharing module for webpage.
It is further preferred that in embodiments of the present invention, second loading unit can include:Judge module, second add Carry module and the 3rd load-on module.Judge module is used to judge whether sharing module configuration information is to allow to share to whole to share The sharing module configuration information of platform;Second load-on module is used to judge that sharing module configuration information is to allow to share to complete During the sharing module configuration information of portion's sharing platform, allow to share to the sharing module of whole sharing platforms for webpage loading;With And the 3rd load-on module be used to judge that sharing module configuration information do not share mould to allow to share to whole sharing platforms During block configuration information, any sharing module is not loaded for webpage.
By the present invention, due to templating load mode and individual cultivation label load mode two ways can be used Corresponding sharing module neatly is added to webpage, so as to only can not only be loaded on the page for need to use sharing module, And the place of sharing module need not used to be not loaded with, but also more requirements of the website to sharing module can be met, Including:Whether show that sharing module, sharing module can be used for sharing sharing contents to which sharing platform, sharing module in page On which position in face and sharing module is using what pattern etc., has reached so that the sharing function of the sharing module of website has more The effect of flexibility.
Obviously, those skilled in the art should be understood that above-mentioned each module of the invention or each step can be with general Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored Performed in the storage device by computing device, either they are fabricated to respectively each integrated circuit modules or by they In multiple modules or step be fabricated to single integrated circuit module to realize.So, the present invention is not restricted to any specific Hardware and software combines.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.

Claims (10)

  1. A kind of 1. loading method of sharing module on webpage, it is characterised in that including:
    Whether there is label allocation, the label allocation is used to be adapted with the webpage for webpage configuration in detection webpage Sharing module, the sharing module being adapted with the webpage is used to sharing the webpage advance to one or more On the sharing platform of the social media of setting;And
    If detecting has the label allocation in the webpage, according to the label allocation is webpage loading The sharing module being adapted with the webpage,
    Wherein, the webpage on website is classified according to template, is classified as 3 classes:Do not allow the webpage shared, it is allowed to share To the webpage of part sharing platform, it is allowed to share to the webpage of whole sharing platforms, for the webpage for not allowing to share and permission Share to the webpage of whole sharing platforms, the sharing module on webpage is loaded according to corresponding template;For allowing to share to portion Divide the webpage of sharing platform, then the sharing module on webpage is loaded according to corresponding label allocation, label allocation is arranged on webpage Template on.
  2. 2. the loading method of sharing module on webpage according to claim 1, it is characterised in that according to the label allocation Include for the webpage loading sharing module being adapted with the webpage:
    Obtain the attribute information in the label allocation;
    The Configuration Values for the sharing module being adapted according to determining the attribute information with the webpage;And
    The sharing module being adapted according to the Configuration Values are webpage loading with the webpage.
  3. 3. the loading method of sharing module on webpage according to claim 1, it is characterised in that whether have in detection webpage There is label allocation to include:
    Obtain the tag identifier of the webpage;And
    Search in the webpage whether there is the label allocation according to the tag identifier of the webpage.
  4. 4. the loading method of sharing module on webpage according to claim 1, it is characterised in that in webpage is detected whether After label allocation, the loading method also includes:
    Do not have the label allocation in the webpage if detected, obtain the sharing module configuration information of the webpage; And
    Sharing module loading processing is performed to the webpage according to the sharing module configuration information of the webpage of acquisition.
  5. 5. the loading method of sharing module on webpage according to claim 4, it is characterised in that according to the net of acquisition The sharing module configuration information of page performs sharing module loading processing to the webpage to be included:
    Judge whether the sharing module configuration information is to allow to share to the sharing module configuration information of whole sharing platforms;
    If it is judged that the sharing module configuration information allows to share to the sharing module configuration of whole sharing platforms to be described Information, then allow to share to the sharing module of whole sharing platforms for webpage loading;And
    If it is judged that the sharing module configuration information for it is described allow to share to the sharing module of whole sharing platforms match somebody with somebody Confidence ceases, then does not load any sharing module for the webpage.
  6. A kind of 6. loading device of sharing module on webpage, it is characterised in that including:
    Detection unit, for detecting whether there is label allocation in webpage, the label allocation be used for for the webpage configuration with The adaptable sharing module of the webpage, the sharing module being adapted with the webpage are used to share the webpage to one On the sharing platform of individual or multiple social medias set in advance;And
    First loading unit, for when having the label allocation in detecting the webpage, being according to the label allocation The webpage loading sharing module being adapted with the webpage,
    Wherein, the webpage on website is classified according to template, is classified as 3 classes:Do not allow the webpage shared, it is allowed to share To the webpage of part sharing platform, it is allowed to share to the webpage of whole sharing platforms, for the webpage for not allowing to share and permission Share to the webpage of whole sharing platforms, the sharing module on webpage is loaded according to corresponding template;For allowing to share to portion Divide the webpage of sharing platform, then the sharing module on webpage is loaded according to corresponding label allocation, label allocation is arranged on webpage Template on.
  7. 7. the loading device of sharing module on webpage according to claim 6, it is characterised in that first loading unit Including:
    First acquisition module, for obtaining the attribute information in the label allocation;
    Determining module, for the Configuration Values for the sharing module being adapted according to attribute information determination with the webpage; And
    First load-on module, for being to share mould with what the webpage was adapted described in the webpage loads according to the Configuration Values Block.
  8. 8. the loading device of sharing module on webpage according to claim 6, it is characterised in that the detection unit bag Include:
    Second acquisition module, for obtaining the tag identifier of the webpage;And
    Searching modul, for being searched according to the tag identifier of the webpage in the webpage whether there is the configuration to mark Label.
  9. 9. the loading device of sharing module on webpage according to claim 6, it is characterised in that the loading device also wraps Include:
    Acquiring unit, for after it whether there is label allocation in detecting webpage, not having institute in the webpage is detected When stating label allocation, the sharing module configuration information of the webpage is obtained;And
    Second loading unit, the sharing module configuration information for the webpage according to acquisition performs to the webpage to be divided Enjoy module loading processing.
  10. 10. the loading device of sharing module on webpage according to claim 9, it is characterised in that second loading is single Member includes:
    Judge module, for judging whether the sharing module configuration information is to allow to share to whole sharing platforms to share mould Block configuration information;
    Second load-on module, for allowing to share to whole sharing platforms to be described judging the sharing module configuration information Sharing module configuration information when, for the webpage loading allow to share to the sharing module of whole sharing platforms;And
    3rd load-on module, for judge the sharing module configuration information for it is described allow to share it is flat to all sharing During the sharing module configuration information of platform, any sharing module is not loaded for the webpage.
CN201410758654.0A 2014-12-10 2014-12-10 The loading method and device of sharing module on webpage Active CN104461634B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410758654.0A CN104461634B (en) 2014-12-10 2014-12-10 The loading method and device of sharing module on webpage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410758654.0A CN104461634B (en) 2014-12-10 2014-12-10 The loading method and device of sharing module on webpage

Publications (2)

Publication Number Publication Date
CN104461634A CN104461634A (en) 2015-03-25
CN104461634B true CN104461634B (en) 2017-12-19

Family

ID=52907739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410758654.0A Active CN104461634B (en) 2014-12-10 2014-12-10 The loading method and device of sharing module on webpage

Country Status (1)

Country Link
CN (1) CN104461634B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105701217B (en) 2016-01-13 2020-08-11 腾讯科技(深圳)有限公司 Information processing method and server
CN105787030B (en) * 2016-02-25 2019-10-29 努比亚技术有限公司 A kind of mobile terminal and its method for handling data
CN107943921B (en) * 2017-11-21 2024-01-05 腾讯数码(天津)有限公司 Page sharing information generation method and device, computer equipment and storage medium
CN109408757A (en) * 2018-09-21 2019-03-01 广州神马移动信息科技有限公司 Question and answer content share method, device, terminal device and computer storage medium
CN114546560A (en) * 2022-02-22 2022-05-27 浙江蓝卓工业互联网信息技术有限公司 Data sharing method and device, storage medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982144A (en) * 2012-11-22 2013-03-20 东莞宇龙通信科技有限公司 Method and system for sharing webpage information
CN103853767A (en) * 2012-12-04 2014-06-11 腾讯科技(深圳)有限公司 Method and device for sharing social circle based on browser

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120150661A1 (en) * 2010-12-06 2012-06-14 Lockerz, Inc System and Method to Enable any Internet-Compatible Advertisement to be Fully Shareable to a Wide Variety of Social Media Networks and Platforms

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102982144A (en) * 2012-11-22 2013-03-20 东莞宇龙通信科技有限公司 Method and system for sharing webpage information
CN103853767A (en) * 2012-12-04 2014-06-11 腾讯科技(深圳)有限公司 Method and device for sharing social circle based on browser

Also Published As

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

Similar Documents

Publication Publication Date Title
CN104461634B (en) The loading method and device of sharing module on webpage
CN109358851A (en) Creation method, device and the computer readable storage medium of chart components
US20160232374A1 (en) Permission control method and apparatus
US10345991B2 (en) Adjusting appearance of icons in an electronic device
CN106155496A (en) A kind of information displaying method and device
CN103955358B (en) Revisable context help content in application program is provided embeddedly
CN104992118A (en) Unified permission management method and system for multiple service systems
CN108491420A (en) Configuration method, application server and the computer readable storage medium of web page crawl
CN110347946B (en) Page display method and device, computer equipment and storage medium
US10686835B2 (en) Method and device for providing authentication information on web page
CN107203595A (en) A kind of method of the dynamic generation web interface based on flexible form
US20180218083A1 (en) Method for Recommending Clothes Collocation and Intelligent Terminal
CN104573430A (en) Data access rights control method and device
CN110276060A (en) The method and device of data processing
CN108170431B (en) Navigation label window color setting method and device
CN111177700A (en) Method and device for controlling row-level authority
CN105786846A (en) Website platform component capable of generating modules in user-defined manner
CN106649299A (en) Method and device for lazy loading of webpage block
CN106886435A (en) The loading method and device of widget
CN109697281A (en) The online method, apparatus and electronic equipment for merging document
CN109992580A (en) Processing method and processing device, storage medium, the computer equipment of table data
CN104063277B (en) A kind of information processing method and electronic equipment
CN105243134B (en) A kind of method and apparatus handling browser of being held as a hostage
CN110213355A (en) The method and its application of search terminal in local area network
CN108089895B (en) Activity registration method and device in plug-in, electronic equipment and storage medium

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

Denomination of invention: Device and method for loading share module on webpage

Effective date of registration: 20190531

Granted publication date: 20171219

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

Pledgor: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Registration number: 2019990000503

PE01 Entry into force of the registration of the contract for pledge of patent right
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 GRIDSUM TECHNOLOGY Co.,Ltd.

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

Patentee before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
PP01 Preservation of patent right

Effective date of registration: 20240604

Granted publication date: 20171219

PP01 Preservation of patent right