数据表编辑器:使用 PHP data() 方法在输出数据之前访问数据
Datatables Editor: Using the PHP data() method to access data before it is output
根据documentation here您可以访问json_encoding之前的数据。没有进一步提及如何访问数据。返回什么数组?
Its an array in the same format as the JSON returned to the client. So for example you can get the data array using $editorData['data']; and then do whatever you need with that array (presumably looping over it and changing its contents).
Allan
根据documentation here您可以访问json_encoding之前的数据。没有进一步提及如何访问数据。返回什么数组?
Its an array in the same format as the JSON returned to the client. So for example you can get the data array using $editorData['data']; and then do whatever you need with that array (presumably looping over it and changing its contents).
Allan