# 谁能向我解释一下用户卡片弹窗是如何工作的？

**URL:** <https://meta.discourse.org/t/can-someone-please-explain-to-me-how-the-user-card-pop-up-works/93479>\
**Category:** Development\
**Created:** [2018 年7 月 30 日 14:24 UTC](https://meta.discourse.org/t/can-someone-please-explain-to-me-how-the-user-card-pop-up-works/93479 "2018-07-30T14:24:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)\
发布日期： [2018 年7 月 30 日 14:53 UTC](https://meta.discourse.org/t/can-someone-please-explain-to-me-how-the-user-card-pop-up-works/93479/2 "2018-07-30T14:53:32Z")

</div>

I think you’re looking for `card-contents-base.js.es6`, which defines a series of events which point to the `_show` method.

```plaintext
# card-contents-base.js.es6#103
$("#main-outlet").on(clickDataExpand, `[data-${id}]`, e => {});

$("#main-outlet").on(clickMention, `a.${triggeringLinkClass}`, e => {});

this.appEvents.on(previewClickEvent, $target => {});

```

```plaintext
# card-contents-base.js.es6#20
_show(username, $target) {}

```

---

_[View the full topic](https://meta.discourse.org/t/can-someone-please-explain-to-me-how-the-user-card-pop-up-works/93479)._
