摘要: https://blog.csdn.net/weixin_44763569/article/details/107381631?utm_medium=distribute.pc_relevant.none-task-blog-baidujs_title-0&spm=1001.2101.3001.42 阅读全文
posted @ 2021-07-08 15:25 懒惰ing 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 需求 当消息超出内容区域时滚动显示 方法 当消息内容超出总内容区域时添加一个与当前消息内容一摸一样的 dom 元素 将总内容区域的 overflow 设置为 hidden,隐藏多余内容 然后控制总内容区域的 scrollTop 来向上轮播 然后当总内容区域的 scrollTop 大于第二个 dom 阅读全文
posted @ 2021-07-08 14:37 懒惰ing 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 需求 创建一个表单组件然后提交 非受控组件 现用现取 class Login extends React.Component { // 表单提交 handleSubmit = () => { const {username, password} = this; alert(`你输入的用户名是:${u 阅读全文
posted @ 2021-07-08 00:17 懒惰ing 阅读(66) 评论(0) 推荐(0) 编辑