随笔分类 - vue
摘要:在写样式时实在不可以就用style js的三元表达式 条件 ? 真值 : 假值 1>2?'yes':'no' => no 2>1?'yes':'no' => yes python的三元表达式 真值 if 条件 else 假值 在django文件中使用呢redis需要的配置 # django-redi
阅读全文
摘要:<html></html> 超文本文件 <head></head> 起始 <title></title> 网页标题 <body></body> 身体部分 <p align="center"></p> 段落居中 <center></center> 居中标签 <b></b> 加粗标签 <i></i> 倾
阅读全文
摘要:相当于python中的判断语 式子:1 == 1 ?‘a’: '' 例子: :class=" i == p ? 'active' : ''" # 如果i等于p那么用active
阅读全文
摘要:拦截器 to 去哪里 from 从哪里来 next 干什么 to.path 路由 定义条件,如果没有满足就返回拦截路由 router.beforeEach((to, from, next)=>{ // if(to.path == '/login') return next() // if(to.pa
阅读全文
浙公网安备 33010602011771号