4 s/ q' M' B" o) C4 j4 x0 l6 K
- X, F% w, J& n4 \/ Y5 d2 f+ n1 {8 O就下面这段js,看到过好几次了,应该是修改UA相关的,问题是用这段JS的意义在哪呢?0 e% }/ g0 i% D5 Q% J
各位牛能否解释一下?: j* Q' k0 n4 H1 m/ U
. M! A5 o# C7 `( `; Q4 j- b- <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>
复制代码 . v! ^* {3 r9 T
9 G& \9 a$ a# _" V
|