Так работает
var registrPackages = {};
function start_server(packages,router){
for (var key in packages) {
registrPackages[key] = {};
ajax.open('GET', key, false);
ajax.send(null);
eval(ajax.responseText);
for (var keys in func) {
registrPackages[key][keys] = func[keys];
}
}
alert(registrPackages["/js/src/supports/supports_html5.js"]["WebRTC"]());
}
А так TypeError: registrPackages['/js/src/supports/supports_html5.js'] is undefined
var registrPackages = {};
function start_server(packages,router){
for (var key in packages) {
registrPackages[key] = {};
ajax.open('GET', key, false);
ajax.send(null);
eval(ajax.responseText);
for (var keys in func) {
registrPackages[key][keys] = func[keys];
}
}
}
alert(registrPackages["/js/src/supports/supports_html5.js"]["WebRTC"]());
Как исправить?