- 浏览: 229524 次
- 性别:
- 来自: 上海
-
最新评论
-
forcer521:
非常好,收了!!
jquery控制表格奇偶行的颜色变化 及鼠标移动的高亮显示 -
fnet:
Ubuntu 真简单,但是我的服务器貌似装不上
ubuntu9.10 快速搭建简易的ftp服务器 -
rockman:
写的很详细。
ubuntu9.10 快速搭建简易的ftp服务器 -
明天的昨天:
dengli19881102 写道还有INDEX_CATEGO ...
TreePanel checkbox 联动 -
明天的昨天:
dengli19881102 写道if (node.paren ...
TreePanel checkbox 联动
文章列表
public static void main(String[] args) {
String input="aaa bbbb ffffff 999999999";
Pattern p=Pattern.compile("(\\w)((?=\\1\\1\\1)(\\1))+");
Matcher m=p.matcher(input);
while(m.find()){
System.out.println(m.group()+" "+m.start()+"->"+m.end() ...
转载自: http://www.cnblogs.com/KingStar/archive/2010/06/10/1755299.html
经典的checkbox树默认是不会有联动处理的。这里变量INDEX_CATEGORY_CHECKING
是为了避免各个节点事件触发后的递归调用,从而解决了过多递归的问题。
'checkchange': function(node, checked){
if (!INDEX_CATEGORY_CHECKING) {
INDEX_CATEGORY_CHECKING = true;
// tr ...
curly-braces: 大括号{},正则中常用
race condition: 竞争条件
verbatim: 逐字
linear: 线性
sequential: 顺序
nested: 嵌套的
differentiated:
分化型
lexer: 词法分析
indentation:缩进,缩排
modest: 1.
谦虚的, 谦恭的,谦逊的
2.
适中的, 适度的
3.
些许的;
encompass:
包围,环绕
retrieval:检 ...
public static void main(String[] args) {
// (?<=A)B(?=C) 模式
// 查找"以A开始,以C结束,中间含B的字符串",然后匹配出B
String input="<html>xxxxx</html>";
Pattern p=Pattern.compile("(?<=<(\\w+)>).*(?=<\\/\\1>)");
Matcher m=p.matcher(input);
System.o ...
问题: 匹配"联想 昭阳e280l"之中的"邵阳" (其中联想 邵阳之间含有(0-n个)空格)。
解决方案:
public class Question {
public static void main(String[] args) {
String regex="联想 昭阳e280l";
Pattern p=Pattern.compile("(?<=联想)\\s*([\u4e00-\u9fa5]*)\\w*");
Ma ...
问题:
public class Question {
public static void main(String[] args) {
String regex="abc";
Pattern p=Pattern.compile("abc[^d]");
Matcher m=p.matcher(regex);
System.out.println(m.find());
}
}
输出false. why ??????
解析: [^d] 总是要匹配至少 ...
public class Question {
public static void main(String[] args) {
String regex="(go\\w*\\s*)(to\\w*\\s*)(work\\w*\\s*)";
Pattern pattern=Pattern.compile(regex);
Matcher matcher=pattern.matcher("Let's go to1 work2, going todo workxxx,");
System.out.pr ...
ExtJS获得 GridPanel的总行数
- 博客分类:
- extjs
获取GridPanel的总行数.
1. grid.getStore().getCount(); //未分页时 , 获取总行数
2. grid.getStore().getTotalCount(); //存在分页时 , 获取总行数
3. grid.getView().getRows().length;
grid.getView().getRows() : 返回所有行,这些行不是ExtJS的封装类对象,而是TR元素对象,只能通过dom访问它的属性。
jdk源码:
/**
* Returns <tt>true</tt> if this list contains no elements.
*
* @return <tt>true</tt> if this list contains no elements
*/
public boolean isEmpty() {
return size == 0;
}
应用场景:
public <T> T find(Class<T> $ ...
接口:
package com.test;
public interface Fruit {
}
一个实现类:
package com.test;
public class Apple implements Fruit {
}
基本测试类:
package com.test;
import java.util.ArrayList;
import java.util.List;
public class TestName {
public static void main(String[] args) {
Fruit ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>基本树形菜单展现</title>
<meta http-equiv="content-type" content="text/html; charset=gbk">
<link rel="stylesheet" type="text/css ...
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Hello World Window Example</title>
<meta http-equiv="content-type" content="text/html; charset=gbk">
<link rel="stylesheet" t ...
页面部分代码如下:
<form action="<c:url value=''/>" method="post">
<div id="exportBar">
<div class="para">
<div class="prop">时间粒度:</div>
<div class="val"><input type="text" id=&q ...
var alertLevel = new Ext.form.ComboBox( {
id:'cmb_alertLevel',
hiddenName:"level", //提交到后台的input的name
store: new Ext.data.SimpleStore({
fields: ['myId', 'displayText'],
data: [['0', 'Emergency'], ['1','Alert'],
['2','Critical'],['3','Error'] ...
转自: http://www2.flash8.net/teach/6879.htm
在ie6里,带默认下滑条,用div布局效果。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<met ...