该页面为什么点击a标签会不能跳转 页面路径正确
<!DOCTYPEhtml><html><head><metacharset="utf-8"/><title></title></head><body><ahref="j...
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<a href="javascript:void(0)" onclick="open()">11111111</a>
<script src="学习/js/jquery-2.1.1.js"></script>
<script>
function open(){
var ss = window.open('study.html');
//window.location = 'study.html';
}
</script>
</body>
</html>
问题是因为采用了保留字open做函数名 展开
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<a href="javascript:void(0)" onclick="open()">11111111</a>
<script src="学习/js/jquery-2.1.1.js"></script>
<script>
function open(){
var ss = window.open('study.html');
//window.location = 'study.html';
}
</script>
</body>
</html>
问题是因为采用了保留字open做函数名 展开
2016-09-13 · 百度知道合伙人官方认证企业
育知同创教育
1【专注:Python+人工智能|Java大数据|HTML5培训】 2【免费提供名师直播课堂、公开课及视频教程】 3【地址:北京市昌平区三旗百汇物美大卖场2层,微信公众号:yuzhitc】
向TA提问
关注
展开全部
因为方法没有执行,实例化没有。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<a href="javascript:void(0)" onclick="open()">11111111</a>
<script src="学习/js/jquery-2.1.1.js"></script>
<script>
function open(){
var ss = window.open('study.html');
//window.location = 'study.html';
}
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<a href="javascript:void(0)" onclick="open()">11111111</a>
<script src="学习/js/jquery-2.1.1.js"></script>
<script>
function open(){
var ss = window.open('study.html');
//window.location = 'study.html';
}
</script>
</body>
</html>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询