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

JavaScript ÈýÖÖ¹¹Ôì¶ÔÏóµÄ·½·¨

//µÚÒ»ÖÖ¹¹Ôì·½·¨:   new Object()
var  a  = new Object();
a.x = 1, a.y = 2;
//µÚ¶þÖÖ¹¹Ôì·½·¨:    ¶ÔÏóÖ±½ÓÁ¿
var  b = {x:1,y:b};
//µÚÈýÖÖ¹¹Ôì·½·¨:    ¶¨ÒåÀàÐÍ
function   Point(x,y)
{
        this.x = x;
        this.y = y;
}
var p = new Point(1,2);


Ïà¹ØÎĵµ£º

javascriptµ¯³ö´°¿Ú´úÂë´óÈ«

ÈçºÎÀûÓÃÍøÒ³µ¯³ö¸÷ÖÖÐÎʽµÄ´°¿Ú£¬ÎÒÏë´ó¼Ò´ó¶à¶¼ÊÇÖªµÀЩµÄ£¬µ«ÄÇÖÖ¶àÖÖ¶àÑùµÄµ¯³öʽ´°¿ÚÊÇÔõô¸ã³öÀ´µÄ£¬ÎÒÃǽñÌì¾ÍÀ´Ñ§Ï°Ò»Ï£º 1.µ¯ÆôÒ»¸öÈ«ÆÁ´°¿Ú
;
www.kunde58.com

2.µ¯ÆôÒ»¸ö±»F11»¯ºóµÄ´°¿Ú
;
www.kunde58.com

3.µ¯ÆôÒ»¸ö´øÓÐÊÕ²ØÁ´½Ó¹¤¾ßÀ¸µÄ´°¿Ú ......

JavaScriptÖÐescapeº¯Êý

JavaScriptÖÐescape() º¯Êý¿É¶Ô×Ö·û´®½øÐбàÂ룬ÕâÑù¾Í¿ÉÒÔÔÚËùÓеļÆËã»úÉ϶ÁÈ¡¸Ã×Ö·û´®¡£Ê¹Ó÷½·¨£º
escape(charString)
charstringÊDZØÑ¡ÏҪ±»×ªÒå»ò±àÂëµÄ×Ö·û´®¡£
escape ·½·¨·µ»ØÒ»¸ö°üº¬ÁË charstring ÄÚÈݵÄ×Ö·û´®Öµ£¨ Unicode ¸ñʽ£©¡£ËùÓпոñ¡¢±êµã¡¢ÖØÒô·ûºÅÒÔ¼°ÆäËû·Ç ASCII ×Ö·û¶¼Óà %xx ±àÂë´úÌæ£¬ÆäÖ ......

ÍøÒ³ÖÆ×÷Javascript¾­µäС¼¼ÇÉ

 ×ª×Ôhttp://topic.csdn.net/u/20091014/12/44b0ac69-5228-429b-854a-a91e3736f1d4.html?64368
ÿһÏî¶¼ÊÇJSÖеÄС¼¼ÇÉ£¬µ«Ê®·ÖµÄʵÓã¡
1.document.write(”"); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document->html->(head,body)
4.Ò»¸öä¯ÀÀÆ÷´°¿ÚÖеÄDOM˳ÐòÊÇ:window->(navig ......

Javascript¶Ôurl½øÐбàÂëת»»

 javascriptÖдæÔÚ¼¸ÖÖ¶ÔURL×Ö·û´®½øÐбàÂëµÄ·½·¨£ºescape()£¬encodeURI()£¬ÒÔ¼°encodeURIComponent()¡£Õ⼸ÖÖ±àÂëËùÆðµÄ×÷Óø÷²»Ïàͬ¡£
escape() ·½·¨£º
²ÉÓÃISO Latin×Ö·û¼¯¶ÔÖ¸¶¨µÄ×Ö·û´®½øÐбàÂë¡£ËùÓеĿոñ·û¡¢±êµã·ûºÅ¡¢ÌØÊâ×Ö·ûÒÔ¼°ÆäËû·ÇASCII×Ö·û¶¼½«±»×ª»¯³É%xx¸ñʽµÄ×Ö·û±àÂ루xxµÈÓÚ¸Ã×Ö·ûÔÚ×Ö·û¼¯±í ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ