const logEditorRef = useRef<HTMLInputElement>(null);
const resizeEditor = () => {
logEditorRef.current.style.height = document.body.clientHeight - 86 + 'px';
};
关键代码如上,typescript环境下,提示ts(2531)错误
const logEditorRef = useRef<HTMLInputElement>(null);
const resizeEditor = () => {
logEditorRef.current.style.height = document.body.clientHeight - 86 + 'px';
};
关键代码如上,typescript环境下,提示ts(2531)错误
4 回答1.7k 阅读
2 回答1.1k 阅读✓ 已解决
2 回答2.6k 阅读
1 回答973 阅读✓ 已解决
1 回答698 阅读✓ 已解决
2 回答862 阅读✓ 已解决
2 回答1k 阅读
加个非空判断试试