摘要: 路由文件 web.php Route::any('/post/create', 'PostController@create'); 代码文件 PostController.php <?php namespace App\Http\Controllers; use Illuminate\Http\Re 阅读全文
posted @ 2019-09-11 22:50 止动 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 1 # User.objects.get(user_name=user_name); get查询结果转换为JSON 2 def model2json(data): 3 data.__dict__.pop("_state") 4 rData = data.__dict__ 5 return rData 6 7 # User.objects.filter(pw... 阅读全文
posted @ 2019-06-06 13:55 止动 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: DROP PROCEDURE IF EXISTS processorders; CREATE PROCEDURE processorders()BEGINDECLARE done BOOLEAN DEFAULT 0; DECLARE a INT; DECLARE b VARCHAR(20); -- 阅读全文
posted @ 2019-04-01 10:49 止动 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 后端PHP代码 <?phpclass MySQLPool { private $serv = ''; private $mysql = ''; private $teacher_openid = 'oKMfe1QTsNbzpqslEr-U1b7q8rMQ'; // 老师的微信位移标识 private 阅读全文
posted @ 2019-02-27 18:11 止动 阅读(2454) 评论(0) 推荐(0) 编辑
摘要: <?php // $config = ['host'=>'127.0.0.1', 'port'=>'6379'];// $redisObj = RedisHelper::getInstance();// var_dump($redisObj->getRedis());// $redis = $red 阅读全文
posted @ 2019-02-27 17:28 止动 阅读(754) 评论(0) 推荐(0) 编辑
摘要: su root cd ls pwd mkdir touch rm -rf less more cat cp a.txt b.txt 或者 cp -r a/ b/ mv a.txt b.txt chmod -R 0777 ./demo/ du * -sh tar -zcvf /home/xahot.t 阅读全文
posted @ 2019-02-25 18:07 止动 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 创建数据表 DROP TABLE IF EXISTS `ims_z_my_info`;CREATE TABLE `ims_z_my_info` ( `id` int(11) DEFAULT NULL, `name` varchar(20) DEFAULT NULL, `balance` int(11 阅读全文
posted @ 2019-02-25 17:28 止动 阅读(189) 评论(0) 推荐(0) 编辑
摘要: # bszedu.com 域名配置server{ listen 80; listen 443 ssl; server_name bszedu.com; index index.php index.html index.htm default.php default.htm default.html; 阅读全文
posted @ 2019-02-21 18:10 止动 阅读(389) 评论(0) 推荐(0) 编辑
摘要: 第一步: 打开 apache 配置文件 D:\wamp\bin\apache\apache2.4.9\conf\ httpd.conf 第二步: 引用虚拟主机配置文件 ​ 3. 在 D:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf 阅读全文
posted @ 2019-02-21 18:06 止动 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 构造函数的作用:用于新建对象的初始化工作。 析构函数的作用:用于在撤销对象前,完成一些清理工作,比如:释放内存等。 每当创建对象时,需要添加初始化代码时,则需要定义自己的构造函数; 而对象撤销时,需要自己添加清理工作的代码时,则需要定义自己的析构函数。 阅读全文
posted @ 2019-02-21 17:45 止动 阅读(1993) 评论(0) 推荐(0) 编辑