Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.3k views
in Technique[技术] by (71.8m points)

使用Vue 写一个单独的H5页面项目,在微信浏览其中不执行函数,但是在谷歌中就执行函数

判断如果是微信浏览器,就会走 getWeChatOpenId 函数,获取openId,但是在微信浏览器中这个函数是不走的, if(local.indexOf("?code=") != -1) 这个判断是走的,不知道为什么?在谷歌浏览器中是走函数的
image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

可以换一种方式
image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...