How do I ensure Android phonegap/cordova apps use Chrome webviews?

前端 未结 6 1329
长情又很酷
长情又很酷 2020-12-23 01:52

I\'m writing a game app that twists SVG graphics until they cry \"Uncle!\". The program works OK on an iPad (safari/webkit) when hosted from a web server, for which no more

6条回答
  •  甜味超标
    2020-12-23 02:50

    It turns out that my Javascript was wrong. Things work OK on old browsers when I avoid a certain bug. I found it by being able to load an ancient version of Safari for Windows.

    My problem was something like this:

    var newValue = parseInt("030");
    

    This returned 24, because "030" is base 8, right?

    I changed things to force the base, and things are now OK:

    var newValue = parseInt("030", 10);
    

提交回复
热议问题