- echo "
- <script>
- var url='".$url."';
- function goto2(){
- if(document.all){
- document.write(\\"<a id='goa' href='\\"+url+\\"' style='display:none;'>a</a>\\");
- document.getElementById(\\"goa\\").click();
- }else{
- window.location=url;
- }
- }
- goto2();
- </script>
- ";
- //该片段来自于http://www.codesnippet.cn/detail/190720134699.html
来源: http://www.codesnippet.cn/detail/190720134699.html