【发布时间】:2022-09-26 02:29:07
【问题描述】:
我无法访问 astro 文件的查询参数。
给定网址http://localhost:3000/example?hello=meow:
如何从example.astro 文件中访问{hello: \"meow\"}?
-
这回答了你的问题了吗? How to get the querystring parameters with Astro
-
@BadPiggie 不,这是专门使用客户端/前端 js 上的查询参数。
-
server side是什么意思。Astro中的页面是预先呈现的并且完全是静态的 -
@BadPiggie 有一个
output: \"server\"模式,它代替了 ssr。
标签: javascript astrojs