代码收藏

htaccess 伪静态 带参数写法 <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^ https://www.xxx.com%{REQUEST_URI} [L,R=301] </IfModule>

发布 0 条评论

以下代码放入伪静态 location / { if ( $request_method = ‘OPTIONS’ ) { add_header access-control-allow-headers range; add_header access-control-allow-methods GET,POST,HEAD,OPTIONS; add_header access-control-allow-or...

发布 0 条评论

批量提取文件夹内所有文件名字,并生成txt文件列表 DIR *.* /B >LIST.TXT 以上代码保存为 *.bat 格式,存放在要提取的文件夹和盘符里,运行即可。

发布 0 条评论

兼容Chrome的代码 以下代码经过本人测试可以放到网站任意位置 <style type="text/css"> html{ filter: grayscale(100%); -webkit-filter: grayscale(100%); -moz-filter: grayscale(100%); -ms-filter: graysc...

发布 0 条评论

@echo off color 2f mode con: cols=40 lines=15 title WiFi密码查询 echo 正在查询结果 setlocal enabledelayedexpansion for /f "tokens=2* delims=:" %%i in ('netsh wlan show profiles') do ( set str=...

发布 0 条评论

<script type="text/javascript"> (function(){var reWriteUrl=function(url){if(url){var Splits=url.split("/"),siteName=window.location.pathname;if(typeof siteName!=="undefined"){retur...

发布 0 条评论

1.将HTML代码转为JS,网上转换工具很多,自行搜索2.配合$(document).ready(function(){ …. }); 使用,作用就是在页面加载完成后才加载其间代码。 <script type="text/javascript"> $(document).ready(function(){...

发布 0 条评论

1.<div style="position:absolute; top: 0; width: 100%; height: 0%; background: #000; z-index: 999;"></div><!-- 上遮盖 --> 2.<div style="position:absolute; bottom: 0; width: 100%; ...

发布 0 条评论

0 0x00000000 作业完成。 1 0x00000001 不正确的函数。 2 0x00000002 系统找不到指定的档案。 3 0x00000003 系统找不到指定的路径。 4 0x00000004 系统无法开启档案。 5 0x00000005 拒绝存取。 6 0x00000006 无效...

发布 0 条评论

<script> function adCheck(){ var myDate = new Date(); var aaa=myDate.getHours(); if(parseInt(aaa)>=1 && parseInt(aaa)<=7 ){ //投放时间设置 return true; }else{ return false; } } ...

发布 0 条评论

<script type="text/javascript">var targetProtocol="https:";window.location.protocol!=targetProtocol&&(window.location.href=targetProtocol+window.location.href.substring(window.locati...

发布 0 条评论