第三行是这样的  var p_iframe=window["testiframe"];
而不是var p_iframe=window["voteFrame"];
麻烦告诉帮忙解释一下上面的红字部分和解析一下 为什么不能打印alert

解决方案 »

  1.   

    window对象声明一个jQuery 的  var jQuery = window.jQuery = function(selector, context) {
    // If the context is a namespace object, return a new object
     return this instanceof jQuery ?
     this.init(selector, context) :
     new jQuery(selector, context);
    };
      

  2.   

    调试了  为什么 window["testIframe"].jQuery 一直等于null  也就是未知呢? window["testIframe"].jQuery.ajax和$.ajax的区别是什么????
      

  3.   

    为什么需要这一句呢? jQuery("body").append('<iframe style="display:none" src="http://myurl:8080/vote_proxy.html" name="testIframe">