2013-10-02 2 views
0

jQuery와 함께 작은 고전 ASP PHP 캘린더를하고있다. 하지만 여기서 jQuery는 전혀 실행되지 않습니다 ... 여기에는 jquery 스크립트를 포함하는 작은 스 니펫이 포함되어 있습니다. HTML과 CSS 조각 당신은클래식 Asp 및 Jquery. Jquery 전혀 발생시키지

 $(document).ready(function() { 
       alert("i am working"); 
     }); <<<< 

기본적으로 준비 닫기 괄호가 누락되었습니다 http://jsfiddle.net/VU6dN/25/

<script language="javascript" type="text/javascript" src="jquery-1.9.1.min.js">  </script> 

<script type="text/javascript"> 
      $(document).ready(function() { 
      alert("i am working"); 
      } 
</script> 

<style> 
    table#grid tr { 
height: 45px; 
    } 
    table#grid td { 
width: 20%; 
    } 
    table#bottom td { 
width: 33%; 
    } 
    table#grid, table#bottom { 
      } 
    table#grid, table#bottom { 
border: 2px solid #99B7C2; 
text-align:center; 
width: 300px; 
    } 
    .activecell { 
background-color: #ccc; 
    } 

    .hidden { 
     display: none; 
    } 
    </style> 

답변

2

을 참조 매개 변수로 함수를받는 함수입니다,하지만 당신은 준비가 함수 호출을 종료하는 데 실패하십시오 .

 $(function() { 
       alert("i am working"); 
     }); 

당신이 F12 디버그 창 크롬 오픈이를 실행 한 경우, 당신은 오른쪽 하단에 읽기 오류가 발생했습니다 것이다 :

jQuery를 "준비"에 대한보다 현대적인 구문은 실제로 바로 이것이다 . Chrome은 jscript 디버깅에 적합합니다.