一、显示动画 方式一: 解释:无参数,表示让指定的元素直接显示出来。其实这个方法的底层就是通过display: block;实现的。 方式二: 解释:通过控制元素的宽高、透明度、display属性,逐渐显示,2秒后显示完毕。 方式三: 参数可以是: slow 慢:600ms normal 正常:40 ...
分类:
Web程序 时间:
2018-10-15 12:15:46
阅读次数:
197
一、题目 1、审题 2、分析 给出一个链表,如果没有环则返回 null, 若存在环,返回环开始的节点。 二、解答 1、思路: 方法一、 ...
分类:
其他好文 时间:
2018-10-11 23:49:49
阅读次数:
165
https://leetcode.com/problems/linked-list-cycle-ii/discuss/44777/Concise-JAVA-solution-based-on-slow-fast-pointers fast slow, 刚开始全部初始化为0,当作起始点 ...
分类:
其他好文 时间:
2018-10-07 13:55:07
阅读次数:
145
jQuery fade淡入淡出效果 淡入淡出效果是基于透明度的变换而实现的。在测试demo的时候可以在控制台查看elements中的opacity的变换 在jQuery中可以通过四个方法来实现元素的淡入淡出,这四个方法分别是: fadeIn()、fadeOut()、fadeToggle() 以及 f ...
分类:
Web程序 时间:
2018-10-01 11:54:32
阅读次数:
183
2开启慢日志配置输出php-fpm慢日志,阀值为2秒:request_slowlog_timeout = 2slowlog = log/$pool.log.slow利用sort/uniq命令分析汇总php-fpm慢日志:[[email protected] log]# grep -v "^$" ww ...
分类:
Web程序 时间:
2018-10-01 11:09:19
阅读次数:
212
sql与索引优化数据库表结构优化系统配置硬件mysql>showvariableslike‘slow_query_log‘;+----------------+-------+|Variable_name|Value+----------------+-------+|slow_query_log|OFF+----------------+-------+1rowinset(0.00sec)
分类:
数据库 时间:
2018-09-30 19:56:33
阅读次数:
190
jQuery 隐藏/显示(hide()/show()): <!DOCTYPE html> <html> <head> <script src="/jquery/jquery-1.11.1.min.js"></script> <script type="text/javascript"> $(docu ...
分类:
Web程序 时间:
2018-09-28 20:32:33
阅读次数:
141
Given an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. ...
分类:
其他好文 时间:
2018-09-27 01:57:09
阅读次数:
135
时钟周期vs机器周期 Clock cycle The speed of a computer processor, or CPU, is determined by the clock cycle, which is the amount of time between two pulses of ...
分类:
其他好文 时间:
2018-09-24 22:18:03
阅读次数:
221
https://www.cwiki.us/display/CONF6ZH/Troubleshooting+Slow+Performance+Using+Page+Request+Profiling ...
分类:
其他好文 时间:
2018-09-20 11:24:34
阅读次数:
166