惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
SegmentFault 最新的问题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Attack and Defense Labs
Attack and Defense Labs
F
Full Disclosure
Vercel News
Vercel News
N
News | PayPal Newsroom
The GitHub Blog
The GitHub Blog
H
Hacker News: Front Page
H
Heimdal Security Blog
P
Privacy International News Feed
博客园 - 司徒正美
Google DeepMind News
Google DeepMind News
N
Netflix TechBlog - Medium
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cisco Blogs
L
Lohrmann on Cybersecurity
D
Docker
Recent Announcements
Recent Announcements
Security Archives - TechRepublic
Security Archives - TechRepublic
人人都是产品经理
人人都是产品经理
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Proofpoint News Feed
T
Tailwind CSS Blog
C
Check Point Blog
博客园 - 叶小钗
Google Online Security Blog
Google Online Security Blog
Martin Fowler
Martin Fowler
Stack Overflow Blog
Stack Overflow Blog
博客园 - 聂微东
S
Secure Thoughts
博客园 - Franky
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
P
Palo Alto Networks Blog
Latest news
Latest news
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 三生石上(FineUI控件)
The Cloudflare Blog
Last Week in AI
Last Week in AI
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Cyberwarzone
Cyberwarzone
小众软件
小众软件
Cisco Talos Blog
Cisco Talos Blog
Hacker News: Ask HN
Hacker News: Ask HN
T
Threatpost
T
Tenable Blog
P
Privacy & Cybersecurity Law Blog
WordPress大学
WordPress大学

Svelte

自推下刚写的 Svelte 代码块 VSCode 插件 随意换装-基于 Svelte 与 Tailwind 的组件库 STDF 支持多主题配置 - V2EX SvelteKite 的 Server-only modules 的疑问 - V2EX svelte 这个框架现在是想往 svelteKit 这条路走到死? Intro new book on Svelte
Svelte JS 感觉比 Vue JS 要好不少啊,语法类似,速度更快,为何国内没啥人用? - V2EX
a7dog · 2021-03-10 · via Svelte
vision1900

5

vision1900      2021 年 10 月 30 日

刚刚尝试 svelte  一个小时,对他的 reactivity 不是很感冒,必须要用 assignment ,比如我声明一个 const 的 数组,再向里面 push 一个 value ,他居然不会响应。
不过他的类 JSX 真是比 react 好了一万倍,特别是他的 await, if-else 语法,太方便了
```html
<div>
{#await fetchFriends()}
<p>loading friends</p>
{:then friends}
{#each friends as friend}
{#if friend.age >= 30}
<div>{friend.name} is over 30 years old</div>
{:else if friend.age >= 20}
<div>{friend.name} is over 20 years old but not over 30</div>
{:else}
<div>{friend.name} is less than 20 years old</div>
{/if}
{/each}
{:catch err}
<p>error while fetching friends data</p>
{/await}
</div>
```