摘要: $(window).on("scroll", function() { if (timer) { clearTimeout(timer); timer = null; } timer = setTimeout(function() { var st = $(window).scrollTop(); 阅读全文
posted @ 2017-01-16 13:23 明月照亮天涯 阅读(884) 评论(0) 推荐(0) 编辑
摘要: PHP中file_exists与is_file、is_dir的区别,以及执行效率的比较 判断文件是否存在,有2个常用的PHP函数:is_file 和 file_exists, 判断文件夹是否存在,有2个常用PHP函数:is_dir 和 file_exists, 即 file_exists = is_ 阅读全文
posted @ 2017-01-16 10:55 明月照亮天涯 阅读(408) 评论(2) 推荐(0) 编辑