2017-12-18 5 views
0

이유는 페이지로드 빠른 않습니다Pug 및 Jade 파일에 JS 스크립트 배치가 중요합니까?</p> <p>말에</p> <pre><code>script(src="/Scripts/jquery.timeago.js") </code></pre> 우리 태그의 끝에 <p>하지 : 우리는이 같은 라인을 넣을 때

//Jade file with JQuery 
!!! 5 
html(lang="en") 
    head 
    title Holamundo! 
    script(type='text/javascript', src='http://code.jquery.com/jquery-1.9.1.js') 
    body 
    h1#headTitle Hello, World 
    p#content This is an example of Jade. 
    script 
     $('#headTitle').click(function() { 
     $(this).hide(); 
     }); 
     $('#content').click(function() { 
     $(this).hide(); 
    }); 

답변