Home  >  Article  >  WeChat Applet  >  WeChat public platform development closes WeChat browser

WeChat public platform development closes WeChat browser

高洛峰
高洛峰Original
2017-03-08 16:28:471881browse

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
        
        
    
    
        

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn