proxy: { '/*': { target: 'http://wx.lxjjz.cn', changeOrigin: true // pathRewrite: {'^/api': ''} } } $.ajax({ url:"/do?g=api&m=product&a=index", success:function (data){ console.log(data) } })
匹配所有应该直接写成/
,而不是“/*"
webpack用的这个 https://github.com/chimurai/h...