使用第三方模块 我们可以在应用中使用第三方模块,一个典型的例子是在客户端和服务端使用 axios 做 HTTP 请求。 首先我们需要安装 npm 包: npm install --save axios 然后,在页面内这样使用: <template> <h1>{ { title }}</h1> </template