Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaScript½Ù³Ö - Web ¿ª·¢ / JavaScript

ÎÒÔÚheadÖÐдÁËÏÂÃæµÃ´úÂë,Ïë½Ù³Öalertº¯Êý£¬¿ÉÊDz»ÖªµÀΪʲô£¬½«Õâ¸öhtml´ò¿ªÊ±£¬µ¯³öÁ½¸ö¿ò¶¼ÊÇÄÚÈݶ¼ÊÇab£¬ÎÒÒѾ­½Ù³ÖÁËÕâ¸öº¯Êý£¬ÎªÊ²Ã´Ã»ÓÐЧÄØ£¿
ÎÒÔÚÏÂÃ涨Òå¸öbuttonÔÚonclickʼþÖÐÌí¼Ó´úÂëalert£¨¡°ab¡±£©£»ÏÔʾµÄ¾ÍÊÇÕý³£µÄ½á¹û£¬ÇëÎÊÕâÊÇÔõô»ØÊ£¿£¿
<head>
<script language="JavaScript" >
var _alert=alert;
window.alert=function(s){
if(confirm("ÊÇ·ñÒªµ¯³ö:"+s)){
_alert(s);
}
}
alert("ab");
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
¿ÉÄÜÊÇIEµÄBug°É¡£
Â¥Ö÷ÊÇÔÚIEÏÂÃæ²âÊÔµÄÂð£¿ÎÒÕâÀï»ðºü±íÏÖÕý³£¡£

ÒýÓÃ

¿ÉÄÜÊÇIEµÄBug°É¡£
Â¥Ö÷ÊÇÔÚIEÏÂÃæ²âÊÔµÄÂð£¿ÎÒÕâÀï»ðºü±íÏÖÕý³£¡£

ºÃÏñÊÇ£¬ÎÒµÄIEÒ²²»ºÃÓ㬻ðºü¿ÉÒÔ£¬Äõ½Õâ¸öie²»Ö§³ÖÂð£¿

Õâ¸öÊÇÓÃÀ´·´½Ù³ÖµÄ£¬ÇëÎÊÓÐʲôÎÊÌâÂð£¿ÎÒ×ÔIEºÍ»ðºü×Ü×ö²âÊÔÁË£¬¶¼²»ºÃÓÃO(¡É_¡É)O~
function unHook(proc){
var f=document.createElement("iframe");

f.style.border="0";
f.style.width="0";
f.style.height="0";
document.body.appendChild(f);

var d =f.contentWindow.document;
d.write("<script type=\"text/javascript\">window.parent.alert=alert;<\/script>");


Ïà¹ØÎÊ´ð£º

Çë½ÌJavaScript¼üÅÌÎÊÌâ - Web ¿ª·¢ / JavaScript

Ôõô²ÅÄÜÅжϼüÅÌÊÇ·ñ±»°´ÏºÍËÉ¿ª¡£¡£¡£¡£¡£²»ÖªµÀÔõôÅжϡ£¡£¡£Ë­ÄܸæËßÎÒÏÂÂ𡣡£¡£¡£Ð»Ð»
onkeydownºÍonkeyupʼþ

ÒýÓÃ
onkeydownºÍonkeyupʼþ
×Ô¶¯´¥·¢ÕâÁ½¸öʼþ

onkeydown °´ÏÂ
onkeyup ËÉ¿ª

......

JavaScriptµÄdTreeÎÊÌ⣬ÔÚÏßµÈ - Java / Web ¿ª·¢

²úÆ·µÄÅäÖÃÒ³Ãæ¹²ÓÃÒ»¸öÓÃJavaScriptµÄdTreeʵÏÖµÄÊ÷Ðνṹ£¬ÏÔʾµÄʱºò£¬Ê÷Ðνṹ¿¿ÔÚÒ³ÃæµÄ×î×ó±ß£¬¸úÎÒµÄÅäÖÃÒ³ÃæÖмä¸ôÁËÒ»´ó¿é£¬ÏÖÔÚÏë°ÑÊ÷ÐÎĿ¼¾ÓÖУ¬½ô¿¿ÔÚÅäÖÃÄÚÈÝÅԱߣ¬ÈçºÎ¿ØÖÆÊ÷ÐÎĿ¼µÄλÖã¬ÒÔ¼°¿É²»¿ ......

javaScript ÖеÄȱÉÙ¶ÔÏóÎÊÌâ - Java / JavaÏà¹Ø

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml&q ......

¶ÔjavascriptµÄÀí½â - .NET¼¼Êõ / ASP.NET

´ó¼ÒºÃ£¡ÇëÎʹØÓÚjavascriptÔÚasp.netÀïµÄʹÓõÄÀí½âÊÇ·ñÕýÈ·ÄØ£º
js½Å±¾ºÍÒ³ÃæÒ»Æð·¢Ë͵½¿Í»§¶Ë£¬Èç¹ûÒ³ÃæÓÐͼƬµÄ»°£¬»á¸ù¾Ýsrc°Ñ¸ÃͼƬÏÂÔص½¿Í»§¶Ë²¢ÏÔʾ£¬È»ºójsµÄ·½·¨ÔÚä¯ÀÀÆ÷Ö´ÐС£
Èç¹ûû´íµÄ»°£¬ÄÇÈç¹ûÎÒ ......

¹ØÓÚjavascriptµÄÒ»¸ö²ËÄñÎÊÌâ - .NET¼¼Êõ / ASP.NET

ÎÒÏëÎÊ¡£¡£jsÖпÉÒÔͨ¹ý¸ö±éÀúËùÓÐÔªËز¢ÓÃgetelementbyID»ñÈ¡Ö¸¶¨IDµÄÔªËØ£¬ÄÇôÔõÑù²ÅÄܱéÀúËùÓÐÔªËØ´Ó¶ø»ñÈ¡ÓÐÖ¸¶¨classµÄÔªËØÄØ£¿£¿ºÃÏñûÓÐgetelementbyClassÕâ¸öº¯Êý°É£¿£¿
лл£¡
jqueryµ¹ÊÇ¿ÉÒÔµÄ
$(&quo ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ