js location对象的使用
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>mischen</title>
<script Language="JavaScript">
function testLocation(){
// alert(window.location);
alert(location);
}
function testLocation1(){
location="http://www.badu.com";
}
</script>
</head>
<body>
<a href="javascript:void(0);" οnclick="testLocation()">测试location</a>
<a href="javascript:void(0);" οnclick="testLocation1()">测试location1</a>
</body>
</html>