随笔分类 -  WEB

WEB综合
摘要:<?php declare(strict_types=1); /** * 判断数组索引是否全为数字 * @param array $arr * @return bool */ function is_index_array(array $arr) { $keys = array_keys($arr) 阅读全文
posted @ 2025-03-28 09:21 tros 阅读(54) 评论(0) 推荐(0)
摘要://属性 interface Props { icon: string; } const props = withDefaults(defineProps<Props>(), { icon: '', }); //方法 const emit = defineEmits(['change']); fun 阅读全文
posted @ 2024-12-27 22:37 tros 阅读(26) 评论(0) 推荐(0)
摘要:默认取视频第1秒截图作为预览图 <?php namespace app\common\library; //视频获取第一帧做缩略图 class VideoThumb { public $timeStamp = '00:00:01'; public function createThumb($vide 阅读全文
posted @ 2024-12-18 22:06 tros 阅读(132) 评论(0) 推荐(0)
摘要:1.根目录下新建tools目录,并在该目录下新建SocketManager.js文件: let Manager = function(url) { //链接地址 this.url = url //socket实例 this.socket = null //是否链接 this.isConnect = 阅读全文
posted @ 2024-07-15 15:07 tros 阅读(2179) 评论(0) 推荐(0)
摘要:在thinkphp5.1中可以使用partition方法进行水平分表功能,但其分表功能较简单,不适用某些特殊场景。其在TP中的实现逻辑如下: 文件路径:thinkphp\library\think\db\Query.php (555行) /** * 得到分表的的数据表名 * @access publ 阅读全文
posted @ 2024-07-15 14:55 tros 阅读(300) 评论(0) 推荐(0)
摘要:密钥类型: 1024bit:分段加密字节数为117,分段解密字节数为128。2048bit:分段加密字节数为245,分段解密字节数为256。 class RsaBill { private $public_key_resource; private $private_key_resource; pu 阅读全文
posted @ 2024-04-12 20:39 tros 阅读(165) 评论(0) 推荐(0)
摘要:主要情况为apache配置文件httd.conf缺少相关配置。 在配置文件中找到IfModule dir_module标签,在其中添加SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0 <IfModule dir_module> DirectoryInde 阅读全文
posted @ 2023-09-16 10:19 tros 阅读(18) 评论(0) 推荐(0)
摘要:1.弹出渲染时需要注意的是layer弹出层的z-index层级默认高于ueditor图片上传等控件的层级,因此需要根据需求手动设置下layer弹出层级。目前我设置的layer弹出框层级为1。 2.另外还需要在弹出后延时渲染ueditor,在关闭弹出层时销毁ueditor对象。 3.前端动态配置图片上 阅读全文
posted @ 2021-12-11 11:23 tros 阅读(670) 评论(0) 推荐(0)