JQuery的核心理念是write less,do more(写的更少,做的更多),那么链式方法的设计与这个核心理念不谋而合。那么从深层次考虑这种设计其实就是一种Internal DSL。DSL是指Domain Specific Language,也就是用于描述和解决特定领域问题的语言我们贴一段代码...
分类:
Web程序 时间:
2014-08-04 17:27:40
阅读次数:
213
mysqlErrcode28磁盘还可以但是inode表没有了ddif=/dev/zeroof=tmpforindecount=1024bs=1024KB
mke2fs-N5000000-b1024-I128tmpforinde#格式化成ext2分区(因为ext3有日志系统,会消耗空间),制定inode大小为
mount-olooptmpforinde/var/tmp
root@eccubuntu:/var#df-h
Filesys..
分类:
数据库 时间:
2014-08-04 14:43:09
阅读次数:
313
常用权限:读写存储卡装载和卸载文件系统 android.permission.WRITE_EXTERNAL_STORAGE android.permission.READ_EXTERNAL_STORAGE android.permission.MOUNT_UNMOUNT_FILESYSTEMS 网络...
分类:
移动开发 时间:
2014-08-04 13:39:17
阅读次数:
362
一、eval() //执行一段字符串中的javascript代码。 语法:eval(code); //可以将javascript写在字符串里面执行。 var str = "document.write('你好!');" eval(str);二、EvalError...
分类:
编程语言 时间:
2014-08-04 13:26:37
阅读次数:
253
题目链接:
啊哈哈,选我选我
思路是:对猜测的字符串进行扫描。。看最后猜错的次数是不是大于等于7,还有就是已经踩过的数字在猜算错误,所以用map判一下重即可。。如果知道这个坑,那么就是水马题。
Hangman Judge
In ``Hangman Judge,'' you are to write a program that j...
分类:
其他好文 时间:
2014-08-04 11:12:07
阅读次数:
263
for...in 循环主要用于数组,也可用于对象。for (var index in myArray) { document.write(myArray[index]);}var person = { firstname : "Bill", lastname : "Gates", ...
分类:
其他好文 时间:
2014-08-03 22:48:56
阅读次数:
134
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value.
/**
...
分类:
其他好文 时间:
2014-08-03 12:54:55
阅读次数:
201
read code:
[root@luozhonghua 03]# cat ex03-read-01.c
/*文件ex03-open-03.c,
O_CREAT和O_EXCL的使用*/
#include
#include
#include
#include
int main(void)
{
int fd = -1,i;
ssize_t size...
分类:
系统相关 时间:
2014-08-03 12:46:45
阅读次数:
355
1. Choose a topic.2. Decide what to develop.3. Check feasibility of your idea, including the tools, time, etc.4. If feasible, write a project proposal...
分类:
其他好文 时间:
2014-08-02 20:38:53
阅读次数:
197
源自:http://www.en8848.com.cn/read/proseessay/lz/239065.html 1. Buy someone's coffee. 为他人买杯咖啡 It's just coffee -- no one needs coffee, so this doesn't r...