# 如何在Discourse主题中放置javascript？

**URL:** https://meta.discourse.org/t/how-to-put-javascript-in-discourse-theme/246157
**Category:** Development
**Created:** [2022年十一月19日 20:49 UTC](https://meta.discourse.org/t/how-to-put-javascript-in-discourse-theme/246157 "2022-11-19T20:49:19Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2022年十一月19日 22:28 UTC](https://meta.discourse.org/t/how-to-put-javascript-in-discourse-theme/246157/9 "2022-11-19T22:28:19Z")

</div>

您真的应该读读这个 @danielabc，如果您还没有读过的话：

> [@Developing Discourse Themes & Theme Components](https://meta.discourse.org/t/beginners-guide-to-developing-discourse-themes/93648):
>
> Discourse Themes and Theme Components can be used to customize the look, feel and functionality of Discourse’s frontend. This section of the developer guides aims to provide all the reference materials you need to develop simple themes for a single site, right up to complex open-source theme components. This introduction aims to provide a map of all the tools and APIs for theme development. If you prefer a step-by-step tutorial for theme development, jump straight to: Themes vs. Theme Compon…

---

_[View the full topic](https://meta.discourse.org/t/how-to-put-javascript-in-discourse-theme/246157)._
