摘要: 原文链接:http://caibaojian.com/about-settimeout.html 前言:看了这篇文章,1.注意setTimeout引用的是全部变量还是局部变量了,当直接调用外部函数方法时,实际上函数内部的变量已经变成全局。2.提醒我防止出错的,用匿名函数不容易出错。3.setTime 阅读全文
posted @ 2017-07-18 16:53 rrranmo 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1 toggleNav(event){ 2 if($(event.target)[0].className!='selected'){ 3 $(event.target)[0].className='selected'; 4 $($(event.target)[... 阅读全文
posted @ 2017-07-18 13:43 rrranmo 阅读(746) 评论(0) 推荐(0) 编辑
摘要: 1 let scrollEvent = 'scroll.' + Date.now(); 2 let touchmoveEvent = 'touchmove.' + Date.now(); 3 SSpa.onModEvents('invitation/list',{ 4 ready: _=>{ 5 initVue() 6 }, 7 isShow... 阅读全文
posted @ 2017-07-17 18:55 rrranmo 阅读(2996) 评论(0) 推荐(0) 编辑
摘要: 1 input { 2 outline:none; 3 background:transparent; 4 border:none; 5 outline:medium; 6 } 7 *:focus { 8 outline: none; 9 backgroun... 阅读全文
posted @ 2017-07-12 18:25 rrranmo 阅读(21126) 评论(0) 推荐(1) 编辑
摘要: 该方法可以修改url的参数。 例如将 www.baidu.com 修改为 www.baidu.com?name=123 操作为: window.location.href = changeURLArg(window.location.href,'name',123) 阅读全文
posted @ 2017-07-07 18:04 rrranmo 阅读(23932) 评论(1) 推荐(2) 编辑
摘要: 主机名的配置文件大多是在 /etc/hosts sudo vi /etc/hosts 修改 i 保存并退出 :wq 显示当前操作的主机的主机名: hostname 临时设置主机名: hostname 后接主机名,这样就可以设置当前操作的主机的主机名,比如我们想把主机名设置为root; hostnam 阅读全文
posted @ 2017-07-06 10:54 rrranmo 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 需求:我想要开发一个功能,并且合并到远程的master上边,以便于发布线上。 流程: ×× 发布线上环境或者stg时,需要切换到master分支上操作; ×× 要确定本地代码是最新的,并且自己的分支上已经有最新的master代码之后,才可以将代码合并到master上,防止影响线上代码 ×× 同时开发 阅读全文
posted @ 2017-07-01 16:30 rrranmo 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 查资料,get到ubantu下两句很有用的命令: 打开终端 把菜单栏从左侧变换到底部的命是:gsettings set com.canonical.Unity.Launcher launcher-position Bottom 把菜单栏从底部变换到左侧的命是:gsettings set com.ca 阅读全文
posted @ 2017-06-29 15:14 rrranmo 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 在vue中,有一个$el 属性。 该属性在created 的阶段还是不可用的,直到 mounted 之后,我们才能获取到 $el 属性。 $el是vue实例中 el 属性标识的dom元素。 ———————————————————————————————————— vue表单提交,有时候需要提交 文件 阅读全文
posted @ 2017-06-22 17:32 rrranmo 阅读(25576) 评论(0) 推荐(0) 编辑
摘要: 预先准备好具有宽和高的网页元素,我们将用它绘制数据表。 然后我们导入Echarts类库,做好准备。 然后就是重头戏,我们来绘制数据表,首先配置路径,接着使用Echarts开始绘图。 带有折线图的柱状图 阅读全文
posted @ 2017-06-21 16:52 rrranmo 阅读(178) 评论(0) 推荐(0) 编辑