08 2012 档案

摘要:1:基本知识 XTemplate是Ext.Template扩展的新类,它支持高级功能的模板类,如自动数组输出、条件判断、子模板、基本数学运行、特殊内建的模板变量,直接执行代码和更多的功能Autofilling arrays using templates and sub-templatesConditional processing with basic comparison operatorsBasic math function supportExecute arbitrary inline code with special built-in template variablesCus. 阅读全文
posted @ 2012-08-09 11:44 FredTang 阅读(10186) 评论(1) 推荐(0)
摘要:<%@ Page Language="C#" %> <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> < 阅读全文
posted @ 2012-08-09 11:17 FredTang 阅读(2377) 评论(0) 推荐(0)
摘要://Treegridformattingfunctionfunctionfn(v,values){i=i+1;switch(i){case1:x=values.alarm1;break;case2:x=values.alarm2;break;default:alert("xnotassignedvalue");}if(x==1){return'<spanstyle="background-color:red;width:100%">'+v+'</span>';}elseif(i==currentho 阅读全文
posted @ 2012-08-06 16:10 FredTang 阅读(277) 评论(0) 推荐(0)
摘要:一个模板如下示 varmyTpl=newExt.Template('<div>{content:ellipsis(50)}<br/><ahref="{moreLink}">ReadMore</a></div>');通过处理,其中有47个字符是属于内容本身的,另外三个字符是”...“,一共50个字符。 这是一份可用于模板格式化函数的列表: * ellipsis(length) - 对大于指定长度部分的字符串,进行裁剪,增加省略号(“...”)的显示。适用于只显示前N位的字符,然后提供详细页面的链接。 阅读全文
posted @ 2012-08-06 14:24 FredTang 阅读(204) 评论(0) 推荐(0)