摘要: 在生命周期中使用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) 编辑