JQuery在Prototype中的getScript等价物

Pho*_*ics 3 jquery prototypejs

在Prototype中是否有一些等同于jQuery的getScript?

Ali*_*deh 5

var head;

var script;

head = $$('head')[0];
if (head)
{
    script = new Element('script', { type: 'text/javascript', src: 'dynamic.js' });
    head.appendChild(script);
}
Run Code Online (Sandbox Code Playgroud)