
试试这个:
function reload(){ var container = document.getElementById("yourDiv"); var content = container.innerHTML; container.innerHTML= content; //this line is to watch the result in console , you can remove it later console.log("Refreshed");}<a href="javascript: reload()">Click to Reload</a> <div id="yourDiv">The content that you want to refresh/reload</div>希望它能工作。让我知道
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)