Pagination table with external json

前端 未结 2 1258
悲&欢浪女
悲&欢浪女 2021-01-27 00:45

I have a table with pagination and ext json but I am getting error while executing the table,Can anyone help me,below is the json and code has been given below,Same code need to

2条回答
  •  野的像风
    2021-01-27 01:35

    If you replace the $.each function with:

    $.each(a, function(idx, elem){
            $('table#table TBODY').append(''+elem.name+''+elem.stargazerscount +''+elem.forkscount +''+elem.description +'');
    });
    

    And then added following code into your style component, then you'll get what you expected:

    .major{
        background-color:green;
    }
    
    .critical{
        background-color:orange;
    }
    

提交回复
热议问题