开发者

JQuery's getScript equivalent in Prototype

开发者 https://www.devze.com 2022-12-29 11:29 出处:网络
Is there so开发者_StackOverflowme equivalent to jQuery\'s getScript in Prototype ?var head; var script;

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);
}
0

精彩评论

暂无评论...
验证码 换一张
取 消