[英]Refreshing a page without reloading it?
因此,在网站内是一个div,其中包含单击选项卡时正在加载的网站的另一部分。
因此,假设点击标签会加载一个名为“ hive / index.php”的文件。 当有人单击自动完成中的选项时,我只想重新加载hive / index.php,并且仍然拥有页面的其余部分,而不是整个页面。 我怎么做?
如果使用jQuery,
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
$('#divID').load('hive/index.php'); //<- Use this on any event in which you want to refresh the content
</script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.