摘要: git命令: ########################################################### git clone -b 分支名 仓库地址 git fetch origin 获取远端分支 git fetch -p 清理远程已删除本地还存在的分支 ######## 阅读全文
posted @ 2019-03-20 17:18 永颜 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Git操作的过程中突然显示 Another git process seems to be running in this repository, e.g.an editor opened by 'git commit'. Please make sure all processesare term 阅读全文
posted @ 2019-03-20 17:15 永颜 阅读(2031) 评论(0) 推荐(0) 编辑
摘要: Vue: ref 传值 父组件<test1 ref="AAA"></test1>子组件<img ref="BBB" /> methods:{ afun(){ ... } } if (this.$refs.AAA) { this.$refs.AAA.$refs.BBB.src = "xxx"; thi 阅读全文
posted @ 2019-02-21 15:41 永颜 阅读(364) 评论(0) 推荐(0) 编辑
摘要: perspective的中文意思是:透视,视角! perspective属性的是否存在 决定了你所看到的是2次元的还是3次元的。 perspective 属性定义 3D 元素距视图的距离,以像素计。该属性允许您改变 3D 元素查看 3D 元素的视图。 当为元素定义 perspective 属性时,其 阅读全文
posted @ 2017-08-08 14:34 永颜 阅读(1818) 评论(0) 推荐(0) 编辑
摘要: node爬虫很有意思,看大神都是各种爬小说,爬图片,爬视频等等。自己也是刚了解,希望可以共同学习~ 代码如下: 安装Node.js http://nodejs.org/download/ 安装依赖包 npm install xxxxxx 运行程序 node app.js 阅读全文
posted @ 2017-06-28 17:35 永颜 阅读(546) 评论(0) 推荐(0) 编辑
摘要: window.location.pathname //设置或获取对象指定的文件名或路径window.location.href //设置或获取整个 URL 为字符串 window.location.origin // 获取当前页面的域名window.location.port //设置或获取与 UR 阅读全文
posted @ 2017-06-07 18:42 永颜 阅读(22993) 评论(0) 推荐(0) 编辑
摘要: store.js 是一个实现了浏览器的本地存储的 JavaScript 封装 API,不是通过 Cookie 和 Flash 技术实现,而是使用 localStorage、globalStorage 和 userData 行为。 示例代码: GitHub地址:https://github.com/m 阅读全文
posted @ 2017-03-23 15:25 永颜 阅读(2199) 评论(0) 推荐(0) 编辑
摘要: (function () { function o() { document.documentElement.style.fontSize = (document.documentElement.clientWidth ) / 31.25 + "px" } var e = nu... 阅读全文
posted @ 2017-03-23 15:18 永颜 阅读(436) 评论(0) 推荐(0) 编辑