{
                fieldLabel: "广告编号",
                name: "ad_id",
                value: ""
            },
            {
                fieldLabel: "广告页面",
                name: "pic",
                readOnly: true,
                value: 'http://www.abc.com/'
            }我想在 广告编号框里 输入的字符 同时显示在 广告页面 的框里 求解

解决方案 »

  1.   

    没看懂。。只是一条JSON吧。。
      

  2.   

    {
      fieldLabel: "广告编号",
      name: "ad_id",
      enableKeyEvents:true,
      value: "",
      listeners:{keyup:function(){Ext.getCmp("pic").setValue(this.getValue());}}
      },
      {
      fieldLabel: "广告页面",
      id:"pic",
      name: "pic",
      readOnly: true,
      value: 'http://www.abc.com/'
      }
     
      

  3.   

    我那个
    listeners:{keyup:function(){Ext.getCmp("pic").setValue(this.getValue());}}
    这儿可能会出点问题,不晓得它内部这个事件是怎么实现的,所以这儿的this未必指代这个对象,可以alert一下,如果this的指代不对就用Ext.getCmp好了