Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对 jquery 加载功能有疑问
jQuery(function(){ var refreshId = setInterval(function(){ jQuery('.timeago').load(location.href+' .timeago>*'); }, 5000); });
After 5 seconds .timeago div just disappears! Why?问题出在哪里或有另一种方法可以做到这一点?
After 5 seconds .timeago div just disappears! Why?
PS对不起英语不好。
$(.yourDiv).trigger('create')加载后尝试
$(.yourDiv).trigger('create')