The following error is returned to the datatables interface after obtaining data from the background in the datatables project yesterday:
Datatables warning: Requested unknown parameter '1' from the data source for row 0
You can add the following settings. The principle is not very clear.
"Aocolumndefs ":[
{
Sdefaultcontent :'',
Atargets: ['_ all']
}
],
VaR otable = $ ("# example "). datatable ({"bdeferrender": True, "bfilter": false, "bdestroy": True, "bprocessing": True, "bsort": True, "bstatesave": false, // asynchronous processing is required. Otherwise, the data cannot be sent. "bserverside": True, "sservermethod": "Post", "sajaxsource": "$ {basepath}/loginfo/getloginfo ", "aocolumns": [{"bvisible": True, "mdata": "providername", "atargets": [0] },{ "bvisible": True, "mdata ": "propertyname", "atarget S ": [1] },{" bvisible ": True," mdata ":" roomtypename "," atargets ": [2] },{" bvisible ": True, "mdata": "opmethod", "atargets": [3] },{ "bvisible": True, "mdata": "operattime", "atargets ": [4] },{ "bvisible": True, "mdata": "operator", "atargets": [5]},], "aocolumndefs": [{sdefacontent content: '', atargets: ['_ all']}]," olanguage ": {" sprocessing ":" loading ...... "," slengthmenu ":" _ m displayed on each page Enu _ records "," szerorecords ":" No data! "," Semptytable ":" No data exists in the table! "," SINFO ":" displays _ start _ to _ end _ records, total _ records "," sinfoempty ":" displays 0 to 0 records ", "sinfofiltered": "A total of _ max _ records in a data table", "opaginate": {"sfirst": "Homepage", "sprevious": "Previous Page", "snext ": "Next page", "slast": "last page "}}});
Datatables warning: Requested unknown parameter '1' from the data source for row 0 Error