TypeError: invalid 'in' operand obj in jquery 1.9.1 version

后端 未结 7 2880
走了就别回头了
走了就别回头了 2021-02-20 16:25
$.ajax({
    async: false,
    type: \"POST\",
    url: url+\"module/listing/\"+projectId,
    data: \"ajax=true\",
    success: function(response) {
        $.each(resp         


        
7条回答
  •  面向向阳花
    2021-02-20 16:37

    I was getting this error while sending an array of column names to jQuery DataTables. The array needs to be an array of objects, not just an array of names. link to columns

    BAD columns: ["Column1", "Column2"]

    GOOD columns:[{title: "Column1"}, {title: "Column2"}]

提交回复
热议问题