1.条件运算符2.$all 匹配所有3.$exists 判断字段是否存在4.NUll 值处理5.$mod 取模处理6.$ne 不等于7. $in 包含,与sql用法相同8. $nin 不包含,与sql用法相同9.$size 数组个数10.正则表达式11.$where 查询12.javascript ...
分类:
数据库 时间:
2014-07-22 22:56:54
阅读次数:
294
Flash制作动画,最基础的概念就是帧,但在Flash中,帧频的控制比较简单,只需要编译前指定一下目标帧频就可以了。实际运行时,不需要我们关心定时器的问题,flash player会定时触发EnterFrame消息,推动Movieclip播放。在js这一侧,需要我们设定一个定时器,并推动相应的绘制逻...
分类:
Web程序 时间:
2014-07-22 22:55:35
阅读次数:
335
在backstage.jsp页面中我写了一个方法,用于在指定位置添加面板(id为msg的地方)function addTab(t,h){ if($('#msg').tabs('exists',t)){ $('#msg').tabs('select',t); }else{ $('#msg').ta.....
分类:
其他好文 时间:
2014-07-16 19:01:22
阅读次数:
240
Word SearchGiven a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, wh...
分类:
其他好文 时间:
2014-07-16 18:17:13
阅读次数:
208
Description
Captain Clearbeard decided to go to the harbour for a few days so his crew could inspect and repair the ship. Now, a few days later, the pirates are getting landsick(Pirates get landsic...
分类:
其他好文 时间:
2014-07-16 17:26:06
阅读次数:
300
1. 设 $f(\al,\beta)$ 为线性空间 $V$ 上的非退化双线性函数, 试证: $$\bex \forall\ g\in V^*,\ \exists\ |\ \al\in V,\st f(\al,\beta)=g(\beta),\quad \forall\ \beta\in V. \ee...
分类:
其他好文 时间:
2014-07-16 16:55:49
阅读次数:
569
在《Qt Quick 之 QML 与 C++ 混合编程详解》一文中我们讲解了 QML 与 C++ 混合编程的方方面面的内容,这次我们通过一个图像处理应用,再来看一下 QML 与 C++ 混合编程的威力,同时也为诸君揭开美图秀秀、魔拍之类的相片美化应用的底层原理。...
分类:
其他好文 时间:
2014-07-16 12:47:43
阅读次数:
398
文件夹如果有文件时,不可以直接删除。要先把里面的文件删完后才可以删文件夹。 public void deleteFile(File file) { if (file.exists()) {// 判断文件是否存在 if (file.isFile()) {// 判断是...
分类:
其他好文 时间:
2014-07-15 00:53:59
阅读次数:
167
File类的常用静态方法:void AppendAllText(string path, string contents),将文本contents附加到文件path中bool Exists(string path)判断文件path是否存在string ReadAllText(string path)...
分类:
其他好文 时间:
2014-07-14 20:19:03
阅读次数:
279
1. DataBases a.show databases; b.create database mydatabase; c.use mydatabase;2.Tables a.show tables; b.create table if not exists mytable ( ...
分类:
数据库 时间:
2014-07-13 19:07:23
阅读次数:
298