`
yzd
  • 浏览: 1820107 次
  • 性别: Icon_minigender_2
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

ClientScript.RegisterStartupScript

 
阅读更多
<p>Response.Write("&lt;h1&gt;123ty&lt;/h1&gt;");<br>Page.ClientScript.RegisterStartupScript(Page.GetType(),"","&lt;h1&gt;123&lt;/h1&gt;");</p>
<p>两者的区别在于ClientScript.RegisterStartupScript在页面<font color="#ff0000">加载最后</font>输出html代码。而Response.Write("&lt;h1&gt;123ty&lt;/h1&gt;");是在页面<font color="#ff0000">加载的开始</font>就输出了html代码。两者的位置不同!</p>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics