手机QQAPI

发布时间:2025-08-04 05:42

手机支架也可以用来固定手机壳,使手机更美观。 #生活常识# #手机支架#

对外分享组件接口文档

组件地址

http://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js

组件功能

定制微信,手机QQ,QQ空间APP内的分享内容。

组件接口

/** * 定制接口 * @param opts 定制内容 */ setShareInfo({ title: '父爱,在你看不到的地方', // 分享标题 summary: '父爱如山,感觉不到只因身在此山中', // 分享内容 pic: 'http://qzonestyle.gtimg.cn/aoi/sola/20150617094556_OvfOpoRKRB.png', // 分享图片 url: 'http://qzs.qzone.qq.com/qzone/qzact/act/2015/father-day-m/index.html', // 分享链接 // 微信权限验证配置信息,若不在微信传播,可忽略 WXconfig: { swapTitleInWX: true, // 是否标题内容互换(仅朋友圈,因朋友圈内只显示标题) appId: appId, // 公众号的唯一标识 timestamp: timestamp, // 生成签名的时间戳 nonceStr: nonceStr, // 生成签名的随机串 signature: signature // 签名 } });

未使用模块加载器

<script type="text/javascript" src="http://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js"></script> <script type="text/javascript"> setShareInfo({ title: '父爱,在你看不到的地方', summary: '父爱如山,感觉不到只因身在此山中', pic: 'http://qzonestyle.gtimg.cn/aoi/sola/20150617094556_OvfOpoRKRB.png', url: 'http://qzs.qzone.qq.com//qzone/qzact/act/2015/father-day-m/index.html', WXconfig: { swapTitleInWX: true, appId: '', timestamp: '', nonceStr: '', signature: '' } }); </script>

使用seajs

seajs.use('http://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js', function(setShareInfo) { setShareInfo({ title: '父爱,在你看不到的地方1', summary: '父爱如山,感觉不到只因身在此山中2', pic: 'http://qzonestyle.gtimg.cn/aoi/sola/20150617094556_OvfOpoRKRB.png', url: 'http://qzs.qzone.qq.com//qzone/qzact/act/2015/father-day-m/index.html', WXconfig: { swapTitleInWX: true, appId: '', timestamp:'', nonceStr: '', signature: '' } }); });

使用requirejs

require(['http://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js'], function(setShareInfo) { setShareInfo({ title: '父爱,在你看不到的地方', summary: '父爱如山,感觉不到只因身在此山中', pic: 'http://qzonestyle.gtimg.cn/aoi/sola/20150617094556_OvfOpoRKRB.png', url: 'http://qzs.qzone.qq.com//qzone/qzact/act/2015/father-day-m/index.html', WXconfig: { swapTitleInWX: true, appId: '', timestamp:'', nonceStr: '', signature: '' } }); });

测试页面

测试页面

注意事项

由于手机QQ限制,分享URL必须与页面URL同一域名,否则设置不生效。 可根据当前页面的客户端环境,判断是否需要WX配置,减少不必要请求。

网址:手机QQAPI https://klqsh.com/news/view/102169

相关内容

手机省电的小技巧,让你的手机更耐用
手机省电技巧,如何有效延长手机续航!
Android手机怎么省电 Android手机省电方法【详解】
手机怎么省电 9个很有效的手机省电方法
手机省电小技巧:让你的手机电量更加持久
手机如何省电
苹果手机助手电脑版
手机电池不耐用很严重?手机最实用的省电技巧
手机怎么除静电
手机省电小技巧

随便看看