Yeer Fan logo

Yeer Fan

Code, Design, and Things in Between


Just Help Yourself

  • Blog
  • Weibo
  • Github
  • Twitter
  • RSS
  • Email
  1. wireshark filter手记

    ref1ref2display filterexplanation A capture filter is used to select which packets should be saved to disk while capturing. For capture filters wireshark uses the BPF syntax. BPF is module that runs in the kernel and can therefor maintain high ra...…

    2015-09-03 • 继续阅读

  2. 移动端适配

    目前为止出现的一些关于移动端适配的技术方案: 通过媒体查询的方式即CSS3的meida queries 以天猫首页为代表的 flex 弹性布局 以淘宝首页为代表的 rem + viewport缩放 rem 方式1. Meida Queriesmeida queries 的方式可以说是我早期采用的布局方式,它主要是通过查询设备的宽度来执行不同的 css 代码,最终达到界面的配置。核心语法是:@media screen and (max-width: 600px) { /*当屏幕尺寸小...…

    2015-08-12 • 继续阅读

  3. some git

    Here is an illustration, by Jon Loeliger. Both commit nodes B and C are parents of commit node A. Parent commits are ordered left-to-right.G H I J \ / \ / D E F \ | / \ \ | / | \|/ | B C \ / ...…

    2015-07-22 • git继续阅读

  4. Js Array Unique

    数组去重的算法有很多,主要分类三类:  直接去重:时间复杂度 O(n²)  这个方法没啥好介绍的,就是遍历到元素时候再遍历检测是否是重复,由于有两层嵌套的遍历,所以它的性能不高,不过它对数据本身的影响是最小的。  排序去重:时间复杂度 O(nlogn)  先对数组做一次排序,然后遍历数组时相同元素都在邻近的位置,一次遍历就可以搞定。但是需要考虑一个问题,对象是可能无法比较大小的。这个算法那也许在C++之类的语言中可以很容易使用,但由于JavaScript无法直接取到对象的地址,所以排序就没...…

    2014-11-23 • 继续阅读

  5. inheritance in prototype

    ### 拷贝继承### 类式继承(用new的继承) function Aaa() { //父类 this.name='小明'; } Aaa..prototype.showName = function(first_argument) { alert(this.name); }; function Bbb() { //子类 Aaa.call(this); //继承父类构造函数里的属性 } Bbb.prototype = new Aaa(); //实现继承...…

    2014-11-02 • 继续阅读


← 最近 4 / 4
本站点采用知识共享 署名-非商业性使用-相同方式共享 4.0 国际 许可协议 由 Jekyll 于 2026-02-24 生成,感谢 Digital Ocean 为本站提供稳定的 VPS 服务