由于EXTJS是用XMLHTTP來LOAD的,所以在本地會看到一直LOADING的畫面。應該把它放到一個WEB服務器上,以HTTPD為例:
編輯文件:
/etc/httpd/conf.d/extjs.conf
內容如下:
Alias /extjs "/point/to/real/dir/ext/"
<Directory "/point/to/real/dir/ext/">
Options Indexes
AllowOverride AuthConfig Options
Order allow,deny
Allow from all
</Directory>
重啟httpd:
service httpd restart
這樣訪問http://hostip/extjs/docs/index.html就能在本地看EXTJS的文檔了。
注,經下面同學回復,有不用架設服務器的辦法,我搜了一下,供大家參考,本人未嘗試:
http://www.tkk7.com/mengyuan760/archive/2008/04/21/194510.html
posted on 2009-02-05 11:52
我愛佳娃 閱讀(2446)
評論(2) 編輯 收藏 所屬分類:
AJAX