有思俱乐部学习园地

iframe,script标签,link标签三种元素的加载事件设置,并且回调


U.UF.DL.fileElementLoaded(UDOD, fun)

功能:iframe,script标签,link标签三种元素的加载事件设置,并且回调
参数一:加载的元素
参数二:function回调函数
返回值: 返回值element对象
实例:U.UF.DL.fileElementLoaded($("iframe", { "id": _UTP, "name": _UTP, "width": 0, "height": 0, "style": { "display": "none" }, "src": _UDE[i][1] }, _UCS))

尝试一下:

U.UF.DL.fileElementLoaded($$("iframe", { "id": '11', "name": '111', "width": 200, "height": 200, "style": { "display": "block" }, "src":"http://www.baidu.com" }, document.body),function(){alert("成功")});

返回结果