Ajax例子,views返回,html接收数据 views from django.shortcuts import render,HttpResponse,render_to_response import json # Create your views here. def ajax(request): if request.method == 'POST': print request.POST ret = {, 'msg':'dsafasdf', ,,,,,,], } return Ht…