+ ~# i5 [& y9 Q' J
* f7 L- p& i: T4 f' v+ Q" e就下面这段js,看到过好几次了,应该是修改UA相关的,问题是用这段JS的意义在哪呢?
$ k" e+ u p1 @2 l* V3 {' q$ O各位牛能否解释一下?% ~$ ?/ C: P# J4 W% G+ Z3 Y% ? e5 C
8 b; [3 V% O7 @
- <script type="text/javascript">Object.defineProperty(window.navigator, 'userAgent', { get: function(){ return 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/28.0.1469.0 Safari/537.36'; } });Object.defineProperty(window.navigator, 'vendor', { get: function(){ return ''; } });Object.defineProperty(window.navigator, 'platform', { get: function(){ return 'Windows'; } });</script>
复制代码 3 `, T; |% e: r5 o
- X/ x) N1 q+ h& ^/ C5 x; ]/ w3 a4 D |