摘要:
列举一下在程序集中嵌入脚本文件的几种方式:1、this.Page.ClientScript.RegisterClientScriptBlock:注册脚本2、this.Page.ClientScript.RegisterClientScriptInclude:引用脚本(URL地址)3、this.Page.ClientScript.RegisterClientScriptResource:引用名称(比如:MyAssembly.Js.MyJs.js)下面我来讲讲用的比较的多:this.Page.ClientScript.RegisterClientScriptResource,在程序集中嵌入脚本文件 阅读全文