append添加新元素以后,新元素无法执行事件解决办法:$(document).on("click",".xz_bq",function(){ //要执行的事件,我这里是点击.xz_bq执行});...
var a=[1,2,3,5]; alert(Math.max.apply(null, a));//最大值。 alert(Math.min.apply(null, a));//最小值。...
命令:df -lh文件系统 总大小 已使用 未使用 使用率 Mounted on/dev/xvda1 20G 13G &...
使用最新版IE浏览器渲染页面<meta http-equiv="X-UA-Compatible" content="IE=edge">页面1:1显示<meta name="viewport" content="width=device-width, initial-scale=1">禁止用户缩放...
$str = file_get_contents('111.txt');//将整个文件内容读入到一个字符串中 $str_encoding = mb_convert_encoding($str, 'UTF-8', 'UTF-8,GBK,GB2312,BIG5');//转换字符集(编码) $arr = explode(...
查看已经开放的端口firewall-cmd --list-ports添加防火墙允许端口firewall-cmd --permanent --zone=public --add-port=51866/tcp关闭防火墙端口firewall-cmd --permanent --zone=public --remov...
layer 层弹出后关闭自身var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引parent.layer.close(index); //再执行关闭...
从任何 p 元素中移除 id 属性:$("button").click(function(){ $("p").removeAttr("id"); });...
解决mkdir() premission denied 的问题最直接的方式,把runtime权限放开,让所有用户都可以创建它。chmod -R 777 runtime linux下重命名文件或文件夹的命令mv既可以重命名,又可以移动文件或文件夹.例子:将目录A重命名为Bmv A B例子:将/a目录移动到/b下,并重命...
当鼠标悬浮的时候禁止页面滚动$("#product_h").mouseenter(function(){ var top = $(document).scrollTop(); $(document).on('scroll.unable',function (e) { $(document).s...