# 如何替换文本并动态更新

**URL:** https://meta.discourse.org/t/how-to-replace-text-and-update-dynamically/244317
**Category:** Support
**Created:** [2022年十一月4日 06:45 UTC](https://meta.discourse.org/t/how-to-replace-text-and-update-dynamically/244317 "2022-11-04T06:45:01Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2022年十一月4日 16:04 UTC](https://meta.discourse.org/t/how-to-replace-text-and-update-dynamically/244317/3 "2022-11-04T16:04:01Z")

</div>

> [@Mark\_Schmucker](#):
>
> 问题在于，除非你编辑帖子，否则现有帖子不会显示更新后的披露声明。这使得此用例的目的失效。

如果你不经常更改免责声明，那么在更改时可以[重新烘焙匹配模式的所有帖子](https://meta.discourse.org/t/rebake-all-posts-matching-a-pattern/48713)。

这个解决方案的优点是不需要在每次查看时重新渲染每个帖子的文本。

---

_[View the full topic](https://meta.discourse.org/t/how-to-replace-text-and-update-dynamically/244317)._
