我的窗口中有一个iframe,我用jquery向它添加了新的按钮。在迁移到angular2之前,我使用parent.SampleFunction()从iframe调用父函数。export class AppComponent {
addButtonToIFrameonClick='parent.SampleFunctio
我使用jQuery创建一个iframe元素,onLoad调用父元素的jQuery函数之一。当父级调用额外的jQuery函数时,这会导致父级的$ is not defined。看起来好像iframe已经引起了父母的jQuery的脱节。
iframe不是页面(src="about:blank")。我认为iframe需要自己的JavaScript/jQuery环境,但我很难将
我有一个嵌入了iFrame (子)的页面(父页面),iFrame包含一个javascript函数,我需要从父页面调用该函数。页面在不同的域上,我不知道这是不是问题所在。这是我在父页面上的代码: function SaveChanges() {
var iFrame = document.getElementByIdtype=