精易论坛

标题: js代码问题 [打印本页]

作者: lin6163    时间: 2021-1-4 23:39
标题: js代码问题
问一下里面循环体的过程是什么样的流程
或者能给出E代码 谢谢
  1. <span style="color: rgb(34, 34, 34); font-family: Consolas, &quot;Lucida Console&quot;, &quot;Courier New&quot;, monospace; font-size: 12px; white-space: nowrap; background-color: rgb(255, 227, 199);">e = </span><span class="object-value-array value" style="min-width: 0px; min-height: 0px; box-sizing: border-box; color: rgb(34, 34, 34); font-family: Consolas, &quot;Lucida Console&quot;, &quot;Courier New&quot;, monospace; font-size: 12px; white-space: nowrap; background-color: rgb(255, 227, 199);">Array(128) ------[1,2,3,4,5,6,7]</span>
复制代码




补充内容 (2021-1-4 23:43):
e = Array(128)
                    this.t = 0,
                    this.s = 0;
                    var i = e.length
                      , o = !1
                      , a = 0;
                   ...

补充内容 (2021-1-4 23:43):
代码补在二楼
作者: lin6163    时间: 2021-1-4 23:41
                    this.t = 0,
                    this.s = 0;
                    var i = e.length
                      , o = !1
                      , a = 0;
                    while (--i >= 0) {
                        var s = 8 == r ? 255 & +e : Y(e, i);
                        s < 0 ? "-" == e.charAt(i) && (o = !0) : (o = !1,
                        0 == a ? this[this.t++] = s : a + r > this.DB ? (this[this.t - 1] |= (s & (1 << this.DB - a) - 1) << a,
                        this[this.t++] = s >> this.DB - a) : this[this.t - 1] |= s << a,
                        a += r,
                        a >= this.DB && (a -= this.DB))
                    }


补充内容 (2021-1-4 23:43):
e = Array(128) 是一个数组
作者: Patek    时间: 2021-1-5 08:38
就是个位运算的过程。。
作者: 低调小鱼鱼    时间: 2021-1-5 09:24

作者: lin6163    时间: 2021-1-5 11:19
Patek 发表于 2021-1-5 08:38
就是个位运算的过程。。

怎么样的算过程,可否告知一二
作者: 末年啊    时间: 2022-1-8 00:32
        热心帮助他人,荣誉+1,希望继续努力(*^__^*) 嘻嘻!
作者: qaz123qw    时间: 2022-7-19 23:29
来学习一下




欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4