WeChat public platform development closes WeChat browser

高洛峰
Release: 2017-03-08 16:28:47
Original
1801 people have browsed it

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');"
Copy after login

. 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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
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!