06 2020 档案

摘要:编程世界中各种奇奇怪怪的需求都有,本次遇到一个需求:根据URL参数判断,包含 xxx=00001 的页面上,引入的 test.js 文件要去掉一部分代码,但是带有参数和不带参数的页面 js 链接都为 http://localhost/test.js。意思就是同一个 test.js 需要根据页面 UR 阅读全文
posted @ 2020-06-30 15:55 前端路引 阅读(1543) 评论(0) 推荐(0)
摘要:nuxt.js 生成的默认文件 components/Logo.vue 源码大概如下: 1 <template> 2 <svg 3 class="NuxtLogo" 4 > 5 </svg> 6 </template> 7 <style> 8 .NuxtLogo { 9 margin: auto; 阅读全文
posted @ 2020-06-16 15:40 前端路引 阅读(3410) 评论(0) 推荐(1)
摘要:去 github 搜索了一把,估计是我关键词不对,没找到比较牛逼的插件。然后去 nextjs 官方仓库搜索,发现了这个东东 https://github.com/vercel/next.js/tree/canary/examples/with-next-offline,瞄了一眼 package.js 阅读全文
posted @ 2020-06-16 11:17 前端路引 阅读(1191) 评论(0) 推荐(0)