var request = new XMLHttpRequest();
request.onreadystatechange = function () {
if(request.readyState == 4){
request.close();
}
};
var request = new XMLHttpRequest();
request.open("GET", "http://URLtoExternalJS");
request.send();
var myincludes = request.response.toString();
document.write(myincludes);
如何将外部 javascript 源添加到 firefox 扩展中的现有 .js?