标签: php json
当我这样做时url(r'^flash_report/(?P<year>[0-9]{4})-(?P<month>[0-9]{2})-(?P<day>[0-9]{2})/$', views.FlashReport.as_view(), name="flash_report"), 我收到错误var answer = JSON.parse(xhr.response);。 PHP:
url(r'^flash_report/(?P<year>[0-9]{4})-(?P<month>[0-9]{2})-(?P<day>[0-9]{2})/$', views.FlashReport.as_view(), name="flash_report"),
var answer = JSON.parse(xhr.response);
Unexpected token a in JSON