上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
摘要: http://blog.csdn.net/renfufei/article/details/41647937 阅读全文
posted @ 2015-11-04 20:05 gopher-lin 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 尝试Notebook, 还需要下载一些其它咚咚 1) 下载安装 pyzmq, 在这里不建议使用pip, pip对pyzmq支持不太好,装不上。我尝试使用easy_install c: easy_install.exe pyzmq 2) 下载安装 jinja2, c: easy_install.e... 阅读全文
posted @ 2015-11-04 12:46 gopher-lin 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 使用Form 表单提交的时候,切件是用render ,替代render_to_reponse 阅读全文
posted @ 2015-11-03 21:56 gopher-lin 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 要放在clic之后才能获取到值,不然有点问题,获取的值是空的 阅读全文
posted @ 2015-10-31 18:47 gopher-lin 阅读(130) 评论(0) 推荐(0) 编辑
摘要: {% extends 'base.html' %}{% block title %}报表{% endblock title %}{% block extracss %} <style type="text/css" btn { background: F4A460; } </style {% en... 阅读全文
posted @ 2015-10-31 10:20 gopher-lin 阅读(242) 评论(0) 推荐(0) 编辑
摘要: coding:utf 8 from django.contrib.auth.decorators import login_required from django.shortcuts import render_to_response from django.shortcuts import r... 阅读全文
posted @ 2015-10-31 10:17 gopher-lin 阅读(638) 评论(0) 推荐(0) 编辑
摘要: def excel_ajax(request): response = HttpResponse() response['Content Disposition'] = 'attachment;filename=export_agencycustomer.xls' wb = xlwt.Work... 阅读全文
posted @ 2015-10-30 00:25 gopher-lin 阅读(229) 评论(0) 推荐(0) 编辑
摘要: var t = "2010-06-09 13:12:01".split(/[- :]/); var d = new Date(t[0], t[1] - 1, t[2], t[3], t[4],t[5]); alert(... 阅读全文
posted @ 2015-10-29 15:02 gopher-lin 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 前台:用DOJO发送AJAX请求,设定返回值为json格式。var deferred = dojo.xhrPost({ url: "/test_json/", handleAs: "json", load: function(response, ioArgs){ return respons... 阅读全文
posted @ 2015-10-29 13:34 gopher-lin 阅读(147) 评论(0) 推荐(0) 编辑
摘要: from django.core.serializers.json import DjangoJSONEncoder List = {'my_time': test, 'guang': 2 } return HttpResponse(json.dumps(List, cl... 阅读全文
posted @ 2015-10-29 13:31 gopher-lin 阅读(156) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页