当前位置:编程学习 > JAVA >>

Extjs

              {
  header : "操作",
  width : 100,
  align : 'center',
  renderer : function(value, cellmeta, record, rowIndex, columnIndex,store) {
   if(record.get('isStop')==false)
      return "<button type='button'  onclick='addBlack'>添加黑名单</button>";
else if(record.get('isStop')==true)
   return "<button type='button'  onclick='cancelBlack'>取消黑名单</button>";
else
   return;
  }
 },
addBlack这个函数应该写在哪里呢? extjs java grid onclick ext --------------------编程问答-------------------- addBlack=function(){
}

就写在同一个js下即可,不要被其它括号包住
补充:Java ,  Web 开发
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,