摘要: function deleteData() { var id_list = []; $('#table_body').find(':checkbox').each(function () { if ($(this).prop('checked')) { id_list.push($(this).va 阅读全文
posted @ 2017-03-07 21:20 明天OoO你好 阅读(219) 评论(0) 推荐(0) 编辑
摘要: /* CSRF配置 */function csrfSafeMethod(method) { // these HTTP methods do not require CSRF protection return (/^(GET|HEAD|OPTIONS|TRACE)$/.test(method)); 阅读全文
posted @ 2017-03-07 21:15 明天OoO你好 阅读(1294) 评论(0) 推荐(0) 编辑
摘要: 1.将字符串的时间转换为时间戳方法:a = "2013-10-10 23:40:00"将其转换为时间数组import timetimeArray = time.strptime(a, "%Y-%m-%d %H:%M:%S")转换为时间戳:timeStamp = int(time.mktime(tim 阅读全文
posted @ 2017-03-07 15:04 明天OoO你好 阅读(350) 评论(0) 推荐(0) 编辑