W3School
中有关于正则表达式的全面介绍:http://www.w3school.com.cn/jsref/jsref_obj_regexp.asp1、什么是正则表达式?正则表达式有什么用?
知道正则表达式有什么用,是学习它的最好动力。 正则表达式跟平时用的字符串操作功能函数类似。功能比它强....
分类:
编程语言 时间:
2014-05-01 02:35:55
阅读次数:
423
众所周知,JavaScript是一门非常流行的编程语言,开发者用它不仅可以开发出炫丽的Web程序,还可以用它来开发一些移动应用程序(如PhoneGap或Appcelerator),它还有一些服务端实现,比如NodeJS、Wakanda以及其它实现。此外,许多开发者都会把JavaScript选为入门语...
分类:
编程语言 时间:
2014-05-01 02:11:16
阅读次数:
474
//动态加载一个js/css文件 function
loadjscssfile(filename, filetype) { if (filetype == "js") { var fileref =
document.createEl...
分类:
Web程序 时间:
2014-05-01 00:51:10
阅读次数:
451
废话少说,上代码 测试 查找下一个元素 一级菜单A A的子菜单 A的子菜单 A的子菜单...
分类:
Web程序 时间:
2014-05-01 00:02:52
阅读次数:
455
using System;using System.Web;public class
Search_Book : IHttpHandler { public void ProcessRequest (HttpContext context) {
context.Respo...
分类:
其他好文 时间:
2014-04-30 23:28:59
阅读次数:
372
JavaScript 对象(9个)JS ArrayJS BooleanJS DateJS MathJS
NumberJS StringJS RegExpJS FunctionsJS EventsBrowser
对象(5个)WindowNavigatorScreenHistoryLocationHTM...
分类:
Web程序 时间:
2014-04-30 23:23:53
阅读次数:
480
在MVC3里面——程序集 System.Web.Mvc.dll,
v4.0.30319有这么一个Ajax.BeginForm异步登录验证的类型,我们在下面给出一个例子:在登录页面Logion.cshtml。使用@using
(Ajax.BeginForm("Login", "Home", new.....
分类:
其他好文 时间:
2014-04-30 23:13:32
阅读次数:
561
可以在任何语句声明之前使用唯一标识(identifier)和冒号(:)用来标记该语句:identifier:
statement这样,你可以在程序的任何其他地方通过标识来使用这个语句。即使在语句内部也可以使用该语句的标识(例如:循环语句和条件语句)。当在一个循环语句前添加一个标识,你可以在语句内部通...
分类:
编程语言 时间:
2014-04-30 22:57:11
阅读次数:
619
Defining annotations
Here is the definition of the annotation above. You can see that annotation definitions look a lot like interface definitions.
In fact, they compile to class files like any oth...
分类:
编程语言 时间:
2014-04-27 21:47:05
阅读次数:
348
http://poj.org/problem?id=2947
大致题意:
有n种装饰物,m个已知条件,每个已知条件的描述如下:
p start end
a1,a2......ap (1
第一行表示从星期start到星期end一共生产了p件装饰物(工作的天数为end-start+1+7*x,加7*x是因为它可能生产很多周),第二行表示这p件装饰物的种类(可能出现相同的种类,即ai=aj)。...
分类:
其他好文 时间:
2014-04-27 21:12:04
阅读次数:
339