本插件通过集成微信提供的JS-SDK,从而实现自定义网页分享的内容,包括Url、标题、图片和内容。
This plug-in integrates the JS-SDK provided by WeChat, so as to achieve custom content sharing on web pages, including URLs, titles, pictures and content.
p>
1、本插件简单灵活,分享的内容可全部从页面提取,也可在后台自定义。
1. This plug-in is simple and flexible, and all content shared can be extracted from the page or customized in the background.
2、目前已实现首页、分类页、文章页、标签页、搜索页、存档页以及单独页面的分享。
2. The homepage, category page, article page, tab page, search page, archive page, and individual page have been shared.
3、分享目标支持微信朋友、微信朋友圈、QQ、QQ空间。
3. Share goals Support WeChat friends, WeChat circle of friends, QQ, QQ space.
4、分享标题、图片、描述等内容首先从自定义模板提取,如果未设置模板则从页面提取,如果页面上提取不到则根据当前页面内容自动生成。
4. Contents such as sharing title, picture, description, etc. are first extracted from the custom template. If no template is set, they are extracted from the page. If they cannot be extracted on the page, they are automatically generated based on the current page content.
5、从页面提取时,各个分享内容的来源:标题来源于html->head->title,描述从html->head->meta[name='description']提取,图片取正文中的第一张
5. When extracting from the page, the source of each shared content: the title is derived from html-> head-> title, the description is extracted from html-> head-> meta [name = 'description'], and the picture is taken from the first page
图。
Illustration.
6、分享url目前只能是当前url,未提供自定义设置功能。
6. The sharing URL can only be the current URL, and no custom setting function is provided.
p>
Dependency
Dependency h3>
WeChat JS-SDK
WeChat JS-SDK h4>
https:/es.wx.qq.com/open/js/jweixin-1.2.0.js
https:/es.wx.qq.com/open/js/jweixin-1.2.0.js
This plugin depends on the WeChat JS-SDK, which is a remote JS file and provided by WeChat.
This plugin depends on the WeChat JS-SDK, which is a remote JS file and provided by WeChat.
It provides initialization method of WeChat services, and provide some functions, including share to friends, share to circle of friends.
It provides initialization method of WeChat services, and provide some functions, including share to friends, share to circle of friends.
The JS-SDK is a service.
The JS-SDK is a service. P>
myip.fireflysoft.net
myip.fireflysoft.net h4>
http://myip.fireflysoft.net
http://myip.fireflysoft.net
This plugin depends on the myip.fireflysoft.net, which can return the outbound IP of the user server.
This plugin depends on the myip.fireflysoft.net, which can return the outbound IP of the user server.
The exit IP needs to be added to the WeChat IP whitelist.
The exit IP needs to be added to the WeChat IP whitelist. P>