Exemplo n.º 1
0
def search_home_list(request):
    bookName = request.GET["bookName"].encode("utf-8") #支持中文搜索
    return HttpResponse(search_home_list_find(bookName))
Exemplo n.º 2
0
def search_home_list(request):
    bookName = request.GET["bookName"].encode("utf-8") #中文搜索
    return HttpResponse(search_home_list_find(bookName), content_type="application/json")
Exemplo n.º 3
0
def search_home_list(request):
    bookName = request.GET["bookName"].encode("utf-8")  # 支持中文搜索
    return HttpResponse(search_home_list_find(bookName),
                        content_type="application/json;charset=utf-8")