js页面跳转常用方法

js页面跳转常用方法

自己的:

function toUrl(ul){
if(“” == ul || null==ul){
         alert(“感谢关注”);
      }else{
                  
                  window.open(ul);//这是跳出新的窗口

                 // window.location.href=ul;//这是直接在当前页跳转
more »