摘要: 【1】相同modelarticles1 = Article.objects.order_by("autoid").filter(autoid__lt = 16).values('autoid','title') articles2 = Article.objects.filter(autoid = 阅读全文
posted @ 2018-02-07 18:18 犹冷 阅读(751) 评论(0) 推荐(0) 编辑
摘要: 1,匹配所有字母数字汉字:^[A-Za-z0-9\u4e00-\u9fa5]+$2,清空某项:$('#id').empty()3,某项功能关闭,不再执行:$('#id').off()4,查看数据类型:typeof xxx;或者typeof(xxx)5,删除对象中的键值对:delete dict.na 阅读全文
posted @ 2018-02-07 14:43 犹冷 阅读(1205) 评论(0) 推荐(0) 编辑
摘要: django提交表单提示"RuntimeError: You called this URL via POST, but the URL doesn’t end in a slash and you have APPEND_SLASH set." 提示form的action地址最后不是/结尾的,而且 阅读全文
posted @ 2018-02-07 14:27 犹冷 阅读(229) 评论(0) 推荐(0) 编辑