- 博客(9)
- 收藏
- 关注
原创 localstorage 设置过期时间
var exp ={} exp.set=function(id){ var data = localStorage.getItem('cacheOrder'); var curTime = new Date().getTime(); var newItem = {id:id,time:curTime} var list =[] var fla...
2018-04-26 18:26:22 6121
原创 vue中 radio 的诡异现象
两层v-for 时 radio 无法在第一个v-for中选定 <div v-for="(item,index) in tools.property.shit"> <label style="line-height: 36px;" v-if="item.inputType=='单项选择'" v-for="x in item.items" >
2018-04-19 20:03:03 1665
原创 代码被改动 已经pull 找回pull之前的代码
git reflog master --relative-datef16c6ac master@{35 minutes ago}: pull: Merge made by the 'recursive' strategy.3e50b71 master@{35 minutes ago}: commit: sku indexcd539c5 master@{3 hours ago}: pull:...
2018-04-19 19:47:09 1815
转载 util.promisify
Node.js 8 于上个月月底正式发布,带来了 很多新特性 。其中比较值得注意的,便有 util.promisify() 这个方法。util.promisify()虽然 Promise 已经普及,但是 Node.js 里仍然有大量的依赖回调的异步函数,如果我们每个函数都封装一次,也是齁麻烦齁麻烦的,比齁还麻烦。所以 Node8 就提供了 util.promisify() 这个方法,方...
2018-04-16 19:34:03 2214
原创 opengl DrawElements
我在golang里 写的 , 用go来写 opengl 还是很方便的 ,go的opengl库的 GitHub地址 (https://github.com/go-gl) 具体是这个github地址 windows 要装gcc的话, 装mingw-w64管理器就ok了 1. 存储索引数组到gl.BufferDatavar indexs []uint32var veo uint32...
2018-04-10 18:48:19 1109
转载 完全卸载删除gitlab
原文地址 完全卸载删除gitlab1、停止gitlabgitlab-ctl stop2、卸载gitlab(注意这里写的是gitlab-ce)rpm -e gitlab-ce3、查看gitlab进程ps aux | grep gitlab4、杀掉第一个进程(就是带有好多………….的进程)kill -9 18777杀掉后,在ps aux | grep gitlab...
2018-04-06 23:32:08 419
转载 nginx Failed to read PID from file /run/nginx.pid: Invalid argument
nginx 启动失败 原文这里写链接内容mkdir -p /etc/systemd/system/nginx.service.d printf "[Service]\nExecStartPost=/bin/sleep 0.1\n" > /etc/systemd/system/nginx.service.d/override.confsystemctl daemon-reloa...
2018-04-06 23:28:37 1754
转载 JS中多继承
下面的例子演示了如何使用Object.create()来实现类式继承。这是一个所有版本JavaScript都支持的单继承。// Shape - 父类(superclass) function Shape() { this.x = 0; this.y = 0; }// 父类的方法 Shape.prototype.move = function(x, y) { this...
2018-04-04 16:54:57 1205
转载 Linux系统环境变量配置文件
Ubuntu Linux系统环境变量配置文件: /etc/profile : 在登录时,操作系统定制用户环境时使用的第一个文件 ,此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行。 /etc /environment : 在登录时操作系统使用的第二个文件, 系统在读取你自己的profile前,设置环境文件的环境变量。 ~/.profile : 在登录时用到的第三个...
2018-04-03 18:59:32 1194
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人