This website works better with JavaScript.
欢迎来到马士兵代码仓库
Sign In
msb-public
/
svelte
mirror of
https://github.com/sveltejs/svelte
Watch
1
Star
0
Code
Issues
Projects
Releases
Wiki
Activity
7d4958b012
svelte
/
test
/
hydration
/
samples
/
event-handler
/
main.html
5 lines
101 B
Raw
Blame
History
<
button
on:click
=
'set({ clicked: true })'
>
click me
<
/
button
>
{{#if clicked}}
<
p
>
clicked!
<
/
p
>
{{/if}}
Reference in new issue
View Git Blame
Copy Permalink