App下載
首頁javascriptcelljQuery Table - 如何確保程序進入死鎖...

jQuery Table - 如何確保程序進入死鎖...

我們想知道如何確保程序進入死鎖。...

<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
  src='http://code.jquery.com/jquery-1.6.4.js'></script>
<script type='text/javascript'>
$(window).load(function(){
    $(document).ready(function() {
       $('.status:contains("Paid")').css('color', 'red');
       $('.status:contains("Received")').css('color', 'green'); 
    });
});
</script>
</head>
<body>
  <div class="status">Paid</div>
  <div class="status">Received</div>
</body>
</html>