解决方法:
<a href="javascript:void(0)" οnclick="redirect(this,'../index.html')">Redirect</a>
function redirect(self, url) {
// 这句主要是防止用户可以看到跳转链接和页面置顶 self.setAttribute('href', '###'); window.location.href = url; }
解决方法:
<a href="javascript:void(0)" οnclick="redirect(this,'../index.html')">Redirect</a>
function redirect(self, url) {
// 这句主要是防止用户可以看到跳转链接和页面置顶 self.setAttribute('href', '###'); window.location.href = url; }
转载于:https://www.cnblogs.com/bilipan/archive/2012/09/04/2670132.html