JavaScript WebÁ÷³Ì¶¨Ò幤¾ß
Submitted by gouki on 2008, December 4, 11:47 PM. Javascript
ÓÃjavascript+vmlÀ´×ö¹¤×÷Á÷£¬È·ÊµÊǵÚÒ»´Î¿´µ½£¬ËùÒÔÎÒÔÚ¿´µ½ÓÐÕâ¸öÐÂÎŵÄʱºò£¬¾Í¾õµÃÌرðµÄ³Ô¾ª¡£µ±ÄêµÄTRS¾ÍÊÇÒòΪÓÐÒ»¸öactivex°æµÄ¹¤×÷Á÷¿Ø¼þµÄCMS£¬µ¼ÖÂËûµÄ¼Û¸ñ·Ç³£µÄ¸ß£¬½ñÌìÄܹ»¿´µ½ÓÐjavascript°æµÄ£¬¾ªÑÈÊÇÄÑÃâµÄ¡£¡£¡£
Ö»ÊDz¢·ÇËùÓеĻúÆ÷¶¼Ö§³ÖVML£¬ËùÒÔËüµÄÊÊÓ÷¶Î§»¹ÊÇÓÐÏ޵ģ¬²»¹ý£¬»°ÓÖ˵»ØÀ´£¬activexÒ²Ö»Ö§³ÖIE£¬µ«ÈÔÈ»ÓÐÄÇô¶àÈËÔÚÓ᣿´À´£¬Ö»ÒªÊǺö«Î÷£¬¼´Ê¹Äã²»¿çƽ̨£¬ÕÕÑùÓÐÈËÓõÄÆ𾢡£
Ïл°²»ËµÁË£¬¸½ÉÏÔÎÄÍøÖ·ºÍËûµÄ˵Ã÷£¬ÔÎÄ£ºhttp://www.cssrain.cn/article.asp?id=1192
¿ª·¢ÓïÑÔ;javascript,html,vml,json,css
¹¦ÄÜ£º
1.»·½Ú¿ÉÓÃÊó±êÍÏק
Êó±êÑ¡Öл·½Úºó²»ÊÍ·Å£¬ÍÏקÊó±ê£¬»·½Ú½«ËæÊó±êÒƶ¯£¬ÊÍ·ÅÊó±êºó£¬»·½Ú²»ÔÙÒƶ¯¡£
2.·¾¶µÄÁ½¸ö¶Ëµã¿ÉÒÔͨ¹ýÊó±êÍÏק£¬¸Ä±ä·¾¶Ö¸ÏòµÄ»·½Ú
Êó±êÑ¡Öз¾¶µÄ¶Ëµãºó²»ÊÍ·Å£¬ÍÏקÊó±ê£¬Â·¾¶±»Ñ¡ÖеĶ˵㽫Êó±êÒƶ¯£¬ÔÚÑ¡ÖеĻ·½ÚÊÍ·ÅÊó±êºó£¬Â·¾¶±»Ñ¡ÖеĶ˵㽫ָÏò¸ÃÑ¡ÖеĻ·½Ú¡£
3.ctrl+a£¬È«Ñ¡¡£
4.°´×¡ctrl£¬Êó±êÑ¡ÖжÔÏ󣬿ÉÒÔ¶àÑ¡¡£
5.delete£¬É¾³ýÑ¡ÖжÔÏó¡£
6.ʹÓÃÊó±ê¶àÑ¡
Êó±êµã»÷¿Õ°×´¦²»ÊÍ·Å£¬ÍÏקÊó±ê£¬»á³öÏÖÒ»¸ö³¤·½ÐÎÐé¿ò£¬Ðé¿òµÄ·¶Î§Ëæ×ÅÊó±êÒƶ¯¶ø±ä»¯£¬Ðé¿ò·¶Î§ÄڵĶÔÏ󽫱»Ñ¡ÖС£
7.¶¯Ì¬Ìí¼Ó»·½ÚºÍ·¾¶µÄÊôÐÔ
ÓÉÓÚ¶ÔÕâ¸ö¶«Î÷ºÜ³Ô¾ª£¬ËùÒÔ£¬°ÑͼƬºÍ¸½¼þ±£´æµ½Á˱¾µØ¡£ÐèÒªµÄÅóÓÑ¿ÉÒÔµãÉÏÃæÄǸöÍøÖ·»òÕߵ㱾Îĵĸ½¼þ½øÐÐÏÂÔØ
£¨²»ºÃÒâ˼£¬¸Õ·¢ÏÖ¸½¼þÓÐÃÜÂ룬ÎÒÒ²²»ÖªµÀÊÇʲôÃÜÂ룬ÓÐÆƽâÈí¼þµÄÅóÓÑÖ»ÄÜÐÁ¿àÒ»ÏÂÁË£¬»òÕßÈ¥ÉÏÃæµÄcssrain.cnÎÊÕ¾³¤È¥°É£¬ÎÒÕâÀï½ö½öÊÇ×÷¸ö±¸·Ý£©
Ïà¹ØÎĵµ£º
function f_MobilCheck(as_SourceString)
{
if(as_SourceString.match(/^13[0-9]{9}$/g)) return true; //ÊÖ»úºÅΪ13¿ªÍ·µÄ11λÊý×Ö
else if(as_SourceString.match(/^[0]{1}[0-9]{2,3}[2-8]{1}[0-9]{5,7}$/g)) return true;¡¡¡¡//СÁéͨΪ0¿ªÍ·µÄ3-4λµÄÇøºÅ£«²»ÒÔ1ºÍ9¿ªÍ·µÄ6£8λÊý×Ö
retur ......
²»Óò»ÖªµÀ,Ò»ÓòÅÖªµÀÕâÁ½ÕßÊDz»´óÒ»ÑùµÄ,ÏñÔÚjavaÖÐ,ÊÇÖ±½ÓʹÓà ,Èç str1.replace("$","*") °Ñ$ºÅ±ä³É*ºÅ
µ«ÔÚjavascript¾Í²»Ò»Ñù,ҪʵÏÖÉÏÃæµÄ¹¦ÄÜÊÇÕâÑùд: str.replace(/&/g,"*") ÆäÖеÄgÊDzÎÊý,˵Ã÷Òª½«È«²¿µÄ$¶¼±ä³É*
ÏÂÃæ°ÑjavascriptµÄÕ³ÌùÔÚÏÂÃæ:
¶¨ÒåºÍÓ÷¨
replace() ·½·¨ÓÃÓÚÔÚ×Ö·û´®ÖÐÓÃһЩ×Ö·ûÌ ......
// ѧϰҪÏ뿽±´ÄÇô¿ì¾ÍºÃÁË
//
// JavaScript µÄ¼Ì³ÐÊÇ»ùÓÚ prototype µÄ£¬Ã¿¸ö¶ÔÏóµÄ prototype ÊDZ£´æÔÚ¶ÔÏóµÄ __proto__ ÊôÐÔÖеģ¬Õâ¸öÊôÐÔÊÇÄÚ²¿(internal)µÄÊôÐÔ( ¹ßÀýÊÇÄÚ²¿µÄ»òÕßÒþ²ØµÄÊôÐÔÒÔ _ ¿ªÍ·)
// A prototype-based language has the notion of a prototypical object, an object used as a template ......
1.document.formName.item('itemname')µÄÎÊÌâ
˵Ã÷£ºIEÏ¿ÉÒÔʹÓÃdocument.formName.item('itemname')ºÍdocument.formName.elements('elementsName');
FFÏÂÖ»ÄÜʹÓÃdocuement.formName.elements('elementsName');
½â¾ö·½·¨£ºÍ³Ò»Ê¹ÓÃdocuement.formName.elements('elementsName');
2.¼¯ºÏÀà¶ÔÏóÎÊÌâ
˵Ã÷£ºIEÏ¿ÉÒÔʹÓÃ[]ºÍ ......
µ¥Ìåģʽ£¨singleton£©
µ¥ÌåÊÇÔڽű¾¼ÓÔØʱ´´½¨µÄ£¬Äܽ«Ò»ÏµÁÐÓйØÁªµÄ±äÁ¿ºÍ·½·¨×é֯Ϊһ¸öÂß¼µ¥Ôª£¬Âß¼µ¥ÔªÀïÃæµÄÄÚÈÝͨ¹ýµ¥Ò»µÄ±äÁ¿½øÐзÃÎÊ£»
Ò»¸öµ¥ÌåÖ÷Òª·ÖΪÈý²¿·Ö
ÓÃÓÚ·ÃÎÊÄÚ²¿ÐÅÏ¢µÄÈë¿Ú±äÁ¿£¨È磺Sky£©
ÊôÐÔ£¨È磺nickName/age/timeInfo£©
·½·¨£¨È磺sayHello£©
»ù±¾½á¹¹
01
var Sky = {
02
& ......