摘要: 自django1.3开始:render()方法是render_to_response的一个崭新的快捷方式, 前者会自动使用 RequestContext。而后者必须coding 出来,这是最明显的区别,当然前者更简洁。 return render_to_response('blog_add.html 阅读全文
posted @ 2016-12-09 23:51 Dus 阅读(1529) 评论(0) 推荐(0) 编辑
摘要: JS正则 test :判断字符串是否符合规定的正则 rep = /\d+/; rep.test("asdfoiklfasdf89asdfasdf") true rep = /^\d+$/; rep.test("asdfoiklfasdf89asdfasdf") true Script:获取匹配的数据 阅读全文
posted @ 2016-12-09 16:19 Dus 阅读(127) 评论(0) 推荐(0) 编辑