摘要:
1.不充许被爬虫抓取你的页面<meta name="robots" content="noindex,nofollow"> 2 隐藏滚动条 .sider-menu { height: 100%; scrollbar-width: none; /* firefox */ -ms-overflow-st 阅读全文
摘要:
创建这样的一个纯静态的SSR形式的公共项目,下次只要copy除node_modules文件之外的所有文件 重新npm i 就可以了; 1.创建项目 npx create-nuxt-app <项目名> 2. swiper 轮翻图的插件 【我的这片博客有详细说明 :https://www.cnblogs 阅读全文
摘要:
这里一共讲述两种方式 亲测过的 方式1:路由不会有 /en /zh 变化,而且刷新的时候还有些小问题 需要对layouts 公共布局文件进行处理, 这样处理会有一小会的白屏问题; 方式2:可以跟方式1一样 路由不会变化 也不会因刷新白屏 闪烁等问题; 也可以根据切换语言 改变路由 /en/about 阅读全文
摘要:
自定义文件夹 nuxt.config.jsdir: { assets: 'custom-assets', app: 'custom-app', layouts: 'custom-layouts', middleware: 'custom-middleware', pages: 'custom-pag 阅读全文
摘要:
安装版本一:npm install vue-awesome-swiper@3.1.3npm install swiper@4.0.7 安装版本二: npm install vue-awesome-swiper@4.0.0npm install swiper@5.4.5 import Vue from 阅读全文
摘要:
创建nuxt项目 npx create-nuxt-app 项目名 启动 npm run dev 项目上线1.执行 npm run build2.将打包好的 .nuxt ==>隐藏文件 static nuxt.config.js package.json 把以上文件丢到服务器某个文件中,并且在服务器安 阅读全文
摘要:
forEachvar arr = [1, 2, 3, 4, 5];// forEacharr.forEach(function (item, i, array) { console.log(item, i, array); }) 结果:1 0 [1, 2, 3, 4, 5]2 1 [1, 2, 3, 阅读全文
摘要:
1. ls 列出文件和目录# lsbranches config description HEAD hooks index info objects refs 2. whoami 显示用户名# whoamiroot 3. pwd 显示当前目录#pwd/root/www 4. cd 切换工作目录# c 阅读全文