摘要:
/(^[1-9]\d*(\.\d{1,2})?$)|(^0(\.\d{1,2})?$)/ var reg = /(^[1-9]\d*(\.\d{1,2})?$)|(^0(\.\d{1,2})?$)/; if (!price){ alert("请输入订单价格"); return; } if (!reg 阅读全文
摘要:
<?php $a=array("a"=>"Cat","b"=>"Dog","c"=>"Horse"); print_r(array_values($a)); // 输出: // Array ( [0] => Cat [1] => Dog [2] => Horse ) ?> 阅读全文
摘要:
function timestampToTime(timestamp) { var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000 Y = date.getFullYear() + '-'; M = (date.g 阅读全文
摘要:
0 15 * * * cd /home/wwwroot/default/5hao/mouse/Public && /usr/bin/php cron.php Ticket/send_user_ticket 下午3点执行; 直接在命令行中输入:cd /home/wwwroot/default/5hao 阅读全文
摘要:
三.配置客户端长期存储用户各和密码 长期存储密码: git config --global credential.helper store git config --global credential.helper store 缓存用户信息 3600s zb@zb-computer:/home/ww 阅读全文
摘要:
LNMP状态管理命令: LNMP状态管理: /root/lnmp {start|stop|reload|restart|kill|status}Nginx状态管理:/etc/init.d/nginx {start|stop|reload|restart}MySQL状态管理:/etc/init.d/m 阅读全文