Click or drag to resize
AkPageResourceAdd Method
引用脚本或样式表。

路径可以为AkPageService.CommonResource或AkPageService.DefaultResource。

常量AkPageService.CommonResource,表示通用的脚本及样式表文件,包括appkit、jQuery等。

常量AkPageService.DefaultResource,表示与页面同名的脚本及样式表文件,位于页面所在的目录或files子目录。

路径之前可以增加标志g:或i:。

增加标志g:时、路径仅需要文件名、表示引入公共位置的资源。

增加标志i:时、表示读取资源文件的内容、通过相关的标签增加到页面。

支持链式操作。

Namespace: Appkit.Web.UI
Assembly: Appkit (in Appkit.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
C#
public AkPageResource Add(
	params string[] paths
)

Parameters

paths
Type: SystemString
脚本或样式表文件路径的集合

Return Value

Type: AkPageResource
当前页面资源对象。
See Also