1.URLconf技巧1).流线型化函数导入在URLconf中的每一个入口包括了它所联系的视图函数,直接传入了一个函数对象。这就意味着需要在模块开始处导入视图函数。但随着Django应用变得复杂,它的URLconf也在增长,并且维护这些导入可能使得管理变麻烦。为了避免这种麻烦,Django提供..
分类:
Web程序 时间:
2015-08-09 07:17:25
阅读次数:
136
Unity内置的shader include files:这些文件都以.cninc结尾, HLSLSupport.cginc:自动包含,一些跨平台编译相关的宏和定义。 UnityCG.cginc:常用的全局变量和函数。 AutoLight.cginc:光影相关帮助函数,surface s...
分类:
编程语言 时间:
2015-08-09 00:22:10
阅读次数:
229
1.从Request对象中获取数据每个view函数的第一个参数是一个HttpRequest对象,在view函数的执行过程中,你可以用这些属性来获取当前request的一些信息(比如,你正在加载这个页面的用户是谁,或者用的是什么浏览器)。HttpRequest对象包含当前请求URL的一些信息:属性/方法说明举..
分类:
其他好文 时间:
2015-08-08 18:27:36
阅读次数:
126
DescriptionBefore the invention of book-printing, it was very hard to make a copy of a book. All the contents had to be re-written by hand by so calle...
分类:
其他好文 时间:
2015-08-08 17:55:43
阅读次数:
115
EG.一个对象BOOK 1.输出 ${book.name}空值判断:${book.name?if_exists },${book.name?default(‘xxx’)}//默认值xxx${ book.name!"xxx"}//默认值xxx日期格式:${book.date?string('yyyy-...
分类:
其他好文 时间:
2015-08-08 13:33:58
阅读次数:
185
从6点调到了现在22:19:07。。脑子晕倒死。用splay做,一开始怎么想也不知道该怎么play。想了个办法,用pos[i]表示编号为i的书在树上的节点编号s[i]表示树上的节点i代表的是哪本书。val[i]表示节点i的权值,这里的权值按照书从上到下的大小顺序来赋值,用来建树TOP:先把树里面代表...
分类:
其他好文 时间:
2015-08-07 23:49:50
阅读次数:
324
spring配置文件详解--真的蛮详细转自:http://book.51cto.com/art/201004/193743.htm此处详细的为我们讲解了spring2.5的实现原理,感觉非常有用 Spring配置文件是用于指导Spring工厂进行Bean生产、依赖关系注入(装配)及Bean...
分类:
编程语言 时间:
2015-08-07 23:49:23
阅读次数:
241
DescriptionBefore the invention of book-printing, it was very hard to make a copy of a book. All the contents had to be re-written by hand by so calle...
分类:
其他好文 时间:
2015-08-07 23:38:27
阅读次数:
153
首先将用户名密码封装到一个类中,另一个类保存图书信息。package com.jereh4;import java.util.ArrayList;
import java.util.List;class Book{ private List bookList ; public List getList(){
bookList = new ArrayList();...
分类:
其他好文 时间:
2015-08-07 22:21:58
阅读次数:
119
原题:DescriptionBefore the invention of book-printing, it was very hard to make a copy of a book. All the contents had to be re-written by hand by so ca...
分类:
其他好文 时间:
2015-08-07 22:05:30
阅读次数:
123