摘要: 设置datatable的bAutoWidth属性为false,可关闭自动宽度 "bAutoWidth":false 翻译 搜索 复制 阅读全文
posted @ 2024-04-12 17:49 哆啦啊梦 阅读(3) 评论(0) 推荐(0) 编辑
摘要: $('#p').panel({ height: 50, href: 'http://www.163.com', //添加href属性,可以显示loading...标识 }); 翻译 搜索 复制 阅读全文
posted @ 2024-04-09 15:59 哆啦啊梦 阅读(2) 评论(0) 推荐(0) 编辑
摘要: $.messager.show({ title: '我的消息', msg: '消息将在5秒后关闭。', timeout: 1000, showType: 'slide', style: {} //添加style属性,并不赋值,弹出窗显示在屏幕中央,不添加style属性,弹出窗默认显示在右下角 }); 阅读全文
posted @ 2024-04-09 15:33 哆啦啊梦 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 环境:使用Smarty-3.1.14 报错:The each() function is deprecated. This message will be suppressed on further calls 问题:因为php7.2之后,each()方法被废除,倒退php版本即可 翻译 搜索 复制 阅读全文
posted @ 2024-03-30 20:06 哆啦啊梦 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 同一连接多个数据库切换,db_select($database_name) $this->db->db_select('aaa'); $res = $this->db->get('z_attr')->result_array(); insert_batch() insert_batch($table 阅读全文
posted @ 2024-03-28 17:30 哆啦啊梦 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 测试一天,一直报错,居然是微信开发工具导致的 引用: https://developers.weixin.qq.com/community/develop/doc/00084cba1905e0b0c0399ca5c56000?_at=1575601407106&jumpto=reply&commen 阅读全文
posted @ 2024-03-15 10:33 哆啦啊梦 阅读(9) 评论(0) 推荐(0) 编辑
摘要: /* | | Cache Directory Path | | | Leave this BLANK unless you would like to set something other than the default | application/cache/ directory. Use a 阅读全文
posted @ 2024-03-01 15:46 哆啦啊梦 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、插入数据库,获取自动编号,作为redis键名: function tianjia() { $model = model(MqModel::class); $data = ['rs' => 1]; $model->insert($data); //插入 $id = $model->getInser 阅读全文
posted @ 2024-02-01 12:47 哆啦啊梦 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 网站刚打开就报错:http://localhost:8080/?debugbar net::ERR_CONNECTION_REFUSED 检查到是由于base_url没设置的问题,修改APP\Config\App.php里的$baseURL为自己的域名即可 public string $baseUR 阅读全文
posted @ 2024-02-01 12:14 哆啦啊梦 阅读(2) 评论(0) 推荐(0) 编辑
摘要: public function index() //该方法只用于php5 { $els = new PHPExcel(); $filename = FCPATH . 'xls/aaa.xls'; $obj = new \PHPExcel_Reader_Excel5(); $nn = $obj->lo 阅读全文
posted @ 2024-01-12 20:32 哆啦啊梦 阅读(24) 评论(0) 推荐(0) 编辑