lwdwwyib 发表于 2020-10-9 18:51:13

js问题求助

,function(t, e, n) {
    "use strict";
    var r = n(277)
      , i = n(515)
      , o = n(218)
      , a = n(248)
      , s = n(419)
      , u = Object.prototype.toString
      , l = 0
      , c = 1
      , f = 10
      , d = 6;
    function h(t) {
      if (!(this instanceof h))
            return new h(t);
      this.options = i.assign({
            level: c,
            method: d,
            chunkSize: 16384,
            windowBits: 15,
            memLevel: 8,
            strategy: f,
            to: ""
      }, t || {});
      var e = this.options;
      e.raw && 0 < e.windowBits ? e.windowBits = -e.windowBits : e.gzip && 0 < e.windowBits && e.windowBits < 16 && (e.windowBits += 16),
      this.err = 0,
      this.msg = "",
      this.ended = !1,
      this.chunks = [],
      this.strm = new s,
      this.strm.avail_out = 0;
      var n = r.deflateInit2(this.strm, e.level, e.method, e.windowBits, e.memLevel, e.strategy);
      if (n !== l)
            throw new Error(a);
      if (e.header && r.deflateSetHeader(this.strm, e.header),
      e.dictionary) {
            var p;
            if (p = "string" == typeof e.dictionary ? o.string2buf(e.dictionary) : "" === u.call(e.dictionary) ? new Uint8Array(e.dictionary) : e.dictionary,
            (n = r.deflateSetDictionary(this.strm, p)) !== l)
                throw new Error(a);
            this._dict_set = !0
      }
    }
    function p(t, e) {
      var n = new h(e);
      if (n.push(t, !0),
      n.err)
            throw n.msg || a;
      return n.result
    }
    h.prototype.push = function(t, e) {
      var n, a, s = this.strm, c = this.options.chunkSize;
      if (this.ended)
            return !1;
      a = e === ~~e ? e : !0 === e ? 4 : 0,
      "string" == typeof t ? s.input = o.string2buf(t) : "" === u.call(t) ? s.input = new Uint8Array(t) : s.input = t,
      s.next_in = 0,
      s.avail_in = s.input.length;
      do {
            if (0 === s.avail_out && (s.output = new i.Buf8(c),
            s.next_out = 0,
            s.avail_out = c),
            1 !== (n = r.deflate(s, a)) && n !== l)
                return this.onEnd(n),
                !(this.ended = !0);
            0 !== s.avail_out && (0 !== s.avail_in || 4 !== a && 2 !== a) || ("string" === this.options.to ? this.onData(o.buf2binstring(i.shrinkBuf(s.output, s.next_out))) : this.onData(i.shrinkBuf(s.output, s.next_out)))
      } while ((0 < s.avail_in || 0 === s.avail_out) && 1 !== n);return 4 === a ? (n = r.deflateEnd(this.strm),
      this.onEnd(n),
      this.ended = !0,
      n === l) : 2 !== a || (this.onEnd(l),
      !(s.avail_out = 0))
    }
    ,
    h.prototype.onData = function(t) {
      this.chunks.push(t)
    }
    ,
    h.prototype.onEnd = function(t) {
      t === l && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = i.flattenChunks(this.chunks)),
      this.chunks = [],
      this.err = t,
      this.msg = this.strm.msg
    }
    ,
    e.Deflate = h,
    e.deflate = p,
    e.deflateRaw = function(t, e) {
      return (e = e || {}).raw = !0,
      p(t, e)
    }
    ,
    e.gzip = function(t, e) {
      return (e = e || {}).gzip = !0,
      p(t, e)
    }
},
这种 n(277)去哪里找 ,他还没有函数名字 他自己是如何调用的 函数前后有逗号 277在本js里搜不到定义处 ,给他加了匿名函数名 调试说n(277)缺少对象,请高手看下谢谢

揰掵佲 发表于 2020-10-9 23:58:45

搜索 277: 可以定位到

lwdwwyib 发表于 2020-10-10 11:09:50

揰掵佲 发表于 2020-10-9 23:58
搜索 277: 可以定位到

本页js搜不到这个277老大,去那里搜呢 全局?

揰掵佲 发表于 2020-10-10 14:37:25

lwdwwyib 发表于 2020-10-10 11:09
本页js搜不到这个277老大,去那里搜呢 全局?

搜不到的话,在这个地方下断,刷新页面之后会断下
页: [1]
查看完整版本: js问题求助