typescripy
weixin_40461134
这个作者很懒,什么都没留下…
展开
-
vue3+typescript 3种获取dom元素的方式
第一种 getCurrentInstance() 这种较为麻烦<span ref="numberGrow" :data-time="time" class="number-grow" :data-value="value" >0</span >import { defineComponent, onMounted, getCurrentInstance } from 'vue'//填 any暂时没找到解决方案,原创 2021-08-17 15:15:35 · 3958 阅读 · 0 评论 -
typescript ts对document.activeElement.blur()的定义
if (document.activeElement instanceof HTMLElement) {document.activeElement.blur()}原创 2021-08-17 14:15:44 · 1465 阅读 · 0 评论 -
vue3 mapState、mapGetters、mapMutations、mapActions
转载的https://blog.csdn.net/weixin_40461134?spm=1001.2101.3001.5343转载 2021-08-06 11:04:42 · 536 阅读 · 0 评论 -
typescript 定时器的定义和Nodejs 未定义的解决方法
参考网上的解决方法 可以设置type interValueProps = NodeJS.Timer | nulllet Timer:interValueProps = setInterval(....但写上去报了 eslint 错误 ‘NodeJS’ 未定义 ‘NodeJS’ is not defined.eslint查了一下 有两种方法1. @typescript-eslint/parser@4导致这个问题。(相关提交:4d7265a)将其降级到 v3@typescript-eslint/原创 2021-08-04 09:14:23 · 2172 阅读 · 0 评论