这必须是一个简单的问题,但我找不到答案。我试图在模态中调用我的javascript函数“Update_PointTracker_Account”,以便在打开模态时执行。由于某种原因,它不会执行。但是,Onclick 按钮完美地调用了该函数。我究竟做错了什么?
<div class="modal hide fade" id="Refresh_PointTracker_Program" data-keyboard="false" data-backdrop="static" aria-hidden="true">
<div class="modal-header" align='center'>
<h3>Refreshing PointTracker Program</h3>
</div>
<div class="modal-body" style="text-align: center">
<p> The points program is being refreshed</p>
</div>
<div style="text-align: center" id='updated_program_list'></div>
<script>
Update_PointTracker_Account();
</script>
<div class="modal-footer">
<button onclick ="Update_PointTracker_Account()" class="btn" aria-hidden="true">Update</button>
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
</div>
</div>