Loading [MathJax]/jax/element/mml/optable/BasicLatin.js

04 2018 档案

摘要:/(^[1-9]\d*(\.\d{1,2})?)|(0(\.\d1,2)?)/ var reg = /(^[1-9]\d*(\.\d{1,2})?)|(0(\.\d1,2)?)/; if (!price){ alert("请输入订单价格"); return; } if (!reg 阅读全文
posted @ 2018-04-25 21:14 盘思动 阅读(138) 评论(0) 推荐(0) 编辑
摘要:<?php a=array("a"=>"Cat","b"=>"Dog","c"=>"Horse"); print_r(array_values(a)); // 输出: // Array ( [0] => Cat [1] => Dog [2] => Horse ) ?> 阅读全文
posted @ 2018-04-24 21:23 盘思动 阅读(587) 评论(0) 推荐(0) 编辑
摘要:function timestampToTime(timestamp) { var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000 Y = date.getFullYear() + '-'; M = (date.g 阅读全文
posted @ 2018-04-20 22:13 盘思动 阅读(8005) 评论(0) 推荐(0) 编辑
摘要:new Date((1524142795*1000)).toJSON().slice(11,16) 阅读全文
posted @ 2018-04-19 22:18 盘思动 阅读(143) 评论(0) 推荐(0) 编辑
摘要:gg:命令将光标移动到文档开头G:命令将光标移动到文档末尾 阅读全文
posted @ 2018-04-19 20:25 盘思动 阅读(9525) 评论(0) 推荐(0) 编辑
摘要:0 15 * * * cd /home/wwwroot/default/5hao/mouse/Public && /usr/bin/php cron.php Ticket/send_user_ticket 下午3点执行; 直接在命令行中输入:cd /home/wwwroot/default/5hao 阅读全文
posted @ 2018-04-17 16:36 盘思动 阅读(201) 评论(0) 推荐(0) 编辑
摘要:三.配置客户端长期存储用户各和密码 长期存储密码: git config --global credential.helper store git config --global credential.helper store 缓存用户信息 3600s zb@zb-computer:/home/ww 阅读全文
posted @ 2018-04-11 20:11 盘思动 阅读(928) 评论(2) 推荐(0) 编辑
摘要:LNMP状态管理命令: LNMP状态管理: /root/lnmp {start|stop|reload|restart|kill|status}Nginx状态管理:/etc/init.d/nginx {start|stop|reload|restart}MySQL状态管理:/etc/init.d/m 阅读全文
posted @ 2018-04-08 22:03 盘思动 阅读(4036) 评论(0) 推荐(0) 编辑
摘要:「yueming: https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421137522」 阅读全文
posted @ 2018-04-04 15:36 盘思动 阅读(193) 评论(0) 推荐(0) 编辑
摘要:* * * * * cd /home/wwwroot/default/lion/ && /usr/bin/git pull origin 5hao >> /tmp/git.log 2>&1 这里直接用git pull 不行,可能git需要配置才可以,涉及到哪个分支的问题.... 阅读全文
posted @ 2018-04-04 15:14 盘思动 阅读(560) 评论(0) 推荐(0) 编辑
摘要:使用git reset回退公共远程分支的版本后,需要其他所有人手动用远程master分支覆盖本地master分支,显然,这不是优雅的回退方法,下面我们使用另个一个命令来回退版本: git revert 命令意思是撤销某次提交。它会产生一个新的提交,虽然代码回退了,但是版本依然是向前的,所以,当你用r 阅读全文
posted @ 2018-04-04 11:18 盘思动 阅读(7731) 评论(0) 推荐(1) 编辑
摘要:var A = {a:1,b:2,c:3,d:"hello world"}; for(var k in A) { console.log(k,A[k]); var h = new EJS({element:'ejs_render_id'}).render(render); } return; 阅读全文
posted @ 2018-04-03 14:22 盘思动 阅读(1816) 评论(0) 推荐(0) 编辑
摘要:crontab修改默认编辑器 crontab默认编辑器为nano. 修改crontab默认编辑器为vi或者其他的编辑器。 法一: export EDITOR="/usr/bin/vim" ; crontab -e 法二: 执行命令:select-editor 然后选择编辑器. 阅读全文
posted @ 2018-04-02 11:36 盘思动 阅读(2057) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示