简体   繁体   English

Ajax加载iframe而不刷新页面

[英]Ajax loading iframe without refreshing the page

Using ajax I'm loading iframes and at given intervals it should change. 使用ajax我正在加载iframes并且应该以给定的时间间隔进行更改。 Iframes are changing after specified intervals, but the page is refreshing. 在指定的时间间隔后,iframe会发生变化,但是页面正在刷新。

How we can stop that? 我们如何才能阻止这种情况?

I've worked on a similar task recently. 我最近也从事类似的工作。 You should only have to modify the src attribute of the iframe and it should change. 您只需要修改iframe的src属性,它就可以更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM