第2世界 勇往无前,砥砺前行。

归档

2023 年 12 月

docker启动mysql镜像: docker run -d -p 3306:3306 --name mysql mysql 直接退出,通过命令查看原因: docker logs mysql 内容如下: 2023-12-06 07:50:46+00:00 [Note] [Entrypoint]: E
docker离线下载地址: https://download.docker.com/linux/static/stable/ linux 二进制安装官方文档: https://docs.docker.com/engine/install/binaries/ 配置docker服务: sudo vi /

2023 年 08 月

fetch(route("download"), { method: "post", headers: { "X-XSRF-TOKEN": decodeURIComponent( document.cookie.replace( /(?:(?:^|.*;\

2023 年 07 月

在手动请求时加入 headers: { "X-XSRF-TOKEN": decodeURIComponent( document.cookie.replace( /(?:(?:^|.*;\s*)XSRF-TOKEN\s*\=\s*([^;]*).*$)|^.*$/,

2023 年 06 月

文档上传 $content = file_get_contents($request->file('file')); $base64content = base64_encode($content); $client = ClientBuilder::create() ->setHosts
修改elasticsearch.yml,结尾增加: http.cors.allow-origin: "*" http.cors.enabled: true http.cors.allow-credentials: true http.cors.allow-methods: OPTIONS, HEAD
查看被占用的端口 lsof -i tcp:port 终止程序,释放被占用端口 kill pid
在自定义了row的click事件后可以自己对行的样式进行处理,这会与默认的hover样式冲突,解决办法 CSS覆盖: tr.no-hover:hover:not(.selected),tr.no-hover>td.ant-table-cell-row-hover:not(.selected){
配置错误 PHP Fatal error: Unable to start PDO_DM module in Unknown on line 0 解决办法:配置环境变量path增加C:\dndbms\bin,官方的说明https://eco.dameng.com/document/dm/zh-cn/
在开发的时候我使用Inertiajs跳转时发现页面闪烁,经过测试最终发现是视图的加载方式不一致导致的。 视图1: <Layout> //... </Layout> 视图2: const View =()=>{} View.layout = (page) => ( <Lay