摘要: 1.字符串转数组 2.数组转字符串 3.字符串转数组,数组转数组格式化,数组格式化转数组 4.数组转数组json 5.ajax请求接口取一个字符串存数组 6.concat数组 7.两个数组循环,找到相对应的值 let robot_statusarr=item.robot_status.split(' 阅读全文
posted @ 2018-03-21 15:44 anne_zhou 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 父子组件通信: 子组件 父组件 兄弟组件通信: 在main,js里加 import Vue from 'vue' window.eventBus = new Vue(); 在组件里 兄弟1组件:window.eventBus.$emit('函数名称', {参数 键:值}); 兄弟2组件: windo 阅读全文
posted @ 2018-03-20 10:13 anne_zhou 阅读(131) 评论(0) 推荐(0) 编辑
摘要: git使用 在自己的git本地建立并切换分支 git branch -b "本地分支" 在自己的本地分支上传到git远程分支 git add . git commit -m "上传备注" git push origin 本地分支:远程分支 切换到master分支上 git pull 合并本地分支 g 阅读全文
posted @ 2018-03-12 11:12 anne_zhou 阅读(186) 评论(0) 推荐(0) 编辑
摘要: mix-blend-mode: normal; //正常 mix-blend-mode: multiply; //正片叠底 mix-blend-mode: screen; //滤色 mix-blend-mode: overlay; //叠加 mix-blend-mode: darken; //变暗 阅读全文
posted @ 2018-03-08 18:26 anne_zhou 阅读(1409) 评论(0) 推荐(0) 编辑
摘要: 1、 viewport <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" /> // width 设置vi 阅读全文
posted @ 2018-03-05 18:06 anne_zhou 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 1.安装npm install axios --save 2.在main.js 里 import axios from 'axios' Vue.prototype.$http = axios 3.在页面里使用 post提交 this.$http.post('路径', {参数}) .then( suc 阅读全文
posted @ 2018-03-05 15:54 anne_zhou 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 3D全景之ThreeJs 一、前言 随着H5越来越多的被应用到各个领域,3D也越来越频繁的出现在各个H5案例中,今天我们就来讨论一下3D全景的实现。 据百度百科上介绍:720全景是视角超过人的正常视角的图像。顾名思义就是给人以三维立体感觉的实景360度全方位图像。全景实际上只是一种对周围景象以某种几 阅读全文
posted @ 2018-02-28 14:59 anne_zhou 阅读(1514) 评论(0) 推荐(0) 编辑
摘要: .parent{ position: relative; } .child{ position: absolute; top:50%; transform: translateY(-50%); } 阅读全文
posted @ 2018-02-28 12:37 anne_zhou 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 1.event.stopPropagation(); 事件处理过程中,阻止了事件冒泡,但不会阻击默认行为 2.return false; 事件处理过程中,阻止了事件冒泡,也阻止了默认行为 3.event.preventDefault(); 它的作用是:事件处理过程中,不阻击事件冒泡,但阻击默认行为 阅读全文
posted @ 2018-02-11 10:28 anne_zhou 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1.常规css方法——使Firefox以外主流浏览器文字溢出省略号表示 .zxx_text_overflow{ width:27em; white-space:nowrap; text-overflow:ellipsis; -o-text-overflow:ellipsis; overflow:hi 阅读全文
posted @ 2018-02-10 20:34 anne_zhou 阅读(149) 评论(0) 推荐(0) 编辑