![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
typescript
绝妙神
这个作者很懒,什么都没留下…
展开
-
typescript TS2416 类型乱报错的问题
typescript ts2416 类型瞎报错的问题TMD 搞了大半夜 原来是这个问题自动增加了类型 这是为什么???解决方法:全家搜索改类型 看下在哪里删除调就好了一般是某个*.d.ts文件里写出了```Property ‘state’ in type ‘Marquee’ is not assignable to the same property in base type ‘...原创 2019-06-29 02:24:19 · 5816 阅读 · 0 评论 -
react 父组件获取子组件输入框的值
最近在做登录的功能想把输入框的都做成组件遇到一个问题: 父组件form 怎么拿到子组件输入框的值解决方法:采用react新提供的**React.createRef()**方法具体代码:父组件代码import * as React from 'react';import Pager from "../components/Pager";import Input from "../...原创 2019-07-06 23:13:40 · 3028 阅读 · 0 评论