上一页 1 ··· 83 84 85 86 87 88 89 90 91 ··· 125 下一页
摘要: 然后vim /etc/profile,在最下面添加 export PATH=$PATH: 后面跟上node下bin目录的路径 立即生效 sudo apt-get install nodejs // 安装 OK!安装成功! 阅读全文
posted @ 2019-11-01 09:35 盘思动 阅读(605) 评论(0) 推荐(0) 编辑
摘要: <?php class Car { private function __construct() { echo 'object create'; } private static $_object = null; public static function getInstance() { if ( 阅读全文
posted @ 2019-10-31 22:33 盘思动 阅读(339) 评论(0) 推荐(0) 编辑
摘要: function test3($i){ echo $i . '<br/>'; if ($i >= 0){ $func = __FUNCTION__; // 外面函数名称变了,不用跟着变 $func($i - 1); } echo $i . '<br/>'; } test3(3); 3 2 1 0 -1 -1 0 1 2 3 阅读全文
posted @ 2019-10-31 21:12 盘思动 阅读(134) 评论(0) 推荐(0) 编辑
摘要: Array( [title] => 推荐 [code] => 1) array(3) { [1]=> string(6) "推荐" [3]=> array(2) { // 这里出现很诡异的结果 ["title"]=> string(7) "奇闻2" ["code"]=> int(2) } [4]=> 阅读全文
posted @ 2019-10-31 20:32 盘思动 阅读(185) 评论(0) 推荐(0) 编辑
摘要: /usr/local/mysql/bin/mysqld_safe /usr/local/nginx/sbin/nginx -s stop /usr/local/nginx/sbin/nginx 阅读全文
posted @ 2019-10-30 09:06 盘思动 阅读(281) 评论(0) 推荐(0) 编辑
摘要: $User = D('User'); $User->query('select * from think_user where status=1'); $User->execute('update think_user set status=1 where id=1'); 阅读全文
posted @ 2019-10-22 13:40 盘思动 阅读(1617) 评论(0) 推荐(0) 编辑
摘要: update user_info set user_name = concat(user_name,'呵呵呵') where user_name = '哈哈哈'; 阅读全文
posted @ 2019-10-21 15:57 盘思动 阅读(7156) 评论(0) 推荐(0) 编辑
摘要: 以decimal(18,0)为例:18是定点精度,0是小数位数。 decimal(a,b) a指定小数点左边和右边可以存储的十进制数字的最大个数,最大精度38。 b指定小数点右边可以存储的十进制数字的最大个数。小数位数必须是从 0 到 a之间的值。默认小数位数是 0。 阅读全文
posted @ 2019-10-15 15:19 盘思动 阅读(980) 评论(0) 推荐(0) 编辑
摘要: $_SERVER["SERVER_ADDR"] 当前运行脚本的服务器的ip地址 阅读全文
posted @ 2019-10-15 10:30 盘思动 阅读(2458) 评论(0) 推荐(0) 编辑
摘要: <pre>array(8) { [0] =&gt; int(3) [1] =&gt; int(3) [2] =&gt; int(3) [3] =&gt; int(3) [4] =&gt; int(2) [5] =&gt; int(2) [6] =&gt; int(2) [7] =&gt; int(2 阅读全文
posted @ 2019-10-10 17:42 盘思动 阅读(416) 评论(0) 推荐(0) 编辑
上一页 1 ··· 83 84 85 86 87 88 89 90 91 ··· 125 下一页