疑问

多了分享

<script>
        window.WECHAT_SHARE_CONFIG = {
            default: {
                title: "摩拜夏一平:用云端黑科技打造智能出行",
                desc: "Let's Mobike",
                imgUrl: "http://external-1255598498.file.myqcloud.com/public_h5/%E6%91%A9%E6%8B%9CH5%E6%9B%BF%E6%8D%A2/6%20%E5%88%86%E4%BA%AB%E7%BC%A9%E7%95%A5%E5%9B%BE/%E5%88%86%E4%BA%AB%E7%BC%A9%E7%95%A5%E5%9B%BE.jpg",
            }
        };
    </script>
    <script src="//imgcache.qq.com/qcloud/main/scripts/release/common/deps/wechatJsSdk.js?version=1_0_1&max_age=31536000"></script>

  

这两处我加了分号的,部署的代码上没有

这段代码是哪里来的?

<script>
        ! function (e) {
            function t(a) {
                if (r[a]) return r[a].exports;
                var n = r[a] = {
                    exports: {},
                    id: a,
                    loaded: !1
                };
                return e[a].call(n.exports, n, n.exports, t), n.loaded = !0, n.exports
            }
            var r = {};
            return t.m = e, t.c = r, t.p = "//imgcache.qq.com/qcloud/main/scripts/", t(0)
        }([function (e, t, r) {
            r(1)
        }, function (e, t, r) {
            (function (e) {
                function t(e) {
                    return e = String(e).replace(/([.*+?^=!:${}()|[\]\/\\])/g, "\\$1"), location.search.slice(
                        1).match(RegExp("(?:^|&)" + e + "(?:=([^&#]*)?|[&#]|$)")) ? String(RegExp.$1 ||
                        "").replace(/\+/g, " ") : void 0
                }
                var r = e.localStorage,
                    a = "qcmain/js//".replace(/\/+$/, "/"),
                    n = /^(.+)\.(\w{12,})\.js$/,
                    i = 720,
                    c = {
                        get: function (e) {
                            var t = r.getItem(a + e);
                            try {
                                return JSON.parse(t || "false")
                            } catch (e) {
                                return !1
                            }
                        },
                        has: function (e) {
                            var t = String(e).match(n);
                            return !!t && this.get(t[1]).hash === t[2]
                        },
                        set: function (e, t, c) {
                            var o = String(e).match(n);
                            if (o) {
                                var s = +new Date,
                                    u = a + o[1];
                                c || (c = {});
                                var l = {
                                    hash: o[2],
                                    stamp: s,
                                    expire: s + 60 * (c.expire || i) * 60 * 1e3,
                                    data: t
                                };
                                r.setItem(u, JSON.stringify(l))
                            }
                            return this
                        },
                        remove: function (e) {
                            return r.removeItem(a + e), this
                        },
                        clear: function (e) {
                            var t = +new Date;
                            for (var n in r) {
                                var i = n.split(a)[1];
                                i && (!e || this.get(i).expire <= t) && this.remove(i)
                            }
                            return this
                        }
                    };
                if ("localStorage" in e && "JSON" in e && void 0 === t("!debug")) try {
                    var o = "whatever";
                    localStorage.setItem(o, o), localStorage.removeItem(o), e.QCMAIN_STORE = c.clear(!0)
                } catch (e) {}
            }).call(t, function () {
                return this
            }())
        }]);
    </script>
    <script>
        ! function (t) {
            function e(a) {
                if (r[a]) return r[a].exports;
                var n = r[a] = {
                    exports: {},
                    id: a,
                    loaded: !1
                };
                return t[a].call(n.exports, n, n.exports, e), n.loaded = !0, n.exports
            }
            var r = {};
            return e.m = t, e.c = r, e.p = "//imgcache.qq.com/qcloud/act/scripts/", e(0)
        }([function (t, e, r) {
            (function (t) {
                function e(t) {
                    return t = String(t).replace(/([.*+?^=!:${}()|[\]\/\\])/g, "\\$1"), location.search.slice(
                        1).match(RegExp("(?:^|&)" + t + "(?:=([^&#]*)?|[&#]|$)")) ? String(RegExp.$1 ||
                        "").replace(/\+/g, " ") : void 0
                }
                var r = t.localStorage,
                    a = "qcact/js//".replace(/\/+$/, "/"),
                    n = /^(.+)\.(\w{12,})\.js$/,
                    c = 720,
                    i = {
                        get: function (t) {
                            var e = r.getItem(a + t);
                            try {
                                return JSON.parse(e || "false")
                            } catch (t) {
                                return !1
                            }
                        },
                        has: function (t) {
                            var e = String(t).match(n);
                            return !!e && this.get(e[1]).hash === e[2]
                        },
                        set: function (t, e, i) {
                            var o = String(t).match(n);
                            if (o) {
                                var s = +new Date,
                                    l = a + o[1];
                                i || (i = {});
                                var u = {
                                    hash: o[2],
                                    stamp: s,
                                    expire: s + 60 * (i.expire || c) * 60 * 1e3,
                                    data: e
                                };
                                r.setItem(l, JSON.stringify(u))
                            }
                            return this
                        },
                        remove: function (t) {
                            return r.removeItem(a + t), this
                        },
                        clear: function (t) {
                            var e = +new Date;
                            for (var n in r) {
                                var c = n.split(a)[1];
                                c && (!t || this.get(c).expire <= e) && this.remove(c)
                            }
                            return this
                        }
                    };
                if ("localStorage" in t && "JSON" in t && void 0 === e("!debug")) try {
                    var o = "whatever";
                    localStorage.setItem(o, o), localStorage.removeItem(o), t.QCACTORE = i.clear(!0)
                } catch (t) {}
            }).call(e, function () {
                return this
            }())
        }]);
    </script>
    <script>
        if ("object" == typeof QCACTORE && QCACTORE && QCACTORE.has("common/base.bd320d01319657295291.js")) try {
            eval(QCACTORE.get("common/base").data)
        } catch (e) {} else document.write(
            '<script src="//imgcache.qq.com/qcloud/act/scripts/release/common/base.bd320d01319657295291.js?max_age=31536000"><\/script>'
        );
    </script>
    <script>
        if ("object" == typeof QCMAIN_STORE && QCMAIN_STORE && QCMAIN_STORE.has("common/deps.10480aed9c03687db1ee.js"))
            try {
                eval(QCMAIN_STORE.get("common/deps").data)
            } catch (e) {} else document.write(
                '<script src="//imgcache.qq.com/qcloud/main/scripts/release/common/deps.10480aed9c03687db1ee.js?max_age=31536000"><\/script>'
            );
    </script>

  

posted on 2017-12-20 16:46  yanyiyi  阅读(247)  评论(0编辑  收藏  举报