django ajax json实例

1. views.py 定义views视图函数,将数据存入字典。并用压缩为json格式,dumps,并return。javascript import json def get_comments(request, article_id): article_obj = models.Article.objects.get(id=article_id) article_comments
相关文章
相关标签/搜索