2023年4月23日
摘要: 一、JS自定义按钮 + 按钮隐藏 1、FastAdmin JS自定义按钮 效果图: 自定义video视频按钮 { field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, butto 阅读全文
posted @ 2023-04-23 11:31 夏沫忆香 阅读(356) 评论(0) 推荐(0) 编辑
  2023年3月27日
摘要: 今天网站访问内容页突然报错: SQLSTATE[HY000]: General error: 126 Incorrect key file for table '.\数据库名\qb_cms_content1.MYI'; try to repair it 当mysql的临时文件大小设置太小,或者由于并 阅读全文
posted @ 2023-03-27 15:29 夏沫忆香 阅读(163) 评论(0) 推荐(0) 编辑
  2022年10月24日
摘要: /** * 生成某个范围内的随机时间 * @param <type> $begintime 起始时间 格式为 Y-m-d H:i:s * @param <type> $endtime 结束时间 格式为 Y-m-d H:i:s * @param <type> $now 是否是时间戳 格式为 Boole 阅读全文
posted @ 2022-10-24 19:53 夏沫忆香 阅读(77) 评论(0) 推荐(0) 编辑
  2022年6月8日
摘要: 格式: ALTER TABLE 表名 ADD 字段名称 字段类型(字段长短-选填) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL(是否不可为空) DEFAULT 0(默认值) COMMENT '备注'(备注)AFTER 在指定字段 阅读全文
posted @ 2022-06-08 09:24 夏沫忆香 阅读(625) 评论(0) 推荐(0) 编辑
  2022年5月26日
摘要: 如何控制某个字段不参与导出?比如我有几个图片字段我列表里面要展示出来,但是我又不想他参与导出,如何处理 在这对应的JS表格初始化处,增加以下内容试下 fixedColumns: true, exportTypes: ['json', 'xml', 'csv', 'txt', 'doc', 'exce 阅读全文
posted @ 2022-05-26 11:31 夏沫忆香 阅读(441) 评论(0) 推荐(0) 编辑
  2022年1月19日
摘要: php强制跳转的方法:1、通过header函数实现跳转;2、使用Meta标签实现跳转,其语句为“< meta http-equiv="refresh" content="1;url=...>”;3、利用JavaScript实现跳转。 PHP跳转页面的三种方式 PHP页面跳转一、header()函数 阅读全文
posted @ 2022-01-19 10:44 夏沫忆香 阅读(862) 评论(0) 推荐(0) 编辑
  2021年12月21日
摘要: { field: 'question', title: __('Question'), operate: false, formatter : function(value, row, index, field){ return "<span style='display: block;overfl 阅读全文
posted @ 2021-12-21 14:07 夏沫忆香 阅读(337) 评论(0) 推荐(0) 编辑
  2021年12月13日
摘要: 在页面中,想要把网页整体变成灰色,可以在html样式中添加以下代码,便可轻松搞定。 html{ filter: grayscale(100%); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: gr 阅读全文
posted @ 2021-12-13 09:23 夏沫忆香 阅读(326) 评论(0) 推荐(0) 编辑
  2021年8月10日
摘要: <?php /* * * 把一个数组分成几个数组 * $arr 数组 * $num 获取的数量 * */ function sliceArr($arr, $num) { //数组的个数 $listcount = count($arr); /*if($listcount < $num){ //数组总数 阅读全文
posted @ 2021-08-10 15:31 夏沫忆香 阅读(287) 评论(0) 推荐(0) 编辑
  2021年7月6日
摘要: 系统类库与函数库调用 配置文件调用 函数扩展 控制器扩展技巧 阅读全文
posted @ 2021-07-06 11:35 夏沫忆香 阅读(55) 评论(0) 推荐(0) 编辑