会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
浅笑19
首页
新随笔
联系
订阅
管理
2020年12月9日
react 中使用switch-case 随记
摘要: 在生命周期中使用switch-case switch(num){ case "1":return 'a'; case "2":return 'b'; case "3":return 'c'; default:return 'd'; } 在render中使用switch-case(注意括号) rend
阅读全文
posted @ 2020-12-09 16:07 浅笑19
阅读(2227)
评论(0)
推荐(0)
编辑
公告