此代码对于Ionic 3可以正常工作,但在Ionic 4 beta 12中仍然无法正常工作。这是错误吗?我应该举报吗?怎么样?我阅读了Beta文档,但没有说明如何配置如何将文本呈现为html。
async showRules() {
const alert = await this.alertController.create({
header: 'Rules',
subHeader: `<!--<div class="padding">-->
Brain Builder is up to date with the most recent research regarding IQ enhancement.
As the most recent research suggest, Brain Builder will increase the number of stimulus first (position, audio, color, etc.).
Once all stimuli have been mastered, the n-back will be increased.
<h3 class="title">
<center>
Rules for beginners
</center>
</h3>
<p>
A blue square will be shown every three seconds, press the button ‘Position’ when you find that the actual position of the blue square matches with that of the previous one.
The position of the square is accompanied with the pronunciation of a number and the very same rule applies for the sound.
</p>
`,
buttons: ['OK'],
backdropDismiss: false
});
await alert.present();
}
答案 0 :(得分:0)
在[Ionic Project Issues Section][1]
我建议在此处创建一个问题并对其进行监视,直到Ionic 4超出Beta并投入生产为止。
这是创建离子错误报告的链接
https://github.com/ionic-team/ionic/issues/new?template=bug_report.md
快乐编码!
-特洛伊