本页还没有译文
本页 4 段还没译成简体中文,下面显示的是英文原文。.svelte.js and .svelte.ts files
还没翻译译自英文(svelte.dev)本页 4 段都还没译
Besides .svelte files, Svelte also operates on .svelte.js and .svelte.ts files.
These behave like any other .js or .ts module, except that you can use runes. This is useful for creating reusable reactive logic, or sharing reactive state across your app (though note that you cannot export reassigned state).
Legacy mode
This is a concept that didn't exist prior to Svelte 5
AI 翻译查看英文原文