摘要:
const isYesterday=(theDate='2022-1-1 10:12:00')=>{ theDate = new Date(theDate) var date = (new Date()); //当前时间 var today = new Date(date.getFullYear() 阅读全文
摘要:
Error: Too many re-renders. React limits the number of renders to prevent an infinite loop. 错误:重新渲染过多。 React 限制了渲染的数量以防止无限循环。 不能在条件语句里面执行hooks 需要写到use 阅读全文
摘要:
父组件 class 类组件, 关键代码我用红色部部分标记 import React from "react"; import { View,Text} from "react-native"; import HomeModalChilder from "../../components/homeMo 阅读全文