Home > Q&A > body text
Javascript客户端跳转有两种方式:
<meta http-equiv="refresh" content="0; url=http://XXX.com" /> location.href="http://XXX.com";
有什么不同?各有什么优劣?
迷茫2017-04-10 14:23:57
ringa_lee2017-04-10 14:23:57
差别很小吧,我想到了一个,在禁止js的浏览器上前一个还能运行,哈哈(不过显然意义不大)..