我想向div标记添加一个目标属性(参见下面的代码),这样页面"index.html“就可以在同一页即target_self中打开
<div id="home" style="cursor:pointer;
"href="javascript:void(0)"
onclick="window.open('index.html')"></div>发布于 2011-05-25 02:00:50
您应该从window.open更改为window.location.href =
https://stackoverflow.com/questions/6114761
复制相似问题