我正在尝试在我的数据表中使用状态属性,但它不起作用

问题描述

状态是一个 bool 属性,我也在控制台中获取状态值

var Subscription = $("#subscription").DataTable({
            "ajax": {
                "url": "/MissionaryList/Subscription","type": "GET","datatype": "json","dataSrc": function (json) {
                    console.log(json);
                    return json;
                }
            },"columns": [
                {

                    render: function (data,type,row,Meta) {
                        return Meta.row + Meta.settings._idisplayStart + 1;
                    }
                },{ "data": "UserName" },{ "data": "SDate" },{ "data": "MembershipType" },{ "data": "Description" },{ "data": "EDate" },{
                    "data": "Status","render": function (data,row) {
                        return (data === true) ? 'Active' : ' Expired';
    }
},

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)