Recently I learned datatables and encountered such a problem: requestunknownparameter & amp; #39; 0 & amp; #39; fromperformanceforrow0. After studying it for a long time, I finally figured it out. It turned out to be like this: datatables receives data in two formats, one in json format... S recently studied datatables and encountered such a problem: "request unknown parameter '0' from data source for row 0". After studying for a long time, I finally figured it out. It turned out to be like this: datatables receives data in two formats: a two-dimensional array in json format and an array object in json format. If the data is an array object in json format returned by the server, set the mDataProp attribute in js, such as: "aoColumns": [{"mDataProp": "engine" },{ "mDataProp": "browser "}, {"mDataProp": "platform" },{ "mDataProp": "version"}] The data returned by the server is in the following format: {"sEcho": 1, "iTotalRecords ": "57", "iTotalDisplayRecords": "57", "aaData": [{"engine": "Gecko", "browser": "Firefox 1.0", "platform ": "Win 98 +/OSX.2 +", "version": "1.7" },{ "engine": "Gecko", "browser": "Firefox 1.5", "platform ": "Win 98 +/OSX.2 +", "version": "1.8"}]}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service