PageSourceSearch

https://cdn.nocobase.com/2.4.0-alpha.9.20260930161833/assets/212-beec614d.js

js nocobase.com collected 2026-10-02 09:55:27 UTC 795 bytes, 13 lines download raw bytes

1"use strict";(globalThis.webpackChunknocobase=globalThis.webpackChunknocobase||[]).push([["212"],{97487(e,t,n){n.r(t),n.d(t,{default:()=>c});let c={contexts:[n(79271).JSBlockRunJSContext],prefix:"sn-jsb-click",label:"Add click listener",description:"Render a button and bind a click event handler",locales:{"zh-CN":{label:"添加点击监听",description:"渲染按钮并绑定点击事件处理"}},content:`
2// Render a button and bind a click handler
3const button = document.createElement('button');
4button.textContent = ctx.t('Click me');
5button.style.padding = '6px 12px';
6button.addEventListener('click', () => ctx.message.success(ctx.t('Clicked!')));
7
8const wrapper = document.createElement('div');
9wrapper.style.padding = '12px';
10wrapper.appendChild(button);
11
12ctx.render(wrapper);
13`}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.