2014年6月22日

使用jQuery解析JSON数据

摘要: 转自:http://www.cnblogs.com/codeplus/archive/2011/07/18/2109544.htmlJSON数据如下,是一个嵌套JSON:{"comments":[{"content":"很不错嘛","id":1,"nickname":"纳尼"},{"content"... 阅读全文

posted @ 2014-06-22 17:15 数学之道 阅读(380) 评论(0) 推荐(0) 编辑

2014年6月21日

Django json处理

摘要: 转自:http://www.gowhich.com/blog/4231, 发往浏览器端前端:jQuery发送GET请求,并解析json数据。url = "http://example.com/?q=" + q + "&rand=" + Math.random();$.getJSON(url, fun... 阅读全文

posted @ 2014-06-21 11:31 数学之道 阅读(798) 评论(0) 推荐(0) 编辑

2014年6月18日

一种 jquery 检索方案

摘要: 整理自:http://www.cnblogs.com/linjiqin/archive/2011/03/18/1988464.htmlstruts2名字: 阅读全文

posted @ 2014-06-18 15:28 数学之道 阅读(194) 评论(0) 推荐(0) 编辑

2014年6月3日

C++多态技术

摘要: 转自: http://blog.sciencenet.cn/blog-58025-691458.html摘要本文介绍了C++中的各种多态性,重点阐述了面向对象的动态多态和基于模板的静态多态,并初探两种技术的结合使用。关键词函数多态宏多态动态多态静态多态导言多态(polymorphism)一词最初来... 阅读全文

posted @ 2014-06-03 11:09 数学之道 阅读(412) 评论(0) 推荐(0) 编辑

2014年5月29日

6,视图和路由

摘要: REST framework includes an abstraction for dealing with ViewSets, that allows the developer to concentrate on modeling the state and interactions of t... 阅读全文

posted @ 2014-05-29 13:23 数学之道 阅读(257) 评论(0) 推荐(0) 编辑

5,基于关系和超链接的 API

摘要: Tutorial 5: Relationships & Hyperlinked APIsAt the moment relationships within our API are represented by using primary keys. In this part of the tuto... 阅读全文

posted @ 2014-05-29 11:31 数学之道 阅读(677) 评论(0) 推荐(0) 编辑

2014年5月28日

4,认证和授权

摘要: Currently our API doesn't have any restrictions on who can edit or delete code snippets. We'd like to have some more advanced behavior in order to mak... 阅读全文

posted @ 2014-05-28 14:10 数学之道 阅读(342) 评论(0) 推荐(0) 编辑

2014年5月27日

3,基于类的视图函数

摘要: We can also write our API views using class based views, rather than function based views. As we'll see this is a powerful pattern that allows us to r... 阅读全文

posted @ 2014-05-27 16:12 数学之道 阅读(335) 评论(0) 推荐(0) 编辑

2,请求和响应

摘要: From this point we're going to really start covering the core of REST framework. Let's introduce a couple of essential building blocks.从现在起,我们将开始接触 RE... 阅读全文

posted @ 2014-05-27 15:35 数学之道 阅读(406) 评论(0) 推荐(0) 编辑

1,序列化

摘要: 介绍该教程将会让你理解 REST 框架的各个组件是怎么工作的。该教程很深入,你可能需要取饼干和你喜欢的饮料。如果你想快速的浏览,你应该去看 quickstart 。注意:该教程对应的代码可以去GitHub看, tomchristie/rest-framework-tutorial 。完整的实现作为测... 阅读全文

posted @ 2014-05-27 13:40 数学之道 阅读(594) 评论(0) 推荐(0) 编辑

导航