Ext.fly和Ext.get差異在速度以及實際元素指向

fly比較快,但實際元素指向需要看前面程式碼是否有使用到別的元素

文章標籤

黒森林蛋糕 發表在 痞客邦 留言(0) 人氣()

 Ext.getDom('testDom')、 Ext.getDom(el)、 Ext.getDom(el.Dom)是一樣的都可取回testDom元素

<html xmlns="http://www.w3.org/1999/xhtml">

文章標籤

黒森林蛋糕 發表在 痞客邦 留言(0) 人氣()

最近有機會對倉庫系統專案做Code review,網頁的寫法大多是用ExtJs(其實是用ExtNet) 所以買了一本書學習一下:

 下面程式碼主要是用Ext.extend 將Person繼承Object之後寫簡單的方法和屬性,

文章標籤

黒森林蛋糕 發表在 痞客邦 留言(0) 人氣()

Strings

The only formatting available to Strings is the padding option, which can be positive or negative depending on whether the string should be left- or right-aligned:

String.Format("'{0,10}'", "John");
文章標籤

黒森林蛋糕 發表在 痞客邦 留言(0) 人氣()

ToolTip tips = new ToolTip();
tips.ToolTipTitle = "lable提示";
tips.IsBalloon = true;
tips.UseAnimation = true;
tips.UseFading = true;
tips.AutoPopDelay = 3000;
tips.SetToolTip(this.label1,"提示");

文章標籤

黒森林蛋糕 發表在 痞客邦 留言(0) 人氣()