####### 通过npm安装jquery npm install jquery -D
npm install jquery -D
plugins: [ new webpack.ProvidePlugin({ $: "jquery", jQuery: "jquery", "window.jQuery": "jquery" }) ],
然后在全局中就可以直接使用$了