我想在打开时自动刷新可折叠的内容。我怎么能管理它?打开后自动刷新可折叠的内容
我有向下跌破此代码:
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<a href="#demo" class="btn btn-info" data-toggle="collapse">Read more</a>
<div id="demo" class="collapse">
This needs to be refreshed everytime it shows up.
</div>
</div>
</body>
</html>
有没有简单的解决方案?因为我正在开发一个商店软件,所以我只能使用Javascript,HTML和CSS。实际上,每当可折叠触发时需要重新加载的内容是商店软件的变量 –
这很简单...它是加载内容的标准方式,并且它只使用Javascript和HTML ... – Max
这只是长。如果你不明白部分代码,请不要问。 :) – Max