所有post提交页面报错 the page has expired due to inactivity.

今天所有页面突然全部报错 the page has expired due to inactivity. please refresh and try again查询服务器发现是磁盘满了,扩充磁盘后解决问题。
阅读全文

二维数组,多字段排序

  • larwas
  • 2022-06-08 10:13:20
  • php
  • PHP
```php/ 对二维数组依次按照排序规则数组指定的字段和顺序进行排序,在有相同的情况下按下一个字段和顺序进行排序 @param array $arr 待排序的数组 @param array $fieldSortMap:排序规则数组, 一维关联数组,每个元素的键为排序字段名称,值为排序方向:SORT_ASC升序或SORT_DESC降序 @return array /
阅读全文

js 获取form 表单所有input

  • larwas
  • 2022-04-22 19:49:42
  • php
  • PHP
```html<form action="javascript:;" onsubmit="return add_goods();" id="add_goods" method="post" enctype="multipart/formdata" <div class="formgroup" <label for="g_image"商品图片</label
阅读全文

content-length 设置后请求响应头没有?

  • larwas
  • 2022-04-03 17:08:32
  • php
  • PHP
header("ContentRange: 0".($filesize1)."/".$filesize);```PHP```
阅读全文

PYTHON使用tesseract-ocr注意事项

安装文件内容替换:`D:\Python\Python38\Lib\sitepackages\pytesseract\pytesseract.py`中 `tesseract_cmd = 'D:/Program Files/TesseractOCR/tesseract.exe'`
阅读全文

python安装dilb库提示:No CMAKE_C_COMPILER could be found.

No CMAKE_C_COMPILER could be found.
阅读全文

js排序

比值函数比较函数的目的是定义另一种排序顺序。比较函数应该返回一个负,零或正值,这取决于参数:```function(a, b){return ab}```数字排序默认地,sort() 函数按照`字符串顺序`对值进行排序。该函数很适合字符串("Apple" 会排在 "Banana" 之前)。不过,如果数字按照字符串来排序,则 "25" 大于 "100",因为 "2" 大于 "1"。正因如此,sort() 方法在对数值排序时会产生不正确的结果。
阅读全文

实现苹果微信可一键复制内容

  • Larwas
  • 2020-12-25 07:43:46
  • php
  • PHP
HTML```<div id="layuimlayer0" class="layuimlayer layuimlayer0" style="display: none;" index="0"<div class="layuimlayershade"</div<div class="layuimlayermain"<div class="layuimlayersection"<div class="layuimlayerchild layuimlayerlayuilayerrim layuiman
阅读全文

phpstrome 添加右键菜单"open folder as phpStrom Project"

右键添加 "open folder as phpStrom Project"`win+r` 输入`regedit` 打开注册表,进入 `\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\`点击 `shell` , 右键 新增 `项` ,命名为 `phpstrome`点击 `phpstrome` , 右边空白有个名称为`(默认)`的,修改值为 `open folder as phpStrom Project`再一次
阅读全文

监控动态加载的input框值的变化

  • Larwas
  • 2020-12-08 10:22:03
  • php
  • PHP
//动态监控第一个input,并修改出票手机 $("body").on("input propertychange","input",function(){ //如果输入非数字,则替换为'' console.log(2222222222) console.log(this.value) });
阅读全文