相关文章推荐
深沉的刺猬  ·  Android ...·  1 年前    · 
淡定的红薯  ·  HttpContext.User ...·  2 年前    · 
爱喝酒的楼房  ·  ibatis:There is no ...·  2 年前    · 
1 renderer : function(value){
2     var html = "<a href=\"javascript:void(0);\" onclick=\"editServer('"+value+"')\" style=\"text-decoration:underline;color:blue;\">编辑</a>&nbsp;&nbsp;"+
3           "<a href=\"javascript:void(0);\" onclick=\"accountBalance('"+value+"')\" style=\"text-decoration:underline;color:blue;\">余额</a>";
4     return html;

而下面已经定义了editServer方法

 1 function editServer(value){
 2     Ext.create('Ext.window.Window', {
 3         y : 50,
 4         x : 150,
 5         title : '编辑渠道',
 6         modal : true,
 7         width : 680,
 8         height : 330
 9             ......

但是运行的时候却一直报没有定义:

ReferenceError: editServer is not defined

解决方法:

  将方法改为:

window.editServer= function(value){

     ......

再次运行后成功

参考网址:http://bsdn.org/projects/dorado7/issue/dorado7-6800