12 2020 档案

摘要:如题,之前一直使用的路由模式都是hash,今天用了下history模式,从主页点到其他页面时是可以的,但是直接 www.abc.com/news 这样的路径会404 解决:添加上红色部分配置即可 server { listen 80; server_name xxx; index xxx; root 阅读全文
posted @ 2020-12-30 15:40 隔壁的小明 阅读(336) 评论(0) 推荐(0)
摘要:如图,直接设置 type="number" 时会有右侧的按钮显示 去除方法: input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; } input[type="nu 阅读全文
posted @ 2020-12-23 18:06 隔壁的小明 阅读(788) 评论(0) 推荐(0)
摘要:https://github.com/yejunm3/bilibili-autumn 喜欢的可以给个star~ 阅读全文
posted @ 2020-12-12 11:18 隔壁的小明 阅读(145) 评论(0) 推荐(0)
摘要:方法1(推荐): 给组件加上唯一的key值,当key值发生变化,组件就会重新渲染,如: 方法2: 使用 v-if ,当有数据时,再渲染组件 方法3: Vue.forceUpdate() 参考文章:https://segmentfault.com/a/1190000021599461 https:// 阅读全文
posted @ 2020-12-12 11:16 隔壁的小明 阅读(1991) 评论(0) 推荐(0)