01 2016 档案
摘要:首先:得把php.ini中的post_max_size和upload_max_filesize改成200M或更大(进度条好看效果,默认是2M) html和js代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <tit
阅读全文
摘要:思路:先做出传统分页效果,然后重新复制一份Page.class.php类,对它进行修改,把js中的函数传到page类中,把上一页、下一页、首页、尾页、链接页中的url地址改成js控制的函数,模板页面中用jQuery写一个js函数,里面用ajax把请求发到控制器并返回请求回来的json数据,实现了aj...
阅读全文
摘要:其实,很简单,找到zend studio 安装目录,G:\zend studio\plugins,把文件com.zend.verifier_12.5.1.v20150514-2003.jar替换成压缩包里的jar文件,注意,jar文件名字还是用原先的。然后输入注册码即可
阅读全文
摘要:PHP代码:where($where)->count(); $pagecount=10; $page=new \Think\Page($count,$pagecount); $page->setConfig('first','首页'); $pa...
阅读全文
摘要:INSERT INTO `user`( `name`, `password`, `sex`, `age`, `email`, `mypage`, `salary`) SELECT `name`, `password`, `sex`, `age`, `email`, `mypage`, `salar...
阅读全文
摘要:浏览器的兼容:_ ie6认识 格式:_width:100px;要写在最后面来覆盖前面的。* ie6和ie7都认识 格式:* width:100px;要写在最后面来覆盖前面的。\0 ie8认识 格式:margin-top:12px\0; 要写在最后面来覆盖前面的。\9 ie9认识 格式:margin-...
阅读全文
摘要:代码: Document 测试 效果:
阅读全文
摘要:先去ueditou.baidu.com网站下载百度编辑器,放到项目根目录下的Data目录中,然后引入文件 Document 效果图:
阅读全文
摘要:方法:static public function getChildren($data,$pid){ $arr=array(); foreach ($data as $v) { if ($v['pid']==$pid) { ...
阅读全文
摘要:方法:static public function getParents($data,$id){ $arr=array(); foreach ($data as $v) { if ($v['id']==$id) { $a...
阅读全文
摘要:方法代码: static public function unlimitedForLayer($data,$pid=0){ $arr=array(); foreach ($data as $v) { if ($v['pid']==$pid) {...
阅读全文
摘要:在Home模块下建一个Clas文件夹,里面建一个Cate.class.php类文件,类文件代码:php代码如下:array( 'id'=>1, 'pid'=>0 ), ...
阅读全文
摘要:'tanteng' // 'password' => 'password' ); $ch = curl_init (); // print_r($ch); curl_setopt ( $ch, CURLOPT...
阅读全文
摘要:建一个表单: Document 用户名: 密码: 性...
阅读全文
摘要:Forbidden You don't have permission to access / on this server. 解决办法打开 httpd.conf 文件,将# onlineoffline tag- don't removeOrder Deny,AllowDeny from allA...
阅读全文