摘要: 1。直接在cs代码中通过Page.Response.Write()输出js代码这个方式下注册的js是在html页面代码的最顶端,在html标签之前这个方式的注册经常会使页面的css样式失效2。RegisterClientScriptBlock这个方式public void RegJS(string strKey,string js) { if (!ClientScript.IsClientScriptBlockRegistered(strKey)) { ClientScript.RegisterClientScriptBlock(this.GetType(), strKey, js, true 阅读全文
posted @ 2010-12-03 19:03 音乐啤酒 阅读(303) 评论(0) 推荐(0)