• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
ellaha
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 6 7 ··· 21 下一页
2022年1月12日
知识点合集
摘要: js vue 下的防抖和节流 https://juejin.cn/post/6844903971878862862 浅谈 JS 防抖和节流 https://segmentfault.com/a/1190000018428170 setTimeout详解 https://zhuanlan.zhihu. 阅读全文
posted @ 2022-01-12 20:28 ellaha 阅读(47) 评论(0) 推荐(0)
2022年1月9日
函数式组件使用props
摘要: <script type="text/babel"> function Demo(props){ const {name, age, sex} = props return ( <div> <ul> <li>{name}</li> <li>{age}</li> <li>{sex}</li> </ul 阅读全文
posted @ 2022-01-09 21:50 ellaha 阅读(163) 评论(0) 推荐(0)
类的属性 静态方法 一般方法 构造方法
摘要: class Dog{ //一般属性挂载在实例上 a = 1; // 静态属性挂载在原型对象上 static b = 2 // 构造方法挂载在原型对象上 constructor(){} // 一般方法挂载在原型对象上 cry(){} static call(){ console.log('静态方法挂载 阅读全文
posted @ 2022-01-09 17:18 ellaha 阅读(48) 评论(0) 推荐(0)
React引入文件的作用
摘要: 阅读全文
posted @ 2022-01-09 17:10 ellaha 阅读(28) 评论(0) 推荐(0)
React三大属性state使用(涉及this指向问题)
摘要: 1,https://juejin.cn/post/7001645745594400776 类式组件中的构造器完全可以省略 若写了构造器,super必须调用 需要在构造器中通过this.props访问,那么props必须传值给super <script type="text/babel"> class 阅读全文
posted @ 2022-01-09 15:04 ellaha 阅读(95) 评论(0) 推荐(0)
this、apply、call、bind
摘要: https://juejin.cn/post/6844903496253177863 阅读全文
posted @ 2022-01-09 15:04 ellaha 阅读(17) 评论(0) 推荐(0)
2022年1月8日
类方法中的this
摘要: 1,类中 class Dog{ constructor(name, age) { this.name = name this.age = age } cry() { console.log(this) // undefined console.log(`我的名字是${this.name},我的年龄是 阅读全文
posted @ 2022-01-08 15:01 ellaha 阅读(121) 评论(0) 推荐(0)
原生事件绑定机制的3种方法
摘要: 阅读全文
posted @ 2022-01-08 13:50 ellaha 阅读(30) 评论(0) 推荐(0)
2022年1月3日
函数式组件和类式组件的使用
摘要: 函数式组件缺陷:丢失了自己的this 严格模式下,禁止自定义的this指向window 阅读全文
posted @ 2022-01-03 14:24 ellaha 阅读(58) 评论(0) 推荐(0)
2022年1月2日
VScode配置代码片段
摘要: 1,vscode提供快捷键查看方法 2,vscode配置代码片段 其中hh表示代码片段的简写,在编辑器中输入hh,直接出来boby中的内容,$0将鼠标定位到此处 阅读全文
posted @ 2022-01-02 16:26 ellaha 阅读(112) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 21 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3