1. 程式人生 > >【JavaScript:語法】專案的啟動

【JavaScript:語法】專案的啟動

一、Web專案的啟動位置在哪?【類是main()的地方】

我: 預設從index.html出開始。 不過可以從伺服器那邊配置修改來改變啟動位置。

IIS伺服器設定的歡迎頁面是 main.asp
比如tomcat伺服器裡也可以在web.xml設定
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
第一種格式就是預設開啟index.html,如果改成main.html則是開啟main.html

二、