学习Atlas(三)客户端库总揽
客户端脚本库是一系列的*.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