angular - 如何获取作为对象对象显示到控制台的对象的属性
问题描述
我有这样的功能。
monthChanger(event) {
console.log('monthChanged.............'+event); }
在模板中用作
<ion-calendar [(ngModel)]="date"
(change)="onChange($event)"
[options]="options"
type="string"
format="YYYY-MM-DD"
readonly="true"
(monthChange)="monthChanger($event)"
>
</ion-calendar>linked to template like this.
控制台只显示这样
我如何访问对象内部的属性。请帮助我。我的意思是数据字段和属性。
解决方案
console.log('monthChanged.............'+JSON.stringify(event));
推荐阅读
- facebook-ads - application_id 必须是有效的 Facebook 广告
- google-bigquery - 如何将 TIMESTAMP_MICROS 转换为日期格式?
- php - 调用未定义的方法 Spatie\Analytics\AnalyticsFacade::fetchVisitorsAndPageViews()
- javascript - 检测 linux 的发行版和发行版的发行版(javascript - 客户端)
- mysql - 如何更改我的 sql 查询,以便删除列中具有某些值的行
- c# - .Net 实体框架更新分离的孩子
- android - 无法实例化活动 ComponentInfo{com.example/com.example.MainActivity}:
- java - 为什么函数在 Java 中不返回数组?
- google-apps-script - 使用 UrlFetch 时抛出“意外错误”
- node.js - 进行并行组合时,openwhisk-composer 无法连接到 Redis 服务器