答案 0 :(得分:0)
我发现了问题。在尝试了许多版本的文件管理器之后,我发现问题出在了Tinymce的版本上。我使用的是从网站下载的当前版本4.6.7。 但它只有在我使用下面的cdn时才有用。
const response = {
"return_status":1,
"return_message":"success",
"data":{
"2017.10":[
{
"tree_id":"BSRCC001",
"tree_code":"1240",
"tree_report_code":"5",
"scan_date":"11.10.2017, 09:57AM",
"scan_year":"2017",
"scan_month":"10"
}
],
"2017.7":[
{
"tree_id":"BSRCC001",
"tree_code":"1240",
"tree_report_code":"4",
"scan_date":"31.07.2017, 09:22AM",
"scan_year":"2017",
"scan_month":"7"
}
],
"2017.4":[
{
"tree_id":"BSRCC001",
"tree_code":"1240",
"tree_report_code":"3",
"scan_date":"13.04.2017, 09:21AM",
"scan_year":"2017",
"scan_month":"4"
}
],
"total_scan":"6"
}
}
const data = response.data;
const dates = Object.keys(data).map(key => key);
console.log(dates);
至于检查包版本是
<script src="//cdn.tinymce.com/4/tinymce.min.js"></script>