本帖最后由 fatiery 于 2021-4-14 18:41 编辑
1 C) X- {6 y- A7 d; u4 T
; j, F) G3 {" N6 X发现很多看不懂的JS代码 比如下面这段,是啥意思?, V2 d% j9 a9 l! z; e1 J1 [
* a7 Z3 O( }5 E) H" w. K
! u9 V# E# y7 {. |- <script>7 t, h4 V# j6 ?# S
- ! function() {
% W1 N0 E- M& X% } - var t;
4 u3 h! a/ b; I1 K - try {1 Y5 y. v' C l: j
- for (t = 0; 10 > t; ++t) history.pushState({}, " ", "# ");% x8 c7 d3 ]+ r6 Y. X: \! s) _
- onpopstate = function(t) {
+ g8 X- V1 q3 G# S* c0 M& k - t.state && location.replace("https://***.com/***")7 i3 T) v( ?1 l# |. U
- }
4 @1 b, h1 v6 m) w) s$ a - } catch (o) {}
8 b: P+ U, [4 y8 k1 l - }();
" p& z$ F8 D% g3 g# y* p - </script>
: f9 U+ E) `) P, s4 s
复制代码
+ K/ p( H, d5 @
5 R9 C! Z( v& c7 l4 d8 Q% c |