生活随笔
收集整理的這篇文章主要介紹了
【】局部刷新:
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
【】局部刷新:
//頁(yè)面加載時(shí)綁定按鈕點(diǎn)擊事件$(function(){????$("#按鈕id").click(function(){????????refresh();????});});//點(diǎn)擊按鈕調(diào)用的方法function?refresh(){????window.location.reload();//刷新當(dāng)前頁(yè)面.????????//或者下方刷新方法????//parent.location.reload()刷新父親對(duì)象(用于框架)--需在iframe框架內(nèi)使用????//?opener.location.reload()刷新父窗口對(duì)象(用于單開(kāi)窗口??//top.location.reload()刷新最頂端對(duì)象(用于多開(kāi)窗口)} html如何實(shí)現(xiàn)某個(gè)標(biāo)簽自動(dòng)刷新
Javascript刷新頁(yè)面的幾種方法:
history.go(0)location.reload()location=location location.assign(location)document.execCommand('Refresh')window.navigate(location)location.replace(location)document.URL=location.href
轉(zhuǎn)載于:https://www.cnblogs.com/moyuling/p/5011636.html
總結(jié)
以上是生活随笔為你收集整理的【】局部刷新:的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。