如何删除错误“类型错误u为null” [英] how to remove the error "type error u is null"

查看:144
本文介绍了如何删除错误“类型错误u为null”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的代码

=================

this is my code
=================

DynamicReport.SchemaRelationControl = function (relation) {
 var self =this ;
 var combotable=null;

 var createleftcombo=function (tblname){
    var tables = Ext.create('Ext.data.Store', {
        fields: ['value', 'text'],
        data:[{text:tblname,value:tblname}]
    });
 combotable = Ext.create('Ext.form.ComboBox', {
        fieldLabel: 'lefttable',
        store: tables,
        queryMode: 'local',
        displayField: 'text',
        valueField: 'value',
        renderTo:'fom-container',
    });
    }
     var init=function () {
        createleftcombo(relation.tblname);
    } ();



};
===================================
when i run this code it shows "type error u is null"
please help me

推荐答案

这篇关于如何删除错误“类型错误u为null”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆