xml已知,现在问用json时,能否增加链接?

解决方案 »

  1.   

     var a=function(){this.b()}
     a.prototype={
      a:"aaaaa",
    b:function(){this.c="ccc"},
    d:function(x){alert(x)},
    e:function(){
    var a="1111"//
    alert(a)//弹出1111
    return function(){
    a="22222"//这里覆盖的就是上面的那个 var a="1111"了  window.a还是等于function(){this.b()}
    alert(a)//弹出2222
    return function(){
    // a="33333"
    alert(a)//弹出2222
    return function(){
    alert(a)//弹出2222
    }
    }
    }}
    }
    var b=new a()
    b.e()()()()
    alert(a)//弹出function(){this.b()}
      

  2.   

    colModel: [ {name:'myname', edittype:'select', formatter:'showlink', formatoptions:{baseLinkUrl:'someurl.php', addParam: '&action=edit'}, ...} 
          ...