extjs 開發注意事項

來源:互聯網
上載者:User

 1、 最近一直在找 datefield 控制項的顯示不全的原因  。      在網上找到了這樣一個代碼可以解決這個問題。   1:  Ext.override(Ext.menu.DateMenu, {   2:          autoWidth: function() {   3:              var el = this.el, ul = this.ul;   4:              if (!el) {   5:                  return;   6:              }   7:              var w = this.width;   8:              if (w) {   9:                  el.setWidth(w);  10:              } else if (Ext.isIE && !Ext.isIE8) {  11:                  el.setWidth(this.minWidth);  12:                  var t = el.dom.offsetWidth; // force recalc  13:                  el.setWidth(ul.getWidth() + el.getFrameWidth("lr"));  14:              }  15:          }  16:      });在開發 extjs 我總結了以下幾點希望開發 extjs 朋友注意以下 1、 html 中DOCTYPE              html 中的 doctype  定義對 IE  是特別敏感的  。  所以本人建議大家不要寫  . 2、X-UA-Compatible 設定 IE 解析本版在          由於本人使用的是  IE  9 可以通過  X-UA-Compatible 設定到 IE 6, IE 7 , IE8  幾個本版  。       經過測試  IE 8  對 extjs2.x 本版的相容性不是很好。 在這裡我建議大家少寫 3、 extjs  的本版         如果是extjs 新人建議使用高版本的進行開發 。   

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.