【问题标题】:Phonegap InAppBrowser Controls iOSPhonegap InAppBrowser 控制 iOS
【发布时间】:2013-04-19 14:53:16
【问题描述】:

我在 iOS 上使用 Phonegap 2.6,当链接打开时,它使用全屏,无法返回应用程序。有没有办法触发某种控件返回应用程序?我的代码如下:

 function shareonfb()
    {
        photoid = sessionStorage.PhotoId;
        filename = sessionStorage.PhotoFilename;

        postUrl  = "http://site.com/sharedimage.php?photoid="+photoid;

        imageUrl = "http://site.com/images/"+filename;

        var sSiteUrl="http://www.facebook.com/sharer.php?s=100&u="+postUrl; 

        var ref = window.open(sSiteUrl, '_self', 'location=yes', 'presntationstyle=pagesheet');


    }

【问题讨论】:

    标签: ios cordova inappbrowser


    【解决方案1】:

    通过将_self 更改为_blank 解决了这个问题

    所以:

    var ref = window.open(sSiteUrl, '_blank', 'location=yes');
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多