function loadScript(url, callback) {
var script = document.createElement('script');
script.src = url;
script.onload = callback;
document.getElementsByTagName('head')[0].appendChild(script);
}
// javascript Load
loadScript('https://ajax.googleapis.com/ajax/libs/angularjs/1.5.6/angular.min.js', function() {
console.log("로드완료");
});


반응형
Posted by 힘없는염소