Download page of an app (html)
Put it on the server and open it through the mobile phone. The js part is not loaded and is invalid.
It is normal to open on the computer.
The js content is used to determine whether WeChat is opened or browsed. The device is open,
js part of the code is as follows
It seems that there is an error in
isWeixin
that causesalert('1')
not to be executed. If not, you can go to the alert in isWeixin to check it outYou can try putting alert("1"); in the first line of init() and see if the alert box will appear?