页面调试
除了watch
记得还有console.log 函数
var win = parent.$("iframe")[0].contentWindow;
这句代码没有看懂,,关键是iframe嵌套的页面,没有办法调试啊
然后我就这样
console.log(parent);
console.log(parent.$("iframe"));
console.log(parent.$("iframe")[0]);
console.log(parent.$("iframe")[0].contentWindow);//获取iframe页面的document
一下就看懂了