网页QQ唤起

网页QQ唤起

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>

<div id='parentId'>
    <a id='wpaId2' href="#">点我</a>
</div>
<script charset="utf-8" src="http://wpa.b.qq.com/cgi/wpa.php"></script>
<script language="javascript">
// 自定义样式
BizQQWPA.addCustom({
    aty: '0',
    nameAccount: '800065432', //营销 QQ 号码
    selector: 'wpaId2', //将 WPA 放置在 ID 为 wpaId的元素里
    ext: 'ap={$SPY|mid|1147561$}{$SPY|scenc|16159$}' // 外带参数,%26就是&,因为与系统的url冲突,需要转义  ap=001019{$SP|347|1487$}%26as=2
});

</script>

</body>
</html>
原文地址:https://www.cnblogs.com/Tpf386/p/7844989.html