JQuery's getScript equivalent in Prototype
Is there so开发者_StackOverflowme equivalent to jQuery's getScript in Prototype ?
var head;
var script;
head = $$('head')[0];
if (head)
{
script = new Element('script', { type: 'text/javascript', src: 'dynamic.js' });
head.appendChild(script);
}
精彩评论