1.问题描述1.1表结构1.2问题ref_list为id列表的字符串,需要从ref_list中找出包含指定id的数据(eg id=8)。如果实用models.objects.filter(ref_list__contains=id)无法实现精确查找models.objects.filter(ref_...
分类:
其他好文 时间:
2014-11-21 18:24:20
阅读次数:
728
//添加引用NPOI.dll//添加using NPOI.HSSF.UserModel;/// /// 导出数据到Excel /// /// /// public bool ExportOrderToExcel(ref string returnMsg) ...
Extjs3.x:
ID:这就是所熟知的Ext.getCmp(“组件ID”),缺点是id重复导致出错。
ref:在EXTJS3中,所有的组件都会有一个ref属性,也就是reference的意思。这种方式是通过对组件的引用而得到组件对象。例如:ref:’mypanel’,但是这种方式的局限性在于,他只能查找不同层级之间的组件。也就是说A[a,b,c] C[d,e,f],这样的...
分类:
Web程序 时间:
2014-11-20 23:43:51
阅读次数:
339
一、声明 文章中使用到的cocos2d的源代码的版本是cocos2d-x-3.3rc0。二、主要内容【Action类简介】 在cocos2d中,Action类是所有动作的基类。Action类继承了Ref类和Clonable类。【Action类的声明源码】 声明的源码在 CCAction.h 文件中,...
分类:
其他好文 时间:
2014-11-20 01:13:58
阅读次数:
700
EventListener是根据事件来执行一定的动作,前面讲的调度Scheduler根据时间来执行动作我们先从Event类开始。打开CCEvent.h文件/** * Base class of all kinds of events. */class Event : public Ref{pub.....
分类:
其他好文 时间:
2014-11-19 18:26:02
阅读次数:
262
$$\bex \frac{\tan x}{x}\nearrow. \eex$$ Ref. [Proof Without Words: Monotonicity of $\tan x/x$ on $(0,\pi/2)$, The College Mathematics Journal].
分类:
其他好文 时间:
2014-11-19 12:27:16
阅读次数:
180
$$\bex \sqrt{x^2+x+1}+ \sqrt{y^2+y+1} +\sqrt{x^2-x+1}+ \sqrt{y^2-y+1}\geq 2(x+y). \eex$$ Ref. [Proof Without Words: An Algebraic Inequality, The Colle...
分类:
其他好文 时间:
2014-11-19 12:20:04
阅读次数:
126
$$\bex \sin(x+y)=\sin x\cos y+\cos x\sin y. \eex$$ Ref. [Proof Without Words: Sine Sum Identity, The College Mathematics Journal].
分类:
其他好文 时间:
2014-11-19 12:19:11
阅读次数:
575
$$\bex \frac{\sin x}{x}\nearrow. \eex$$ Ref. [Proof Without Words: Monotonicity of $\sin x/x$ on $(0,\pi/2)$, The College Mathematics Journal]
分类:
其他好文 时间:
2014-11-19 12:12:31
阅读次数:
152
设 $\sed{a_k}_{k=1}^n$ 为等差数列, 则 $$\bex a_1+\cdots+a_n=\frac{n(a_1+a_n)}{2}. \eex$$ Ref. [Proof Without Words: Partial Sums of an Arithmetic Sequence, T...
分类:
其他好文 时间:
2014-11-19 12:04:39
阅读次数:
220