类库说明文档
![]() | JHRegisterJSRegister Method (Page, String, String) |
在页面 Form 开始标记之后注册 JS 脚本
Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)

C#
public static void Register( Page page, string script, string exception )
Parameters
- page
- Type: System.Web.UIPage
要注册脚本的 Page (一般用 this.Page) - script
- Type: SystemString
要注册的 JS 脚本 - exception
- Type: SystemString
异常时执行的 JS 脚本
