# webProject
**Repository Path**: yangyang_kimi/web-project
## Basic Information
- **Project Name**: webProject
- **Description**: 前端工程
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-11-12
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# webProject
#### 介绍
前端工程
#### Cookie localStorage sessionStorage
1. 存储大小 Cookie 4K Storage 5M
2. 有效期: Cookie 拥有有效期 storage 只存储在浏览器端
3. cookie会发送到服务器端,存储在内存中,storage只存在浏览器端
4. 路径: cookie由路径限制,storage 只存储在域名下
5. API: cookie没有特定的API,storage由对应的API
##### 封装storage
1. storage只是简单的key/value形式
2. storage只存储字符串,需要手工转换成json对象
3. storage只能一次性清空,不能单个清空
##### VUE 项目引入Sass后启动报错 TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string 解决方法
1.把package.json里面node-sass和sass-loader版本改成:"node-sass": "^4.11.1","sass-loader": "^7.3.0"就可以了
2.删掉node_modules文件夹,重新执行npm install,完美解决
###### 路由跳转 由a页面跳到b页面
登录
this.$router.push('/cart');
#### 设置超链接 target="_black" 打开新的窗口
娱乐
#### 安装教程
1. vue 的安装
2. node 安装
3. npm install 安装所需依赖
4. 启动 npm run dev
##### VueLazyload 懒加载
Vue.use(VueLazyload,{
loading:'/static/imgs/loading-svg/loading-bars.svg'
});
#### 使用说明
1. xxxx
2. xxxx
3. xxxx
#### 参与贡献
1. Fork 本仓库
2. 新建 Feat_xxx 分支
3. 提交代码
4. 新建 Pull Request
#### 特技
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)