【发布时间】:2021-12-06 13:57:07
【问题描述】:
这是我的 html 文件
<button (click)="pay()">Add to Cart</button>
这是我的 ts 文件
pay(){
Swal.fire(
`Congratulations!!????`,
`<h3>The item has been added to the cart!!<h3>`,
'success');
}
所以,当我点击OK(这里是成功)时,我希望用户重定向到网站的购物车页面。如何添加链接?
【问题讨论】:
标签: javascript html angular typescript sweetalert