摘要: 准备 1. 安装淘宝 npm镜像 npm install g cnpm registry= "https://registry.npm.taobao.org" 2. 添加系统变量path的内容 因为cnpm会被安装到D:\Program Files\nodejs\node_global下,而系统变量 阅读全文
posted @ 2019-08-01 19:02 sands 阅读(589) 评论(0) 推荐(0) 编辑
摘要: 项目背景 环信webim 官方没有vue版本的,自己就根据sdk重写了个vue版本的,只实现了基础的 登录 群组功能,其他的可以根据需要参考官方文档,添加相应的功能。 环信webim SDK相关文档: http://docs im.easemob.com/im/web/intro/start 先使用 阅读全文
posted @ 2019-08-01 18:58 sands 阅读(783) 评论(1) 推荐(0) 编辑
摘要: 什么是Typescript TypeScript 是一种由微软开发的自由和开源的编程语言,它是 JavaScript 的一个超集,扩展了 JavaScript 的语法。作者是安德斯大爷, Delphi、C 之父(你大爷永远是你大爷)。把弱类型语言改成了强类型语言,拥有了静态类型安全检查, IDE 智 阅读全文
posted @ 2019-08-01 18:56 sands 阅读(2058) 评论(0) 推荐(0) 编辑
摘要: ``` class Foo { save(callback: (n: number) = any) : void { callback(42) } multipleCallbacks(firstCallback: (s: string) = void, secondCallback: (b: boo 阅读全文
posted @ 2019-08-01 18:50 sands 阅读(2200) 评论(0) 推荐(0) 编辑
摘要: vuex class可以包装vuex的写法,使代码简化 Installation $ npm install save vuex class Example 阅读全文
posted @ 2019-08-01 18:48 sands 阅读(11102) 评论(0) 推荐(0) 编辑