上一页 1 ··· 8 9 10 11 12 13 14 15 16 下一页
摘要: import datetime,timestringDate = "2006-05-18 19:35:00"dt = datetime.datetime.fromtimestamp(time.mktime(time.strptime(stringDate,"%Y-%m-%d %H:%M:%S")))... 阅读全文
posted @ 2015-10-29 08:59 gopher-lin 阅读(1977) 评论(0) 推荐(0) 编辑
摘要: {% extends 'base.html' %}{% block title %}生产管理{% endblock title %}{% block extracss %} {% load staticfiles %} {% endblock extracss %}{% bloc... 阅读全文
posted @ 2015-10-28 14:56 gopher-lin 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 添加</script修改$('.form_datetime').datetimepicker({ language: 'zh-CN',//此处修改 weekStart: 1, todayBtn: 1, autoclose: 1, todayHighlight: 1, startView: 2,... 阅读全文
posted @ 2015-10-28 11:23 gopher-lin 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-10-27 17:40 gopher-lin 阅读(123) 评论(0) 推荐(0) 编辑
摘要: $("#test tr:not(:first)").empty(""); 阅读全文
posted @ 2015-10-27 16:26 gopher-lin 阅读(207) 评论(0) 推荐(0) 编辑
摘要: def login(request): if request.method == 'POST': uf = LoginForm(request.POST) if uf.is_valid(): #获取表单用户密码 usern... 阅读全文
posted @ 2015-10-25 12:14 gopher-lin 阅读(3856) 评论(0) 推荐(0) 编辑
摘要: 如果用户没有登陆,重定向到settings.LOGIN_URL(把在查询字符串中的当前绝对路径传参过去,例如 /accounts/login/?next=/polls/3/ 如果用户已经登陆,正常执行视图函数默认情况下,用户在成功认证后的重定向路径被存在查询字符串中的next参数中,如果你想修改的... 阅读全文
posted @ 2015-10-23 11:30 gopher-lin 阅读(204) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/yelbosh/article/details/7545335 阅读全文
posted @ 2015-10-23 08:07 gopher-lin 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 定时刷新页面,最常见的有两种实现方式:一种是通过JavaScript+HTMLDOM,另一种则是通过meta标签来实现。1、JavaScript+HTMLDOM,示例代码如下:1234functionrefresh(seconds){setTimeout("self.location.reload(... 阅读全文
posted @ 2015-10-22 22:26 gopher-lin 阅读(200) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/btchenguang/archive/2012/09/01/2666763.html 阅读全文
posted @ 2015-10-22 21:23 gopher-lin 阅读(249) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 下一页