【发布时间】:2015-05-27 13:46:54
【问题描述】:
<button class="button button-outline button-positive">
<a href="www.google.com">fes</a>
</button>
如果我使用ng-click,它可以正常工作,但我需要href。
【问题讨论】:
标签: ionic-framework href
<button class="button button-outline button-positive">
<a href="www.google.com">fes</a>
</button>
如果我使用ng-click,它可以正常工作,但我需要href。
【问题讨论】:
标签: ionic-framework href
放下按钮并用类名装饰a 元素。
<a href="www.google.com" class="button button-outline button-positive">fes</a>
希望这会有所帮助。
【讨论】:
在html页面中:
<button menuClose ion-item (click)="openExternalPage(urlCgu)"><ion-icon name="ios-paper-outline" color="primary" item-start ></ion-icon> Conditions d'utilisation</button>
在ts页面中:
urlCgu:string;
this.urlCgu = 'http://xxxxxxx.com';
openExternalPage(page){
window.open(page);
}
【讨论】: