小编xue*_*ang的帖子

在哪里检查“异常”和“timing_complete”事件?

我正在使用 gtag.js。我发送这个没有问题:

gtag('event', 'aaa', {
  'event_category': 'bbb',
  'event_label': error
});
Run Code Online (Sandbox Code Playgroud)

并在https://analytics.google.com上的实时 > 事件面板下检查它。但我发送后不知道去哪里查看:

gtag('event', 'exception', {  
 'description': error,  
 'fatal': true // set to true if the error is fatal  
});
gtag('event', 'timing_complete', {  
 'name': 'load',  
 'value': Math.round(performance.now()),  
 'event_category': 'JS Dependencies'  
});
Run Code Online (Sandbox Code Playgroud)

这两个特殊事件记录在此处: https: //developers.google.com/analytics/devguides/collection/gtagjs/exceptions。但没有 UI 来检查它们吗?

google-analytics gtag.js

5
推荐指数
0
解决办法
722
查看次数

Typescript:如何仅从类类型获取所有属性装饰器?

const metadataKey = "metadataKey";
class User
{
    @Reflect.metadata(metadataKey, 1)
    name: string;
    @Reflect.metadata(metadataKey, 2)
    age: number;
}

getPropertyDecorators(User); // I hope it can return [1, 2]
Run Code Online (Sandbox Code Playgroud)

我希望函数 getPropertyDecorators 不需要创建 User 的实例。

reflection typescript typescript-decorator

0
推荐指数
1
解决办法
3412
查看次数