摘要: 方法说明: 用来定义或修改对象的属性。 共3个参数都是必须的:obj-目标对象、newKey-属性名、{}-属性特性 给对象的属性添加特性描述(第三个参数),目前提供两种形式:数据描述和存取器描述。 数据描述: 存取器描述:注:当使用了getter或setter方法,不允许使用writable和va 阅读全文
posted @ 2018-10-15 16:24 GR07 阅读(576) 评论(0) 推荐(0) 编辑
摘要: concat() 对于不包含引用对象的数组可以达到深拷贝的效果 concat() 对于包含引用对象的数组是浅拷贝 阅读全文
posted @ 2018-10-08 17:16 GR07 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 安装 npm install element-china-area-data -save 在线演示:https://plortinus.github.io/element-china-area-data/index.html github:https://github.com/airyland/ch 阅读全文
posted @ 2018-09-27 15:52 GR07 阅读(2495) 评论(0) 推荐(0) 编辑
摘要: 首先说一下会用到几个知识点 1.event.target.files[0] 获取的是上传的图片的一些参数如下图: 可以自己依次打印看看 console.log(event, event.target, event.target.files, event.target.files[0]) 2. HTM 阅读全文
posted @ 2018-09-11 16:25 GR07 阅读(12863) 评论(0) 推荐(0) 编辑
摘要: 安装 npm install --save vue-waterfall 引入 import Waterfall from 'vue-waterfall/lib/waterfall'import WaterfallSlot from 'vue-waterfall/lib/waterfall-slot' 阅读全文
posted @ 2018-08-22 15:13 GR07 阅读(7096) 评论(0) 推荐(0) 编辑
摘要: 安装: cnpm install vue-area-linkage --save 组件 cnpm install area-data --save 城市数据来源依赖 使用: main.js: import Vue from 'vue'; import VueAreaLinkage from 'vue 阅读全文
posted @ 2018-08-15 12:00 GR07 阅读(3039) 评论(0) 推荐(0) 编辑
摘要: 一、cookie cookie算是比较早的技术,最初是为了记录http的状态,提高访问速度。cookie是服务器"种植"在客户端的key-value形式文本文件。但同时客户端也能操作cookie。特点: 大小:cookie的大小限制在4k。每个域名下cookie的个数现在在20个。 在客户端请求服务 阅读全文
posted @ 2018-07-25 16:49 GR07 阅读(527) 评论(0) 推荐(0) 编辑
摘要: vue阶段性学习笔记总结 1.router-link被选中时会默认添加类名router-link-active,如果觉得太长不方便还可以自己自定义名称new VueRouter({ linkActiveClass: 'active'}) 2.路由 可以把资源缓存在内存中每次切换路由保持之前页面状态, 阅读全文
posted @ 2018-07-12 17:23 GR07 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 基本使用方法 1.安装 cnpm install vue-awesome-swiper --save 2.引用 3.使用 4.可选参数 阅读全文
posted @ 2018-06-21 11:23 GR07 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 文件prod.server.js 启动 node prod.server.js 阅读全文
posted @ 2018-05-29 16:56 GR07 阅读(535) 评论(0) 推荐(0) 编辑