jQuery MiniUI

标题: 关于combobox的问题 [打印本页]

作者: 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: $[lo0OlO] 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
本地firefox测试了3.2.1版本的jquery,未发现报错

请问能发一份你测试的源码吗?
作者: dforce    时间: 2018-4-19 14:59:30

shaojunliang 发表于 2018-4-19 14:16
请问能发一份你测试的源码吗?

就你这代码测试的,我的firefox是59.0.2版本
作者: shaojunliang    时间: 2018-4-19 15:29:34

dforce 发表于 2018-4-19 14:59
就你这代码测试的,我的firefox是59.0.2版本

是用的最新版本miniui3.8.1吗?
作者: dforce    时间: 2018-4-19 17:34:20

shaojunliang 发表于 2018-4-19 15:29
是用的最新版本miniui3.8.1吗?

是的。
为了兼容ie低版本,建议不要使用3.+的jquery




欢迎光临 jQuery MiniUI (http://miniui.com/discuss/) Powered by Discuz! X2