2012-08-06 5 views

답변

3

taken from the API, 당신은 주요 requirejs 함수에 콜백을 추가 할 수 있습니다

requirejs(['jquery', 'canvas', 'app/sub'], callMe); // the second parameter is the callback 

function callMe($, canvas, sub) { 
    console.log('everything is loaded'); 
    // the libraries are now available as parameters in the same sequence as in the array 
    console.log('loaded', $, canvas, sub); 
} 
관련 문제