1:在PHP写隔行变色有三种写法(但是最好的是用js+css) (1)CSS:
tr:nth-child(even){ background: #cad9ea; } even:代表偶数; ood:代表奇数; (2)PHP: ...
分类:
数据库 时间:
2014-07-22 23:13:53
阅读次数:
480
JS诞生其中一个目的就是将, 服务器端的校验在客户端提前完成, 以避免用户提交数据后,
后台校验报错的糟糕用户体验。基于JQuery库的有很多优秀的插件, 其中对于浏览器端表单进行验证的基本功能也有插件对应, validate插件便是一个。官网地址
: http://jqueryvalidation...
分类:
Web程序 时间:
2014-07-22 23:13:35
阅读次数:
532
// 获取文件路径 /** 1 *
bundle是一个目录,其中包含应用程序的所有资源,通过mainBundle 得到这个目录后就可以获取resource下的资源 */ NSString
*filePath = [[NSBundle mainBundle] pathFo...
分类:
移动开发 时间:
2014-07-22 23:13:34
阅读次数:
349
//华为编程:筷子,找到第一个单对的筷子#include #define max 37int
main(){ int n,i,j; int a[max]; int flag=0; int error=-1; scanf("%d",&n);
if(n>max) ...
分类:
其他好文 时间:
2014-07-22 23:13:33
阅读次数:
339
import java.security.MessageDigest;import
java.util.*;public class Hello2{ public static void main(String[] args) throws
Exception{ Random r = new Ran...
分类:
其他好文 时间:
2014-07-22 23:13:33
阅读次数:
354
mysql_num_rows();返回结果集中行的数目。1 $sql1 = "select *
from movie";2 $result1 = mysql_query($sql1) or die(mysql_error());3 $count =
mysql_num_rows($result1);...
分类:
Web程序 时间:
2014-07-22 23:13:33
阅读次数:
354
Reverse Words in a
String题目链接:http://oj.leetcode.com/problems/reverse-words-in-a-string/ Given an
input string, reverse the string word by word. F...
分类:
其他好文 时间:
2014-07-22 23:13:32
阅读次数:
309
public class DoTXT { // 定义成员变量:路径,文件对象,临时变量
private String path; // 文件路径 private File f; private FileReader fr; // 所需文件流对象
private File...
分类:
其他好文 时间:
2014-07-22 23:13:15
阅读次数:
300
最大的Qt4程序群(KDE4)采用cmake作为构建系统Qt4的python绑定(pyside)采用了cmake作为构建系统开源的图像处理库
opencv 采用cmake 作为构建系统...看来不学习一下cmake是不行了,一点一点来吧,找个最简单的C程序,慢慢复杂化,试试看:例子一单个源文件
ma...
分类:
其他好文 时间:
2014-07-22 23:13:14
阅读次数:
423