In this WeChat public platform development tutorial, we will introduce how to use the WeChat JS interface to close the WeChat built-in browser and return to the WeChat chat window interface.
WeChat’s JS interface has currently been announced in three types: upper right corner button/bottom navigation bar/user network status. In addition, forwarding to Moments and sharing to friends can also be used. JS interface to define.
To close the WeChat browser, you can use
WeixinJSBridge.call('closeWindow');"
. The calling demonstration in HTML is as follows:
微信JS Copy after login
The above is the detailed content of WeChat public platform development closes WeChat browser. For more information, please follow other related articles on the PHP Chinese website!