Giter Site home page Giter Site logo

whatthefuck's Introduction

```html
<!—$$ 20140718 00:00:00-20140721 12:00:00 蓝晓斌 $-->
<ins class="sinaads" data-ad-pdps="PDPS"></ins>
<script>
    (function (d, s, id) {
        var s, n = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        s = d.createElement(s);
        s.id = id;
        s.setAttribute('charset', 'utf-8');
        s.src = '//d' + Math.floor(0 + Math.random() * (9 - 0 + 1)) + '.sina.com.cn/litong/zhitou/sinaads/release/sinaads.js';
        n.parentNode.insertBefore(s, n);
    })(document, 'script', 'sinaads-script');
    (sinaads = window.sinaads || []).push({});
</script>
```

whatthefuck's People

Contributors

acelan86 avatar jtyjty99999 avatar zd1010150 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

whatthefuck's Issues

IE6 resize bug 可能的问题

某些版本下IE6无故出发resize。resize会重新渲染广告。可能的问题是:刚展示大广告,触发resize,大广告展示结束。出现这个问题不需排查。

在判断存储方案时,通过嗅探把storage对象建立好,是不是比预先建立三个方案然后去赋值性能要高啊。。

就这个意思

if (window.localStorage) {
        storeType = {
//本地存储方案
            getItem : function (key) {
            },
            setItem : function (key, value, expires) {
            },
            removeItem : function (key) {
            }
        }

    } else if (Browser.browser.ie && Browser.browser.ie < 8) {
//userData方案
        storeType = {
            node : null, 
            name : location.hostname,

            init : function () {

                }
                return node; //返回这个存储节点
            },

            setItem : function (key, value, expires) {

            },

            getItem : function (key) {

            },

            removeItem : function (key) {


            }
        }

    } else {
        storeType = {
 //cookie方案
            getItem : function (key) {

            },
            setItem : function (key, value, expires) {

            },
            removeItem : function (key) {
            }

        }

    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.