yangzailu

导航

上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 72 下一页

2017年1月23日 #

怎么让div显示一行,其余的隐藏。

摘要: 阅读全文

posted @ 2017-01-23 11:30 飞离地平线 阅读(437) 评论(0) 推荐(0)

php字符集转换

摘要: PHP通过iconv将字符串从GBK转换为UTF8字符集。 1. iconv()介绍 iconv函数可以将一种已知的字符集文件转换成另一种已知的字符集文件。例如:从GB2312转换为UTF-8。 iconv函数在php5中内置,GB字符集默认打开。 2. iconv()错误 iconv在转换字符”— 阅读全文

posted @ 2017-01-23 11:25 飞离地平线 阅读(431) 评论(1) 推荐(1)

2017年1月21日 #

thinkphp更新数据库的时候where('')为字符串

摘要: thinkphp更新数据库的时候where('')为字符串,要么为数组。为字符串要点连接 阅读全文

posted @ 2017-01-21 16:49 飞离地平线 阅读(285) 评论(1) 推荐(0)

thinkphp分页

摘要: 1.在thinkphp控制器类使用命名空间 2.把Page.class.php放入到该目录 3. 4.前台接收{$page} 5.css样式 6.class类已经上传 阅读全文

posted @ 2017-01-21 14:55 飞离地平线 阅读(199) 评论(1) 推荐(0)

怎么让textarea的光标靠左对齐

摘要: 1.怎么让textarea的光标靠左对齐: 把<textarea></textarea>之间空隙去掉就可以了。 2.怎么限制textarea的字数,利用maxlength属性限制textarea的字数。 阅读全文

posted @ 2017-01-21 11:10 飞离地平线 阅读(1057) 评论(0) 推荐(0)

thinkphp传送文章id值

摘要: 阅读全文

posted @ 2017-01-21 10:31 飞离地平线 阅读(173) 评论(1) 推荐(0)

2017年1月20日 #

thinkphp session设置

摘要: <?php namespace Home\Controller; use think\Controller; /*登录*/ class LoginController extends PublicController { function __construct(){ parent::__const 阅读全文

posted @ 2017-01-20 16:42 飞离地平线 阅读(529) 评论(1) 推荐(0)

thinkphp 手机号和用户名同时登录

摘要: //在注册时用户名不能是纯数字, 防止一个人的用户名和另一个人的手机号相同public function Login(){ if (IS_AJAX) { $username = I('param.username'); //var_dump($username); $password = I('param.p... 阅读全文

posted @ 2017-01-20 13:15 飞离地平线 阅读(533) 评论(1) 推荐(0)

checkbox

摘要: <span style="vertical-align: middle;"> <input type="checkbox" id="agree" checked="checked"/> <label for="agree"> </label> </span> 阅读全文

posted @ 2017-01-20 13:15 飞离地平线 阅读(329) 评论(0) 推荐(0)

2017年1月19日 #

thinkphp注册并写入数据到数据库中

摘要: 后台接收数据并写入数据库: 阅读全文

posted @ 2017-01-19 19:57 飞离地平线 阅读(340) 评论(0) 推荐(0)

上一页 1 ··· 47 48 49 50 51 52 53 54 55 ··· 72 下一页