上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: 1 history.replaceState({},'','/home/index/zhuye/info/'+uid); 阅读全文
posted @ 2024-01-04 11:00 哆啦阿梦 阅读(1) 评论(0) 推荐(0) 编辑
摘要: public function charu() { $rs = $this->ci->input->get('val'); $rds = new Redis(); $rds->connect('127.0.0.1', 6380); $rds->lpush('lst', $rs); } functio 阅读全文
posted @ 2023-12-24 18:17 哆啦阿梦 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 类加载 不再有 CodeIgniter “超级对象”,其中框架组件引用以属性的形式神奇地注入到你的控制器中。 类根据需要进行实例化,框架组件通过 服务 进行管理。 自动加载程序 自动使用 PSR-4 风格定位类,在 App (app 文件夹)和 CodeIgniter (即 system 文件夹) 阅读全文
posted @ 2023-12-24 11:37 哆啦阿梦 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-12-22 08:51 哆啦阿梦 阅读(37) 评论(0) 推荐(0) 编辑
摘要: $.get( "url", { data: value }, function (data, status, jqxhr) { alert('保存成功'); }).fail(function () { //当$.get执行过程失败后,调用的方法,相当于ajax的error方法 alert('保存失败 阅读全文
posted @ 2023-12-08 08:45 哆啦阿梦 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 1、启用钩子(/application/config) $config['enable_hooks'] = TRUE; 2、创建钩子函数 方法一: $hook['post_controller'] = function() { echo 'this is the first hook'; }; 方法 阅读全文
posted @ 2023-12-07 21:53 哆啦阿梦 阅读(12) 评论(0) 推荐(0) 编辑
摘要: Codeigniter 3.0+Smarty-3.1.14 1、下载Smarty类库,并放到CI/Controller/libraries; 修改Smarty.class.php文件名为Smarty.php 2、配置autoload.php,自动加载smarty类 <?php $autoload[' 阅读全文
posted @ 2023-12-07 11:45 哆啦阿梦 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 环境PHP+小皮面板(apache): 1、在httpd.conf,取消注释:LoadModule headers_module modules/mod_headers.so 2、修改需要被访问网站的vhosts.conf: <Directory "*"> Options FollowSymLink 阅读全文
posted @ 2023-12-06 15:18 哆啦阿梦 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 引入: https://www.php.cn/faq/414010.html 阅读全文
posted @ 2023-11-29 11:18 哆啦阿梦 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 当点击按钮的时候,判断元素是否disabled,根据判断结果执行后面的代码 $('.export_stu').click(function (e) { if($(this).attr('disabled')!='disabled'){ $(this).attr('disabled',true); } 阅读全文
posted @ 2023-11-16 15:07 哆啦阿梦 阅读(99) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页