0

我使用 Dojo 生成带有选择的表单。但是,我在 IE 中得到了一个未定义的变量。我的代码如下:

var listeRef = new dojo.data.ItemFileReadStore(
        { url : 'label_ref_json?where='+escape(' 1 ORDER BY label_ref_contents ASC') }
    );

接着:

<input 
    dojoType = "dijit.form.ComboBox"
    store = "listeRef"
    searchAttr = "label_ref_contents"
    name = "ref"
    id = "ref" 
    autoComplete = "true" 
    query = "{label_ref_contents: '*'}"
    value = "1"
    onChange = "ref_change();"
    required = "true"
    regExp = "^\d{8}[a-zA-Z]{2}$"
/>

IE 说listeRef是未定义的,你知道为什么吗?非常感谢

4

0 回答 0