-1
如果可以在html中只使用一個div或id使用javascript代碼,但此javascript代碼不會影響頁面上的另一個div或id我嘗試此方法但不工作只能在一個html對象div或id中使用javascript
function deposit() {
DEPOSIT = true; \t \t \t
}
function withdraw(){
DEPOSIT = false; \t
$(".norobots").slideUp();
loadLeft();
}
$(function(){
$('div[onload]').trigger('onload');
});
function showConfirm() {
$("#confirmModal").modal("show");
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="col-md-6" id="withdraw" onload="withdraw();">
</div>
<div class="col-md-6" id="deposit" onload="deposit();">
</div>