今天帮同事修复一个bug,问题是这样的,页面中有一个表单提交,是跨域的,所以同事选择了target="iframeid",就涉及到动态创建iframe的问题,他的方法是:createIframe : function(id, name, style){ var iframe = document.createElement('iframe'); iframe.setAttribute("id", id); iframe.setAttribute("name", name); iframe.style.cssText =
posted @ 2012-10-25 10:20
shinebob
阅读(447)
评论(0)
推荐(0)