版本:v2Capacitor CLI - cap serve 在浏览器中运行 Capacitor 渐进式 Web 应用,使用 capacitor.config.json 中指定的 webDir 目录作为服务根路径。 npx cap serve