- //首先判断文件是否存在,如果不存在,在进行引用
- if (!Page.ClientScript.IsClientScriptIncludeRegistered("js名称"))
- Page.ClientScript.RegisterClientScriptInclude("js名称", "js文件");
- //该片段来自于http://www.codesnippet.cn/detail/300720134889.html
来源: http://www.codesnippet.cn/detail/300720134889.html