---
title: "Discussion on \"hashnode 插件是否支持 Javascript？\" | Hashnode"
description: "Discussion on \"hashnode 插件是否支持 Javascript？\". 首先我们编写一个简单的插件，命名为 'alert'：\n<script>\nconsole.log('hello from widget');\n\nlet count = 0;\n\nfunction click_button(){\n    let str = `click button from widget ${++count} times`;\n    console.log(str);\n    document.getElementById(\"demo\").innerHTML = str;\n    ..."
url: "https://hashnode.com/posts/does-hashnode-support-javascript-cn/659f483ad4145333abd60461"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [hashnode 插件是否支持 Javascript？](https://blog.iread.fun/does-hashnode-support-javascript-cn?utm_source=hashnode&utm_medium=feed)

首先我们编写一个简单的插件，命名为 'alert'： <script> console.log('hello from widget'); let count = 0; function click\_button(){ let str = \`click button from widget ${++count} times\`; console.log(str); document.getElementById("demo").innerHTML = str; ...

Jan 11, 2024 · 1 min read · blog.iread.fun  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#hashnode](https://hashnode.com/tag/hashnode)
-   [#widgets](https://hashnode.com/tag/widgets)

## Written by

[v like](https://hashnode.com/@likev)

@likev

  
[View profile](https://hashnode.com/@likev)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
