用戶端指令碼庫是一系列的*.js檔案。
包含:
- AtlasRuntime.js. <atlas:ScriptManager id="scriptManager1" runat="server" enablescriptcomponents="false" /> 匯入
- Atlas.js.使用<atlas:ScriptManager id="scriptManager1" runat="server" /> 時預設匯入
- AtlasCompat.js. AtlasCompat2.js. 瀏覽器安全色相關
- AtlasFX.js.
- AtlasUIDragDrop.js.
- AtlasUIGlitz.js.
- AtlasUIMap.js.
- AtlasWebParts.js.
- GadgetRuntime.js.
引用指令碼的幾種情況:
<atlas:ScriptManager id="scriptManager1" runat="server" enablescriptcomponents="false" />
只引用AtlasRuntime.js
<atlas:ScriptManager id="scriptManager1" runat="server">
<scripts>
<atlas:scriptreference scriptname="AtlasUIDragDrop" />
<atlas:scriptreference scriptname="AtlasUIGlitz" />
</scripts>
</atlas:ScriptManager>
添加AtlasUIDragDrop,AtlasUIGlitz引用,引用時不加副檔名。
引用普通的*.js要用過:assign a value of custom to the scriptname attribute, and then add a path attribute and provide a path to the custom script.
詳細的內容見:
http://atlas.asp.net/docs/Overview/AtlasLibraryOverview.aspx