shaojunliang 发表于 2018-4-19 13:01:52

关于combobox的问题

<input class="mini-combobox" id="ColumnCount" labelField="true" label="显示列数:" textField="text" valueField="id" width="100%"/>

<script type="text/javascript">
        mini.parse();
        //console.log('xx');
        var $Id = @ViewBag.Id;

        var xx = [{ id: 1, text: "xx" }];

        mini.get("ColumnCount").setData([{ id: 1, text: "xx" }]);
    </script>


谷歌浏览器可以正常,其他浏览器不正常,火狐报TypeError: $ is not a function,Edge报SCRIPT438: Object doesn't support property or method 'indexOf'。jquery版本3.2.1

dforce 发表于 2018-4-19 14:01:12

本地firefox测试了3.2.1版本的jquery,未发现报错

shaojunliang 发表于 2018-4-19 14:16:44

dforce 发表于 2018-4-19 14:01 static/image/common/back.gif
本地firefox测试了3.2.1版本的jquery,未发现报错

请问能发一份你测试的源码吗?

dforce 发表于 2018-4-19 14:59:30

shaojunliang 发表于 2018-4-19 14:16 static/image/common/back.gif
请问能发一份你测试的源码吗?

就你这代码测试的,我的firefox是59.0.2版本

shaojunliang 发表于 2018-4-19 15:29:34

dforce 发表于 2018-4-19 14:59 static/image/common/back.gif
就你这代码测试的,我的firefox是59.0.2版本

是用的最新版本miniui3.8.1吗?

dforce 发表于 2018-4-19 17:34:20

shaojunliang 发表于 2018-4-19 15:29 static/image/common/back.gif
是用的最新版本miniui3.8.1吗?

是的。
为了兼容ie低版本,建议不要使用3.+的jquery
页: [1]
查看完整版本: 关于combobox的问题