qq_24534807 2017-05-10 03:55 采纳率: 0%
浏览 798

extjs5 Hash does not exist!

有人用过extjs5的时候出现Hash does not exist!,可是又不会出错,同时只有第一次会出现,把这个Hash does not exist!×掉,就再也不会出现了,就是这个 Hash does not exist!不影响功能

上代码吧(部分关键)

 //这是grid的一个 column
 {text:"Event ID",dataIndex:'eventId',width:80,renderer:'onEventIdRenderer',filter: {type: 'numeric'}},
 //renderer的事件
 onEventIdRenderer:function(value, p, r) {
        return '<a href="#" onclick="showEventDetail('+r.data['eventId']+')">'+r.data['eventId']+'</a>';  
    },
//render里面的
var showEventDetail =function(eventId){     
         Ext.Ajax.request({
                method : "post", 
                withCredentials: true,
                url: 'http://localhost:8080/notification-gateway-lite/glossary/event/getEvent',
                params : {eventId : eventId},
                success : function(response,action) {
                    var json = Ext.JSON.decode(response.responseText);
                    var window=Ext.create('PCMS.view.notification.event.EventListWin',{title:'Event Information'});
                    window.show();
                    window.down('[name=template_name]').setValue(json.data.template);
                    window.down('[name=email_to]').setValue(json.data.emailTo);
                    window.down('[name=email_cc]').setValue(json.data.emailCc);
                    window.down('[name=email_bcc]').setValue(json.data.emailBcc);
                    window.down('[name=sms_to]').setValue(json.data.smsTo);
                    window.down('[name=cust_code]').setValue(json.data.custCode);
                    window.down('[name=service]').setValue(json.data.service);
                    window.down('[name=severity]').setValue(json.data.severity);
                    window.down('[name=problem]').setValue(json.data.problem);
                    window.down('[name=site]').setValue(json.data.site);
                    window.down('[name=circuit]').setValue(json.data.circuit);
                    window.down('[name=date_time]').setValue(json.data.dateTime);
                    window.down('[name=message]').setValue(json.data.message);
                }//,
            //  failure : function(response,options){
                //  Ext.Msg.alert("response",response.responseText);
                //  Ext.Msg.alert("options",options);
                //  Ext.Msg.alert('warning','session timeout 1-' +response.responseText+"-"+options.service); 
               //  }
        });
    };
  • 写回答

1条回答

  • Go 旅城通票 2017-05-10 05:21
    关注

    extjs类库没有你这个内容,自己检查你的代码是否有监视浏览器hash的代码,如判断没有hash内容就提示错误之类的
    或者你的url地址添加hash内容看看是否报错

     xxx.html#abc
    
    评论

报告相同问题?

悬赏问题

  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?