javascript×ÓÒ³Ãæˢи¸Ò³Ãæ
ǰ̨ҳÃæΪ ×ÓÒ³ÃæΪһ¸ö°´Å¥£º
<form id="form1" runat="server">
<div>
<asp:Button runat="server" ID="Bt_Add" Text="Ìí¼Ó" Width="80px" Height="20px" OnClick="Bt_Add_Click" />
</div>
</form>
ÔÚºǫ́onClickÖÐÌí¼Ó£º
protected void Bt_Add_Click(object sender, EventArgs e)
{
//ÄãÒª×öµÄÊÂÇéÈ»ºóˢи¸Ò³Ãæ
//ˢи¸Ò³Ãæ
ClientScript.RegisterStartupScript(this.GetType(), "ReLoad", "ReLoad();", true);
}
ÔÚ×ÓÒ³Ãæ¼ÓÈëjavascript½Å±¾
<script type="text/javascript" language="javascript">
function ReLoad() {
if(window.opener)
{//Èç¹û¸¸Ò³Ã滹ÔڵĻ°
window.opener.location.reload();//ÏÈˢи¸Ò³Ãæ
window.opener = null;//
window.close();//ÕâÁ½¾äÊÇΪÁ˲»³öÏÖÌáʾ
}
}
</script>
µã»÷ʱ»áˤи¸Ò³Ãæ¡£Ôڹرձ¾Ò³Ãæ!
Ïà¹ØÎĵµ£º
scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐÄ¿Ç°¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......
avaScriptͨ¹ýÄÚÖõÄsetTimeoutº¯ÊýÀ´Íê³ÉÒ³ÃæÄڵĶ¨Ê±¼ì²é£¬Ò²ÊǺܾÃÒÔǰдµÄ¶«Î÷ÁË¡£
Ö®ËùÒÔÏëÆðËüÀ´£¬ÊÇÒòΪÔÚºÍÏîÄ¿×éÆäËû³ÉԱ˵¸ÃÊÂÇéµÄʱºò£¬±ðÈ˾¹È»³°Ð¦ÎÒ˵ÊÇÉϸöÊÀ¼ÍµÄ´úÂ룬ÏÖÔÚ¶¼ÓÃWEB2.0ÁË¡£
<script language="JavaScript" type="text/JavaScript">
//Ôö¼ÓϵͳɨÃèʱ¼ä
var v_ ......
°æ±¾£ºDHTML Object Model¡¡·µ»ØÖµ£ºÓÐ
Óï·¨£º
oTextRange = object . createTextRange ()
²ÎÊý£º
ÎÞ
·µ»ØÖµ£º
oTextRange : ¶ÔÏó(Element)¡£Èç¹û³É¹¦µÄ»°·µ»Ø±»½¨Á¢µÄ TextRange ¶ÔÏó¡£
˵Ã÷£º
Ϊ object ½¨Á¢ TextRange ¶ÔÏó¡£
ʹÓÃ´Ë TextRange ¶ÔÏó¿ÉÒÔ¼ìË÷ºÍÐÞ¸Ä object ÄÚµÄÎı¾¡£ TextRange ¶ÔÏ ......
ÎÒÃdz£³£ÔÚ±àдJava³ÌÐòʱ»áÓõ½PropertiesÎļþ£¬°ÑһЩMessageµÈÐÅÏ¢·ÅÔÚPropertiesÎļþ£¬µ«ÊÇÎÒÃÇ¿´µ½µÄ¶¼ÊÇһЩ±àÂë¡£
Struts1.1b2µÄÀý×ÓÖеı¾¹ú×ÊÔ´Îļþ¾¹ýUnicode±àÂëµÄ£¬ËùÒÔÄãÈç¹ûÒªºÍËüµÄÔËÐÐÒ»Ñù£¬Ò²±ØÐ뽫ÄãµÄApplicationResources_zh½øÐÐUnicode±àÂë¡£ÓÐÒÔÏÂÁ½ÖÖ·½·¨£º
¢ÙʹÓÃjdkµÄnative2ascii¹¤¾ß¡£ ......