我的 intro-page.scss 中有这段代码,我应该能够更改离子子弹的颜色,但它不起作用
.swiper-pagination-bullet {
background: #37469B;
}
.swiper-pagination-bullet-active {
width: 12px;
height: 12px;
background: transparent;
}
Run Code Online (Sandbox Code Playgroud) 我正在尝试将此 ionic 3 代码转换为 ionic 4,但我不知道 promise 如何在 ionic 4 上工作。我尝试查看文档,但找不到任何 promise 的解决方案
async generateAlert(header, message, ok, notOk): Promise<boolean> {
return new Promise((resolve, reject) => {
let alert = await this.alertController.create({
header: header,
message: message,
buttons: [
{
text: notOk,
handler: _=> reject(false)
},
{
text: ok,
handler: _=> resolve(true)
}
]
})
await alert.present();
});
}
Run Code Online (Sandbox Code Playgroud)