SOURCE

console 命令行工具 X clear

                    
>
console
$(function(){
	$("div").click(function(){
		window.location.href="http://youku.com";
		window.open("http://baidu.com");
		alert("我是window.location.href后面的操作");
		console.log("我是window.location.href后面的操作");
		
		
	})
});
<!DOCTYPE html>
  <html>
  <head>
  </head>
  <body>
	<div>
		点击我跳转百度页面
		</div>
	<script src="http://ocean.taofen8.com/js/jquery-2.1.4.min.js"></script>
    </body>
  </html>