函数加载JS失败      function chanagecolor(thefunction){
//includeJS('colors/script.js');
var head = document.getElementsByTagName('head')[0];
var js = document.createElement('script');
    js.setAttribute('type', 'text/javascript');
    js.setAttribute('src', 'colors/script.js');
    head.appendChild(js);
}直接加载JS文件成功     var head = document.getElementsByTagName('head')[0];
var js = document.createElement('script');
    js.setAttribute('type', 'text/javascript');
    js.setAttribute('src', 'colors/script.js');
    head.appendChild(js);我现在希望当调用相关的函数时, 再加载相应的JS文件,请帮忙看看是怎么回事