/ m* |1 z. K5 p" p9 a3 N( ~7 a. X. V) C1 j0 f
就下面这段js,看到过好几次了,应该是修改UA相关的,问题是用这段JS的意义在哪呢?
/ z* ]! G3 D: F0 s, \; z; ?' V4 e各位牛能否解释一下?& \+ q; R/ m4 `2 M; W
2 A, }3 i% q4 F$ r( U
- <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>
复制代码 2 _$ V, E! ]" }% F! Y/ |" U
/ g. u& @1 R B6 w" R) } |