摘要:
var p= 10 //保留两位小数点 console.log(Math.round(p * 10000) /100) //js 随机数Math //1、0-x之间的随机数: Math.round(Math.random()*x); //2、x至y之间的随机数 Math.round(Math.random()*(y-x)+x); //3、1-x之间的随... 阅读全文
posted @ 2017-08-16 16:51
no_xlove
阅读(85)
评论(0)
推荐(0)
摘要:
//新增端口3306 iptables -I INPUT -p tcp --dport 3306 -j ACCEPT 阅读全文
posted @ 2017-08-16 16:40
no_xlove
阅读(148)
评论(0)
推荐(0)
摘要:
/** * 日志调试 * param string $word */ function writeLog($word) { $file = '/alidata/www/platform/data.log'; $fp = fopen($file,"a"); flock($fp, LOCK_EX) ... 阅读全文
posted @ 2017-08-16 16:37
no_xlove
阅读(111)
评论(0)
推荐(0)