V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
frontman
V2EX  ›  程序员

网页 schema 吊起 app 后依然会下载 app 怎么解决?

  •  
  •   frontman · Mar 25, 2015 · 2657 views
    This topic created in 4061 days ago, the information mentioned may be changed or developed.
    网页吊起app
    android机
    btn. onclick=function(){
    downLoad();
    }
    function downLoad(){
    var ifr = document.createElement('iframe');
    ifr.src = 'higo://';
    ifr.style.display = 'none';
    document.body.appendChild(ifr); //schema吊起app

    window.setTimeout(function(){
    window.location.href=downloadUrl; //300毫秒之后如果没吊起开始下载
    },300)
    }
    但是现在遇到一个问题 如果安装了app 在吊起之后 还是会下载 怎么解决
    3 replies    2015-03-26 12:26:02 +08:00
    frontman
        1
    frontman  
    OP
       Mar 25, 2015
    why
    oott123
        2
    oott123  
       Mar 26, 2015 via Android
    可你根本没有哪里跑断了调起是否成功啊…
    frontman
        3
    frontman  
    OP
       Mar 26, 2015
    @oott123 怎么在吊起之后 阻止下载
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1536 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 16:41 · PVG 00:41 · LAX 09:41 · JFK 12:41
    ♥ Do have faith in what you're doing.