[C#] 纯文本查看 复制代码
<script>
if(@Model.requesttype==1){
// PC跳转移动端
var url= window.location.href.substring(window.location.href.indexOf(document.domain+"/",0)+(document.domain+"/").length,window.location.href.length);
window.location.href = "http://"+document.domain+"/m"+url;
}else if(@Model.requesttype==2)
{
var url= window.location.href.substring(window.location.href.indexOf(document.domain+"/",0)+(document.domain+"/").length,window.location.href.length);
window.location.href = "http://"+document.domain+"/w"+url;
}
</script>