科技微讯

GatsbyJS 和 Next.js 如何在手机调试网站

gatsbyjs 远程调试,在手机上测试,步骤:

但是手机上怎么看到 console.log 呢?需要把手机用数据线连接到电脑

nextjs 不需要在 npm dev 后加 --host=0.0.0.0,其他和 gatsbyjs 一样,其中 mto.local 也可以替换为共享面板上面的 IP 地址。

thumbsup0
thumbsdown0
暂无评论