Ionic framework 为什么href内部按钮不工作?
如果我使用Ionic framework 为什么href内部按钮不工作?,ionic-framework,href,Ionic Framework,Href,如果我使用ng click,它可以正常工作,但是我需要href放下按钮,用类名装饰a元素 <button class="button button-outline button-positive"> <a href="www.google.com">fes</a> </button> 希望这有帮助。在html页面: <a href="www.google.com" class="button button-outline but
ng click
,它可以正常工作,但是我需要href
放下按钮,用类名装饰a
元素
<button class="button button-outline button-positive">
<a href="www.google.com">fes</a>
</button>
希望这有帮助。在html页面:
<a href="www.google.com" class="button button-outline button-positive">fes</a>
我不知道OP,但它确实帮助了我。我也有同样的问题,不知道出了什么问题。谢谢可能需要在答案中添加一些更改/差异,而不仅仅是发布代码。
<button menuClose ion-item (click)="openExternalPage(urlCgu)"><ion-icon name="ios-paper-outline" color="primary" item-start ></ion-icon> Conditions d'utilisation</button>
urlCgu:string;
this.urlCgu = 'http://xxxxxxx.com';
openExternalPage(page){
window.open(page);
}