<iframe name="fmimg"
id="<s:property value="fieldList['metatable']"/><s:property value="fieldList['metaid']"/>photo"
height="122px" width="94px" name="uFrame"
src="window.parent.getImageUrl('<s:property value="fieldList['metaid']"/>');" width="100%" height="100%" scrolling=no frameborder="0"></iframe>iframe作为一个html元素 在src属性中写调用js文件中js函数 对src属性赋值时,函数不执行
id="<s:property value="fieldList['metatable']"/><s:property value="fieldList['metaid']"/>photo"
height="122px" width="94px" name="uFrame"
src="window.parent.getImageUrl('<s:property value="fieldList['metaid']"/>');" width="100%" height="100%" scrolling=no frameborder="0"></iframe>iframe作为一个html元素 在src属性中写调用js文件中js函数 对src属性赋值时,函数不执行
感觉你把那个window.parent当做字符串赋给src了
var elt = document.getElementById("f1");
var win = elt.contentWindow;
elt.src = win.parent.temp();
类似上面的写法