zenxds
1/20/2015 - 7:33 AM

打点.js

    function log(url, callback) {
        // 防止请求被垃圾回收
        var image = new Image(),
            id = "_tbtx_" + Math.random();

        window[id] = image;
        image.onload = image.onerror = function() {
            window[id] = null;
            if (callback) {
                callback();
            }
        };
        image.src = url;
    }