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

javascriptдÔÚº¯ÊýÀïÃæ

javascriptдÔÚº¯ÊýÀïÃæ
function loadscript(url) {
document.write('<scr' + 'ipt  type="text/javascript" src"' + url + '"><\/scr' + 'ipt>'>)
}
Ôڳɹ¦µÄÕýÔò±í´ïʽ²éÕÒÍê³É֮ǰ£¬ÆäÊôÐÔֵΪ undefined¡£
²»Òª½«È«¾Ö RegExp ¶ÔÏóÓë ÕýÔò±í´ïʽ
¶ÔÏó»ìÏý¡£¾¡¹ÜÌýÆðÀ´ÏñÊÇÒ»»ØÊ£¬µ«ËüÃÇÊǽØÈ»²»Í¬µÄ¡£È«¾Ö RegExp
¶ÔÏóµÄÊôÐÔ°üº¬²»¶Ï¸üеĹØÓÚÿ¸öÆ¥Åä³öÏÖµÄÐÅÏ¢£¬¶øÕýÔò±í´ïʽ¶ÔÏóÖ»°üº¬³öÏÖÕýÔò±í´ïʽƥÅäµÄÐÅÏ¢¡£
ÏÂÃæµÄÀý×ÓÑÝʾÁËÈ«¾Ö
JavaScriptÖÐRegExp¶ÔÏóµÄÓ÷¨¡£
function
matchDemo(){
   var s;
   var re = new RegExp("d(b+)(d)","ig");
 
 var str = "cdbBdbsbdbdz";
   var arr = re.exec(str);
   s = "$1
contains: " + RegExp.$1 + "\n";
   s += "$2 contains: " + RegExp.$2 +
"\n";
   s += "$3 contains: " + RegExp.$3;
   return(s);
}


Ïà¹ØÎĵµ£º

ÓÃJavaScriptдµÄСʱºòÍæµÄƹÅÒÇòСÓÎÏ·

ÓÉÓÚ»ðºüä¯ÀÀÆ÷²»Ö§³Ö“removeNode”º¯Êý£¬ËùÒÔһϴúÂëÖ»Ö§³ÖIE.
<!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">
<head>
< ......

javascript trim·½·¨

ÔÚjavascriptÖеÄstring¶ÔÏóûÓÐtrim·½·¨£¬ËùÒÔtrim¹¦ÄÜÐèÒª×Ô¼ºÊµÏÖ£º
´úÂëÈçÏ£º
Java´úÂë
﹤scriptlanguage=”javascript”﹥   
/**  
*ɾ³ý×óÓÒÁ½¶ËµÄ¿Õ¸ñ  
*/  
String.prototype.trim=function(){      
  &nbs ......

107ÌõJavascriptµÄ³£ÓÃÓï¾ä


1. document.write( " "); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document- >html- >(head,body)
4.Ò»¸öä¯ÀÀÆ÷´°¿ÚÖеÄDOM˳ÐòÊÇ:window- >(navigator,screen,history,location,document)
5.µÃµ½±íµ¥ÖÐÔªËصÄÃû³ÆºÍÖµ:document.getElementById( "±íµ¥ÖÐÔªËصÄID號 ").name(»òvalue)
6.Ò ......

JavaScriptµÄä¯ÀÀÆ÷¶ÔÏóÏê½â

JavaScriptµÄä¯ÀÀÆ÷¶ÔÏóÏê½â  
Ò»¡¢ä¯ÀÀÆ÷¶ÔÏó²ã´Î¼°ÆäÖ÷Òª×÷ÓÃ
¶þ¡¢Îĵµ¶ÔÏó¹¦Äܼ°Æä×÷Óà
Èý¡¢·¶Àý 
ʹÓÃä¯ÀÀÆ÷µÄÄÚ²¿¶ÔÏóϵͳ, ¿ÉʵÏÖÓëHTMLÎĵµ½øÐн»»¥¡£ËüµÄ×÷ÓÃÊǽ«Ïà¹ØÔªËØ×éÖ¯°ü×°ÆðÀ´£¬Ìṩ¸ø³ÌÐòÉè¼ÆÈËԱʹÓ㬴Ӷø¼õÇá±à³ÌÈ˵ÄÀͶ¯£¬Ìá¸ßÉè¼ÆWebÒ³ÃæµÄÄÜÁ¦¡£
Ò»¡¢ä¯ÀÀÆ÷¶ÔÏó²ã´Î¼°ÆäÖ ......

JavascriptÁ·Ï°ÊµÀý01:³Ë·¨¿Ú¾÷±íÓëɸѡËØÊý

<html>
<body>
<mce:script type="text/javascript"><!--
document.write("<table border=1px>");
for(i=1;i<=9;i++)
{document.write("<tr>");
for (j=1;j<=i;j++)
{document.write("<td class='table1'>"+i+"*"+j+"="+i*j+"&nbsp;&nbsp;& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ