![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
趣呀
这个作者很懒,什么都没留下…
展开
-
vue2.0在IE11无法打开的解决办法
npm 安装bebel-polyfill npm install --save-dev babel-polyfill 在webpack.base.conf.js文件中将module.exports = { context: path.resolve(__dirname, '../'), entry: { app: './src/main.js', }改原创 2017-12-20 14:41:13 · 9268 阅读 · 0 评论 -
vue2.0在使用websocket时切换页面后websocket依旧保持连接
在页面切换之后需要主动的将websocket进行断开操作 在methods中定义websocket函数 websocket () { let ws = new WebSocket('ws://localhost:8080') ws.onopen = () => { // Web Socket 已连接上,使用 send() 方法发送数据 ws.原创 2017-12-21 14:17:06 · 35686 阅读 · 8 评论