Home > front end >  Layui table. On the inside of the printed obj data is empty
Layui table. On the inside of the printed obj data is empty

Time:10-10



</script>
The above is the inside of the HTML
Table. The render ({
Elem: '# shopLsit'
, cols: [[
//{type: 'checkbox, fixed:' left 'unresize: true}

//{field: 'yishou, title:' sell sum, unresize: true, width: '100'}
//{field: 'time', the title: 'creation time, unresize: true, width:' 300 '}
, {fixed: 'right' and the title: 'operation, the align:' center ', the toolbar: '# barDemo, unresize: true, width:' 250 '}
]]
, data: basedto. List. The list
//, skin: 'the line'//form style
//, even: true
Whether, page: true//display paging
This is a form of data
Table. On (' tool (test) ', function (obj) {
//var data=https://bbs.csdn.net/topics/obj.data;
console.log(obj);
})
This is to monitor, just don't know why the inside of the printed obj data is empty, ask the great spirit guide

CodePudding user response:

The table class to have a try

CodePudding user response:


Or not, print the obj is like this

CodePudding user response:

Data printed obj is such, you have no data should be there is something wrong with the table rendering

CodePudding user response:

Problem solved, the reason was that the introduction of layui framework inside JS file is missing
  • Related