分类:未分类

该分类下共 12 篇文章

12 篇

JS 数组去重

ES6的set去重const arr = [1,1,2,2,3,3,4,4,5,5];     const setData = Array.from(new Set(arr)); console.log(setData);双重for循环去重(略)filte…

KillSelf_ForPHP

<?php     // - 第一步:配置     // ----------------------------------------------     // MySQL     define('DB_USER', 'root');&nb

常用查询

重复数据select * from dai_credit_apply ca where (ca.cid,ca.companyid) in (select cid,companyid from dai_credit_apply WHERE status=2 GR…

TP5 Apache rewrite

5.5版本以上”No input file specified“问题.htaccess文件中的RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]在默认情况下会导致No input file specified.修改成Rewri…

CentOS_LNMP搭建

云服务器:CentOS 7步骤一,搭建 Nginx 静态服务器:使用yum安装nginxyum install nginx -y修改 /etc/nginx/conf.d/default.conf,去除对 IPv6 地址的监听修改完成后,启动 Nginx:ngi…

TP nginx 去除index.php

location / {             if (!-e $request_filename) {                rewrite ^/inde

批处理批量重命名

需要对一个文件夹内下载的jpg文件重命名,顺序命名,并加字母前缀@echo off&setlocal enabledelayedexpansion  for /f "delims=" %%a in ('dir/b *.jpg') do (     set …