解决方案 »

  1.   

    js判断浏览器的user agent应该可以区分平台。
      

  2.   

    http://zeptojs.com/分数可以拿来了。
      

  3.   

    这个用js几行代码就可以了吧:var ua = navigator.userAgent;
    var chekcer = {
    iphone: ua.match(/(iPhone | iPod | iPad)/),
    android: ua.match(/Android/)
    };
    /*if (chekcer.android) {
    alert("android");

    else if (chekcer.iphone) {
    alert("iPhone");
    }*/
    if (chekcer.android || chekcer.iphone) { }