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…
该分类下共 12 篇文章
12 篇
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…
/usr/local/php5.6/bin/php /usr/local/bin/composer require mikehaertl/phpwkhtmltopdf
<?php // - 第一步:配置 // ---------------------------------------------- // MySQL define('DB_USER', 'root');&nb
var rate = 2; "★★★★★☆☆☆☆☆".slice(5 - rate, 10 - rate);很赞的思路
重复数据select * from dai_credit_apply ca where (ca.cid,ca.companyid) in (select cid,companyid from dai_credit_apply WHERE status=2 GR…
5.5版本以上”No input file specified“问题.htaccess文件中的RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]在默认情况下会导致No input file specified.修改成Rewri…
云服务器:CentOS 7步骤一,搭建 Nginx 静态服务器:使用yum安装nginxyum install nginx -y修改 /etc/nginx/conf.d/default.conf,去除对 IPv6 地址的监听修改完成后,启动 Nginx:ngi…
location / { if (!-e $request_filename) { rewrite ^/inde
DEMO示例http://blueimp.github.io/jQuery-File-Upload/index.html下载安装包,修改index.html内容及引用地址放到指定模板中。修改main.js中的提交地址 /server/php/ 修改为指定地址。…
需要对一个文件夹内下载的jpg文件重命名,顺序命名,并加字母前缀@echo off&setlocal enabledelayedexpansion for /f "delims=" %%a in ('dir/b *.jpg') do ( set …