摘要: <php? // 跨域 // 在这里告诉浏览器, 你别管, 我愿意给他数据 // 告诉浏览器, 哪些域名可以请求我 // 表示允许的域名, * 表示通配 header("Access-Control-Allow-Origin: *"); // CORS // 告诉浏览器, 允许哪些请求方式 head 阅读全文
posted @ 2022-09-22 09:03 西瓜霜 阅读(276) 评论(0) 推荐(0) 编辑
摘要: date_default_timezone_set( 'America/Los_Angeles'); 阅读全文
posted @ 2022-09-08 18:19 西瓜霜 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1、接口生成查询参数 $exportCS = urlSafeB64Encode(msgpack_pack(['key' => 'value'])) 2、解析查询参数,获取查询数据结果 $condition = msgpack_unpack(urlSafeB64Decode($exportCS)) 3 阅读全文
posted @ 2022-08-15 15:28 西瓜霜 阅读(301) 评论(0) 推荐(0) 编辑
摘要: <style> /*等比缩放*/ .box{ position: relative; width: 100%; /* desired width */ background: #000; color: #fff; } .box:before{ content: ""; display: block; 阅读全文
posted @ 2022-07-27 18:33 西瓜霜 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 1.给单元格加上单位,比如算力单位MH/S,用下图方法的话,单元格内容还是数字,而不是字符,原先我用的是@"MH/S",这样的话单元格会变成文本格式 2.计算公式,比如计算公式为=E3/(H3-F3*O3*24-I3/30) 这样的话,填充下面的单元格,都会递增;但是某几个变量是固定的,比如美元汇率 阅读全文
posted @ 2022-05-26 16:41 西瓜霜 阅读(116) 评论(0) 推荐(0) 编辑
摘要: ngin是这样的 location / { try_files $uri $uri/ /index.html; index index.html index.htm; } apache是这样的 <Directory "/www/wwwroot/XXX.com"> RewriteEngine on R 阅读全文
posted @ 2022-05-18 17:52 西瓜霜 阅读(526) 评论(0) 推荐(1) 编辑
摘要: ^([1-9]\d*)$|^(\d+\.\d)$|^(\d+\.\d\d)$ $a = ".10";$zz = '/^([1-9]\d*)$|^(\d+\.\d)$|^(\d+\.\d\d)$/';var_dump(preg_match($zz,$a)); 阅读全文
posted @ 2022-05-12 20:35 西瓜霜 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 感谢 https://www.csdn.net/tags/MtzakgwsNTQ5OC1ibG9n.html https://blog.csdn.net/weixin_45673552/article/details/118764764 https://blog.csdn.net/ths512/ar 阅读全文
posted @ 2022-05-05 17:32 西瓜霜 阅读(549) 评论(0) 推荐(0) 编辑
摘要: 临时记录搜到的信息 https://blog.csdn.net/qq_29974553/article/details/117949994 https://blog.csdn.net/qq_41993206/article/details/120977780 https://www.cnblogs. 阅读全文
posted @ 2022-04-26 22:21 西瓜霜 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 这不是搭建php的websocket服务,而是php作为客户端连接websocket 摘抄自 http://www.edbiji.com/doccenter/showdoc/37/nav/3349.html <?php namespace Common\Library; // ini_set('di 阅读全文
posted @ 2022-04-22 10:55 西瓜霜 阅读(1871) 评论(0) 推荐(0) 编辑