- 博客(3)
- 收藏
- 关注
转载 Vue打包后部署NGINX,router mode history
server { listen 80; server_name localhost; index index.html; root / root / dist; location / { root / root / dist; try_files $uri $uri / /index.html = 404 ; }}...
2019-04-22 12:35:12 540
转载 Vue中央事件总线bus
大家都知道,一个,可以作为一个简单的组件传递数据,用于解决跨级和兄弟组件通信问题,那么,这篇文字,我将使用这种思想,将bus封装为一个Vue的插件,可以在所有的组件间任意使用,而不需要导入bus。首先,我们使用vue-cli创建一个项目vue-bus, 在src目录下,新建vue-bus.js文件,vue-bus插件像vue-router 和 Vuex一样,给Vue对象添加一个属性$bus...
2019-04-19 11:08:49 553
转载 vue-cli3 一直运行 /sockjs-node/info?t= 解决方案
vue-cli3 一直运行 /sockjs-node/info?t= 解决方案首先sockjs-node是一个JavaScript库,提供跨浏览器JavaScript的API,创建了一个低延迟、全双工的浏览器和web服务器之间通信通道。服务端:sockjs-node(https://github.com/sockjs/sockjs-node)客户端:sockjs-clien(http...
2019-04-18 18:15:42 4068 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人