Created
April 7, 2017 05:30
-
-
Save rlog/0792f02944c894559358709ca3ee8994 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 判断微信浏览器,并引入微信的 SDK --> | |
<script> | |
if (/MicroMessenger/i.test(navigator.userAgent)) | |
document.write('<script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"><\/script>') | |
</script> | |
<!-- 引入依赖 UParams --> | |
<script src="//github.elemecdn.com/YanagiEiichi/uparams/1.3.0/uparams.min.js"></script> | |
<!-- 引入 sns-sdk --> | |
<script src="//github.elemecdn.com/eleme/sns-sdk/1.0.0-rc.1/sns-sdk.js"></script> | |
<!-- 使用 --> | |
<script> | |
sns.authorize(); //唤起微信授权 | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment