search

Home  >  Q&A  >  body text

javascript - Some of the js in html are not loaded when the mobile phone is opened, but it is normal on the computer. What's going on?

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

phpcn_u1582phpcn_u15822709 days ago671

reply all(2)I'll reply

  • 黄舟

    黄舟2017-06-14 10:56:03

    It seems that there is an error in isWeixin that causes alert('1') not to be executed. If not, you can go to the alert in isWeixin to check it out

    reply
    0
  • 三叔

    三叔2017-06-14 10:56:03

    You can try putting alert("1"); in the first line of init() and see if the alert box will appear?

    reply
    0
  • Cancelreply