2016-03-08 45 views

回答

0

你是如何试图打开的网站?

也许你缺少InAppBrowser,安装它,然后在文档中打开你的网站,因为它规定:

var ref = cordova.InAppBrowser.open('https://google.com', '_blank', 'location=yes'); 

您可以使用ref听某些事件或以编程方式关闭该窗口。

+0

所以需要我改变window.open和足够inAppBrowser? – Sobucki

+0

是的,这并不难,只需安装'cordova plugin',然后使用该代码,当然用您的URL替换'https:// google.com'。如果你检查github页面,你有更多的例子,以防万一你需要更多的功能:) – Ariel

+0

它适用于我,我还有一个疑问,是关于json – Sobucki

0

$scope.go = function() { 
 
    window.open('http://www.guiafloripa.com.br/turismo/praias/praia-do-santinho/pontos-turisticos/museu-arqueologico-ao-ar-livre'); 
 
};
<ion-content> 
 

 
    
 
    <div class="list card"> 
 

 
    <div class="item item-avatar"> 
 
    <img src="resort.jpg" > 
 
    <h2>Costão do Santinho Resort</h2> 
 
    
 
    </div> 
 

 
    <div class="item item-body"> 
 
    <img class="full-image" ng-click="go()" src="resort.jpg" > 
 
    </img> 
 
    
 
    </div> 
 

 
</div> 
 
    
 

 

 

 
    </ion-content>

0

<ion-list > \t 
 
      <ion-item class="list" > 
 
\t \t \t \t <a class="item item-thumbnail-left" ng-href="{{x.Adress}}" ng-repeat="x in names|orderBy:'Name'" > 
 
\t \t \t \t <img ng-src="{{x.Image}}"> 
 
\t \t \t \t <h2>{{x.Name}}</h2> 
 
\t \t \t \t <p>{{x.Local}}</p> 
 
\t \t \t \t <p>{{x.Descri}}</p> 
 
\t \t \t \t </a> 
 
\t \t \t \t 
 
      </ion-item> 
 
</ion-list> 
 

+0

是同样的问题,在浏览器上工作,但不是在智能手机上 – Sobucki

相关问题