<div> <input type="button" value="返回首页" onclick="location.href = 'https://woodchen.ink" /> <input type="button" value="进入woodchen的博客" onclick=window.open('https://woodchen.ink') /> </div>
1.location.href,跳转替换本页面
2.window.open,跳转到新页面
<div> <input type="button" value="返回首页" onclick="location.href = 'https://woodchen.ink" /> <input type="button" value="进入woodchen的博客" onclick=window.open('https://woodchen.ink') /> </div>
1.location.href,跳转替换本页面
2.window.open,跳转到新页面
评论 (0)