1. 首页
  2. 考试认证
  3. 其它
  4. leetcode卡 todo list 代码规范/待办事项

leetcode卡 todo list 代码规范/待办事项

上传者: 2024-10-06 21:42:10上传 ZIP文件 2.92KB 热度 3次
leetcode卡Best Practice通过让路由的父级渲染一个单独的router-view组件,来实现多级路由的嵌套关系{ path: '/survey', name: 'questionnaire', component: { render: h => ( ) }, children:[ //... ] }路由name按照层级命名{ component: () => import('@/views/Withdraw/Result/Description/Index.vue'), name: 'withdraw-result-description', path: '/withdraw/result/description' }避免使用魔术数字,声明常量保存魔术数字const SELECTED = 1 if(x === SELECTED){ //... } DOM/自定义事件处理程序的函数名用handle作为开头// html
下载地址
用户评论