\u4ece\u516c\u544a\u6765\u770b\uff0crunes \u662f Svelte \u5f00\u53d1\u56e2\u961f\u5bf9 \u201c\u54cd\u5e94\u5f0f\u201d (reactivity) \u8fdb\u884c\u53cd\u601d\u7684\u4e00\u6b21\u63a2\u7d22\u3002<\/p>\n
Svelte 5 changes all that with runes, which unlock universal, fine-grained reactivity.<\/pre>\n\u4ed6\u4eec\u8868\u793a runes \u63d0\u4f9b\u4e86\u66f4\u901a\u7528\u3001\u4ee5\u53ca\u66f4\u7ec6\u7c92\u5ea6\u7684\u54cd\u5e94\u6027\u3002<\/p>\n
\u7531\u4e8e Svelte \u7684 runes \u548c Vue Reactive Transform \u7684\u8bbe\u8ba1\u601d\u60f3\u6bd4\u8f83\u76f8\u4f3c\uff0c\u6709\u5f00\u53d1\u8005\u8fdb\u884c\u4e86\u5982\u4e0b\u603b\u7ed3\uff1a<\/p>\n
runes(Svelte) = ref(Vue) = signal(Solid\/Angular) = observable(Mobx) ...<\/pre>\n\u66f4\u662f\u6709\u4eba\u505a\u4e86\u4e00\u5f20 Svelte \u548c Vue \u7684\u4ee3\u7801\u5bf9\u6bd4\u56fe\uff0c\u8868\u793a Svelte 5 \u5c06\u4f1a\u548c Vue \u53d8\u5f97\u975e\u5e38\u76f8\u4f3c\uff1a<\/p>\n
<\/p>\n
\u76ee\u524d Svelte 5 \u5c1a\u672a\u51c6\u5907\u597d\u7528\u4e8e\u6b63\u5f0f\u73af\u5883\uff0c\u4e0d\u8fc7\u5176\u5f00\u53d1\u56e2\u961f\u63d0\u4f9b\u4e86\u53ef\u4ee5\u4f53\u9a8c\u65b0\u7279\u6027\u7684 Playground\uff1asvelte-5-preview\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u4ece\u516c\u544a\u6765\u770b\uff0crunes \u662f Svelte \u5f00\u53d1\u56e2\u961f\u5bf9 \u201c\u54cd\u5e94\u5f0f\u201d (reactivity) \u8fdb\u884c\u53cd\u601d\u7684\u4e00\u6b21\u63a2\u7d22 […]<\/p>\n","protected":false},"author":362,"featured_media":283406,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[21],"tags":[],"class_list":["post-283791","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/283791","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/362"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=283791"}],"version-history":[{"count":4,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/283791\/revisions"}],"predecessor-version":[{"id":283919,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/283791\/revisions\/283919"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/283406"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=283791"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=283791"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=283791"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}