Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 SvelteKit 中,我想在不使用 SSR 加载功能的情况下访问 page.params,因为我只想进行客户端渲染。有没有办法在没有 SSR 加载功能的情况下访问 page.params?
我得到了解决方案。
import { page } from "$app/stores"; const { slug } = $page.params;
通过这种方式,我得到了没有加载功能的参数。