摘要: 创建 单独文件 store.js 模块化 state :存放属性 如同data getters :获取数据 如同计算属性 actions : 用户行为 如同 methods 方法 里面存用户改变时候的方法 mutations: 操作数据 在有用户行为后 操作数据改变数据 最后 把store暴露出去 阅读全文
posted @ 2019-08-05 18:45 想上天与太阳并肩 阅读(115) 评论(0) 推荐(0) 编辑
摘要: git & github 的使用 git: 版本管理工具(vcs) 作用: 1、分布式版本控制 2、多个开发人员协调工作 3、有效监听谁做的修改 4、本地及远程操作 基础命令 在文件夹中创建一个 文件 命令 touch xxx (例如: touch index.html) 创建一个新的文件夹 命令 阅读全文
posted @ 2019-07-26 11:42 想上天与太阳并肩 阅读(158) 评论(0) 推荐(0) 编辑
摘要: reduce()方法 链接 计算数组内元素相加的总和 阅读全文
posted @ 2019-07-24 00:00 想上天与太阳并肩 阅读(85) 评论(0) 推荐(0) 编辑
摘要: npm install -g cnpm -registry=https://registry.npm.taobao.org 然后可以使用 cnpm install xxx 配置淘宝镜像 npm config set registry https://registry.npm.taobao.org n 阅读全文
posted @ 2019-07-22 15:58 想上天与太阳并肩 阅读(1759) 评论(0) 推荐(0) 编辑
摘要: navigator.platform platform 属性是一个只读的字符串,声明了运行浏览器的操作系统和(或)硬件平台 阅读全文
posted @ 2019-06-27 17:17 想上天与太阳并肩 阅读(3851) 评论(0) 推荐(0) 编辑
摘要: 移动端适配计算单位 js 一、http://www.jq22.com/demo/gouwuche201708281153/ 移动端适配 二、flexible.js 阅读全文
posted @ 2019-06-26 11:31 想上天与太阳并肩 阅读(361) 评论(0) 推荐(0) 编辑
摘要: css js 阅读全文
posted @ 2019-06-25 15:02 想上天与太阳并肩 阅读(680) 评论(0) 推荐(0) 编辑
摘要: vue生命周期图示 跳转链接 1 beforeCreate(){ 2 console.log('组件实例化之前') 3 }, 4 created(){ 5 console.log('组件实例化完毕,单页面还未显示') 6 }, 7 beforeMount(){ 8 console.log('组件挂载 阅读全文
posted @ 2019-05-31 11:34 想上天与太阳并肩 阅读(783) 评论(0) 推荐(0) 编辑
摘要: vue-resource安装 npm install vue-resource --save-dev 配置 在main.js中引入插件 注册使用 使用 跳转了解钩子函数 阅读全文
posted @ 2019-05-31 11:31 想上天与太阳并肩 阅读(1352) 评论(0) 推荐(0) 编辑
摘要: 点击按钮实现路由的跳转 实现跳转 阅读全文
posted @ 2019-05-31 11:13 想上天与太阳并肩 阅读(18968) 评论(0) 推荐(2) 编辑