<div id="summary"><div id="container"></div> <div id="blocker"></div> <script type ="text/javascript" src="user.js"></script> </div> <button type="button">Personal</button> <a href="#" onclick="f1(1);"<button type="button">Apps</button></a> <button type="button" >Settings</button>
function f1(id) { $('#summary').html(' <script type ="text/javascript" src="apps.js"> </script>'); }
try this :
<div id="summary">
<script src="user.js"></script>
</div>
<button type="button" onclick="app(1);">
Personal
</button>
<a href="#" onclick="app();">
Apps
</a>
<button type="button" >
Settings
</button>
<script>
function app(number)
{
if (number == null) {
$('#summary').html("<script src='app.js' />")
}
if (number != null) {
$('#summary').html("<script src='user.js' />")
}
}
</script>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.