如何避免点击加载按钮导致网页刷新,有更好的实现方法吗?
- 内容介绍
- 文章标签
- 相关推荐
本文共计93个文字,预计阅读时间需要1分钟。
在无需刷新的按钮事件下写入以下代码:`Response.Write(scriptdocument.location=document.location/script); // 防止页面刷新重写加载按钮事件`
在不需要刷新的按钮事件下写上以下一句:
Response.Write("<script>document.location=document.location</script>");//防止页面刷新重写加载按钮事件
本文共计93个文字,预计阅读时间需要1分钟。
在无需刷新的按钮事件下写入以下代码:`Response.Write(scriptdocument.location=document.location/script); // 防止页面刷新重写加载按钮事件`
在不需要刷新的按钮事件下写上以下一句:
Response.Write("<script>document.location=document.location</script>");//防止页面刷新重写加载按钮事件

