开发者

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜