Twitter在他们的标签中有这个:
<noscript>
<meta http-equiv=refresh content="0; URL=/?_twitter_noscript=1" />
</noscript>
身体有这个:
<noscript>
<div class="front-no-js-warn">
<h3>Twitter.com makes heavy use of JavaScript</h3>
<p>If you cannot enable it in your browser's preferences, you may have a better experience on our <a href="http://m.twitter.com">mobile site</a>.</p>
</div>
</noscript>
与 CSS :
.front-no-js-warn{position:absolute;top:50px;
left:50%;
height:30px;
width:798px;
padding:15px 20px;
margin:0 0 0 -418px;
z-index:2;color:#ddd;
line-height:1.5;
background-color:#111;
background-color:rgba(20,20,20,.9);
-webkit-border-radius:6px;
-moz-border-radius:6px;
border-radius:6px;
}
.front-no-js-warn h3{color:#FEC632;font-weight:bold;}
.front-no-js-warn a{color:#75C6F7;}
因此,当您禁用 javascript 时,您会看到div class="front-no-js-warn"
我的问题是重定向到的?_twitter_noscript=1
意义何在,我该如何实现?我尝试做类似的事情,它无休止地尝试重定向。