点击按钮返回indexhtmlbutton class=btn btn-primary 返回上一页button
<script>
document.querySelector(".btn").addEventListener("click", function(){
window.location.href = "index.html";
});
</script>
<p><button class="btn btn-primary" >返回上一页</button></p>
原文地址: https://www.cveoy.top/t/topic/bIMb 著作权归作者所有。请勿转载和采集!