【发布时间】:2018-08-25 06:40:41
【问题描述】:
我是 ionic 新手,我正在关注 ionic framework documents 来学习它。
这是我的方法的代码:hello-ionic.ts
openActionSheet(){
let actionSheet=this.actionsheetCtrl.create(
{
title: 'Modify your album',
cssClass: 'page-hello-ionic',
buttons:[
{
text: 'Delete',
role: 'destructive', //will always sort to be on top
icon: !this.platform.is('ios') ? 'trash' : null,
handler: () => {
console.log('Delete clicked');
}
},
{
text: 'Play',
icon: !this.platform.is('ios') ? 'arrow-dropright-circle' : null,
handler: () => {
console.log('Play clicked');
}
},
{
text: 'Favorite',
icon: !this.platform.is('ios') ? 'heart-outline' : null,
handler: () => {
console.log('Favorite clicked');
}
},
{
text: 'Cancel',
role: 'cancel', // will always sort to be on the bottom
icon: !this.platform.is('ios') ? 'close' : null,
handler: () => {
console.log('Cancel clicked');
}
}
]});
actionSheet.present();
}
代码运行良好。但我想知道console.log() 打印在哪里。谁能帮我解决这个问题?
【问题讨论】:
-
您正在开发移动应用程序或网络应用程序?
-
移动应用。但是,我也在使用
ionic serve命令在网络中检查它。
标签: ionic-framework console.log