![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ts
文章平均质量分 76
_Pierre
这个作者很懒,什么都没留下…
展开
-
vue3.0新特性记录表(只记录常用的)
使用composition API (组合式API) 来调用内部方法,组件。 例如:import {ref,reactive,defindComponent,defindAsyncComponent, teleport,getCurrentInstance,watch,computed} from 'vue'defindComponent: 定义组件defindAsyncComponent() 方法: 定义异步组件方法teleport : 传送getCurrentInstance() : 获取当.原创 2020-08-20 17:37:49 · 485 阅读 · 0 评论 -
ts的自学之路(未完)
ts的好处:代码出现类型不对或者其他错误后能立刻显示出来。在写对象的方法的时候能自动补全等等........Ts的安装:需要安装node 运行环境和ts,安装好后通过tsc demo.ts 来对ts文件进行编译,编译出一个js文件后通过 node demo.js 来运行得出结果。当然这个流程是已经比较复杂,可以安装npm install -g ts-node 来辅助编译。 ts-node demo.tsTS基础语法静态类型比动态类型的好处在于剥夺它的”灵活性”,使它更具有规范性。..原创 2020-07-04 18:07:07 · 2579 阅读 · 0 评论