图片能正常显示是因为经过 webpack 处理了,(src 引用的资源变成了 base64 的)。这是因为 vue-loader 做了处理。 用变量引用 var img = require (‘路径’)的方式引入资源