How to close the web page or window of Baidu nuomi app in Android (99% people don’t know)

Our company has made a mobile web payment product using Baidu wallet. Users scan the QR code of our products through Baidu wallet and Baidu glutinous rice, select goods, click payment, and will automatically call Baidu wallet for payment. After successful payment, they will return to the success page, and there is a button to close the web page on our success page, Clicking the close button or the return button will close the page.

Use blightapp of Baidu light application in Baidu wallet The closewindow () method can be closed, but in Baidu glutinous rice, it can be used according to reason, but it doesn't work at all. Change to the traditional window Nor can close (). At that time, we did not find a solution in online search and Baidu glutinous rice's official website. Later, after several twists and turns, I contacted Baidu glutinous rice related technology to find a solution.

The solution is simply to set the jump address to bainuo://home That's it.

First: click the button to close the page

Click the button to close the page

As shown in the figure, click the button to close the page, and the code is as follows:

Second: click the app return button or the back button of the mobile phone to close the page

Click the app back button or the back button of the phone to close the page

As shown in the figure, click the "<" button in the red box or the phone back physical button to close the page. The code is as follows:

Introducing jQuery:

Specific implementation code:

The above is what Xiaobian introduced to you about the method of closing the web page or window of Baidu glutinous rice app in Android (99% people don't know). I hope it will help you. If you have any questions, please leave me a message and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>