easyui datagrid中使用combobox方法

首先定义js变量

var ndJSON = [
            {
                "id": "2015-01-01",
                "name": "2015"
            },
            {
                "id": "2016-01-01",
                "name": "2016"
            },
            {
                "id": "2017-01-01",
                "name": "2017"
            },
            {
                "id": "2018-01-01",
                "name": "2018"
            },
            {
                "id": "2019-01-01",
                "name": "2019"
            },
            {
                "id": "2020-01-01",
                "name": "2020"
            },
            {
                "id": "2021-01-01",
                "name": "2021"
            },
            {
                "id": "2022-01-01",
                "name": "2022"
            },
            {
                "id": "2023-01-01",
                "name": "2023"
            },
            {
                "id": "2024-01-01",
                "name": "2024"
            }
        ];


之后对应的使用下拉框的列如下


年度



你可能感兴趣的:(easyui)