获取后台数据转换

formatter: function (cellvalue, options, rowObject) {
                            var name = "";
                            getAjax('/HouseModule/Y_Dictionary/BinDingItemsJson', { Code: 'houseType' }, function (data) {
                                var itemjson = eval("(" + data + ")");
                                $.each(itemjson, function (i) {
                                    if (cellvalue == itemjson[i].Code) {
                                       name= itemjson[i].FullName;
                                    }
                                });
                            });
                            return name;
                        }

猜你喜欢

转载自www.cnblogs.com/BillBlog/p/12101408.html