摘要: post接收的值,就是表单input里面的name值。 超级简单的接收表单数据方法: 二、验证,thinkphp里面提供验证器,手册位置:验证——验证器 首先建立验证器及其验证规则 注意:继承的的是\think\Validate类。 实例化对象后,通过check($data)方法验证数据信息是否符合 阅读全文
posted @ 2018-11-20 20:38 uncle_guo 阅读(5165) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-11-20 19:49 uncle_guo 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 1、sublime 另存为 ALT+F 再按A 2、空值 |default='' 3、两个时间戳 手册位置:模型——自动时间戳 4、from表单提交 提交地址,注意是get还是post,这个很重要!!!Route::post('admin/login/check','admin/login/chec 阅读全文
posted @ 2018-11-20 18:53 uncle_guo 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1、首先找到D:\xampp\apache\conf\extra httpd-vhosts.conf这个文件 <VirtualHost *:80> ServerAdmin webmaster@dummy-host2.example.com DocumentRoot "D:/xampp/htdocs/ 阅读全文
posted @ 2018-11-20 17:46 uncle_guo 阅读(7434) 评论(0) 推荐(0) 编辑
摘要: 一、路由 定义路由 Route::快捷方法名('路由表达式','路由地址'); 注:”路由表达式“指的是网址输入的内容 “路由地址”指的是文件位置 二、模板继承 “title”名字要唯一。例子: 阅读全文
posted @ 2018-11-20 17:39 uncle_guo 阅读(1723) 评论(0) 推荐(0) 编辑
摘要: 1、在XAMPP里面找到cmd命令行 2、找到要生成模块的位置,一定是文件名目录,输入: 其中test是新建目录文件名。 3、手册位置: 阅读全文
posted @ 2018-11-20 12:22 uncle_guo 阅读(1645) 评论(0) 推荐(0) 编辑
摘要: 关于cmd: 返回上一层: cd.. 切换到D盘: d: 进入目录: cd:C:\Python27\Scripts\HelloWord 安装好Django后第一个程序: 1、cmd进入安装django目录 2、输入:python manage.py runserver 0.0.0.0:8000 3、 阅读全文
posted @ 2017-11-06 10:00 uncle_guo 阅读(242) 评论(0) 推荐(0) 编辑
摘要: open 只能打开.txt文件 mac显示桌面快捷键 command+F3 https://jingyan.baidu.com/article/915fc414f232e651394b202c.html 笔记:新买了一本爬虫书,前面是python的基础知识,复习了下,发现还有好多不会呀,IO编程,进 阅读全文
posted @ 2017-10-30 20:53 uncle_guo 阅读(578) 评论(0) 推荐(0) 编辑
摘要: Mac OS里面的python默认为2.7版本,但是现在随着python3越来越普及,觉得还是需要转移到python3.毕竟是未来的趋势。 不过遇到的麻烦就是系统很多还是依赖2.7,又不能把2.7卸载掉,所以就需要多版本之间共存。 如果喜欢权威官方的介绍和指导,请移步:https://github. 阅读全文
posted @ 2017-10-26 23:59 uncle_guo 阅读(1189) 评论(0) 推荐(0) 编辑
摘要: 首先mac cd命令: 1、打开终端 2、输入cd 3、将想要到达的文件夹拖进终端,点击回车,就到了指定的文件夹了 手动安装jinja2 1.点击这里((https://pypi.python.org/pypi/Jinja2)),下载“Jinja2-2.9.6.tar.gz”安装包。 2.将下载先来 阅读全文
posted @ 2017-10-26 22:21 uncle_guo 阅读(1207) 评论(0) 推荐(0) 编辑