摘要:
var flag = 0; //标记是拖曳还是点击 $('.move').on({ mousedown:function(e) { flag = 0; }, mousemove:function(e) { flag = 1; }, mouseup:function(e) { if(flag == 0 阅读全文
摘要:
$zip = new ZipArchive(); //参数1:zip保存路径,参数2:ZIPARCHIVE::CREATE没有即是创建 if(!$zip->open("$exportPath.zip",ZIPARCHIVE::CREATE)) { echo "创建[$exportPath.zip]失 阅读全文
摘要:
1、父窗口设置input输入框 <input type='hidden' id='cz' name='cz' value='1'/> 2、子窗口设置父窗口输入框值 $("#cz" , window.parent.document).val('2'); // 传给父窗口 parent.layer.cl 阅读全文
摘要:
/* + * 功能:删除某个文件夹下所有的文件夹和文件 + * @param string $dir 要删除的文件夹的路径 + */ function del_dir($dir) { if (!is_dir($dir)) { return false; } $handle = opendir($di 阅读全文
摘要:
// 原目录,复制到的目录 function recurse_copy($src,$dst) { $dir = opendir($src); @mkdir($dst); while(false !== ( $file = readdir($dir)) ) { if (( $file != '.' ) 阅读全文
摘要:
.xhcy_img {width:159px;height:94px;position: relative;overflow: hidden;display: flex;justify-content: center;align-items: center;} .xhcy_img img {marg 阅读全文
摘要:
<audio id="bgmusic" src="/static/media/flipsound.mp3" preload></audio> // audio音频 var audio = document.getElementById("bgmusic"); if (typeof WeixinJSB 阅读全文
摘要:
.error {border:#ff0000 1px solid;background: rgba(195,5,5,.2);}<form action="#" method="post" onsubmit="return checkForm(this);"> </form> function che 阅读全文
摘要:
在/etc/hosts.allow输入(其中192.168.10.88是你要允许登陆ssh的ip,或者是一个网段192.168.10.0/24) sshd:192.168.10.88:allow 在/etc/hosts.deny输入(表示除了上面允许的,其他的ip 都拒绝登陆ssh) sshd:AL 阅读全文
摘要:
1、修改配置 vi /etc/ssh/sshd_config 2、在配置中找到 #ClientAliveInterval 0 #ClientAliveCountMax 3 3、修改为 ClientAliveInterval 30 ClientAliveCountMax 3 ClientAliveIn 阅读全文