在ext.panel的属性html引用了一个html页面,我想在那个html页面中引用原来的js页面的变量,但是我怎么试都不成功。有谁帮帮我呀,最好给一个例子,呵呵

解决方案 »

  1.   

    什么意思呢?直接panel里面去加载html页面就可以了panel.load({
    url : "a.html", //加载的页面
    method : "post", // post请求方式
    params:{
    参数: 参数值
    },
    scope : this, // 范围
    discardUrl : true, // 丢弃url
    nocache : true, // 不缓存
    text : "加载中,请稍候……",
    timeout : 3000, // 延时3秒
    scripts : true//是否有js脚本
    });
      

  2.   

    html:url?参数;传个参数不就行了吗?
      

  3.   

    autoLoad:{url:'scripts.htm’,scripts:true}
    设置这个了吗
    scripts:true