javascript - Has anyone encountered the following problems when making WeChat payment on web pages?
高洛峰
高洛峰 2017-07-05 10:39:27
0
1
684

Single page application made with react, embedded in WeChat. When calling WeChat's JSAPI, a problem as shown in the figure appeared in the online test. After google, it was said that it was due to a routing problem. Some friends said that they can pay normally after refreshing, but I can't pay even after refreshing. . . . Please tell me, is it a front-end configuration issue?

Take a look, this is the JS code I introduced from the official website.


Some people say that this is the reason, because the single-page routing switches the hash, so it needs to be re-initialized, but I don’t know how to re-initialize it.

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
習慣沉默

/q/10...

Routing problem, try adding # in front of it?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!