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

javascriptÖ®±íµ¥ÑéÖ¤ ÍêÃÀÌáÉýÓû§ÌåÑé

ÒýÑÔ
Ôö¼Ó¿Í»§¶ËµÄ±íµ¥ÑéÖ¤¿ÉÒÔΪÓû§Ìṩ¸ü¿ìµÄÌåÑ飬µ«¾ö²»ÄܺöÊÓµÄÊÇ£¬¿Í»§¶Ë±íµ¥ÑéÖ¤ÓÀÔ¶²»Ó¦¸ÃÈ¡´ú·þÎñÆ÷¶ËµÄÑéÖ¤£¬¶øÖ»ÄÜÊǸ¨ÖúºÍÔöÇ¿¡£¸ù¾Ý¾­ÑéJavaScriptÑéÖ¤±íµ¥»ù±¾·ÖΪÒÔϼ¸·½ÃæµÄÄÚÈÝ£¬±ØÌî×ֶΡ¢ÌØÊâģʽƥÅäµÈ£¬»¹Òª×¢Òâ´íÎóµÄÌáʾ·½Ê½¶ÔÒ»¸ö±íµ¥µÄ¿ÉÓÃÐÔÓÐ׿«ÆäÖØÒªµÄÓ°Ïì¡£
2½¨Á¢±íµ¥
       Ê×ÏȽ¨Á¢Ò»¸ö¾ßÓдú±íÐÔµÄ±íµ¥À´×÷Ϊ±¾ÎĵÄʵÀý¡£
Çë¼û¸½¼þ±íµ¥ÑéÖ¤V1(»ù±¾°æ)
//form.html
<html>
<head>
<title>Simple Form</title>
<link rel="stylesheet" href="form_style.css" type="text/css"/>
<script type="text/javascript" src="checkForm.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<form action="javascript:alert('Ìá½»³É¹¦');" method="POST">
    <fieldset>
         <legend>Personal Information</legend>
         <label for="name">Name</label>
         <input type="text" id="name" class="required text"/>
         *<br/>
         <label for="email">Email</label>
         <input type="text" id="email" class="required email text"/><br/>
         <label for="date">Date</label>
         <input type="text" id="date" class="required date text"/><br/>
         <label for="url">Website</label>
         <input type="text" id="url" class="url text" value="http://"/><br/>
         <label for="phone">Phone</label>
        


Ïà¹ØÎĵµ£º

javascript replace µÄÕýÔò±í´ïʽ

replace()×î¼òµ¥µÄËãÊÇÄÜÁ¦¾ÍÊǼòµ¥µÄ×Ö·ûÌæ»»¡£ ʾÀý´úÂëÈçÏ£º
ËüÖ»Ìæ»»ÁËÊ××Öĸ¡£µ«Èç¹û¼ÓÉÏÕýÔò±í´ïʽ½á¹û¾Í²»Ò»ÑùÁË£¡replace()Ö§³ÖÕýÔò±í´ïʽ£¬Ëü¿ÉÒÔ°´ÕÕÕýÔò±í´ïʽµÄ¹æÔòÆ¥Åä×Ö·û»ò×Ö·û´®£¬È»ºó¸øÓèÌæ»»£¡ ×¢Ò⣺±»Ìæ»»µÄ²¿·Ö²»ÓüÓË«ÒýºÅ.
ÕâÑù»¹ÊÇÖ»Ìæ»»Á˵ÚÒ»¸ö×Öĸa¡£
ÓÉÉÏ¿ÉÖª£¬µ±ÕýÔò±í´ïʽÓÐ"g"±ê־ʱ£¬´ ......

JavaScript¼Ì³ÐÏê½â

http://www.cnblogs.com/sanshi/archive/2009/07/08/1519036.html
Ò»¡¢sanshi   javascript ¼Ì³ÐϵÁУº
1¡¢   JavaScript¼Ì³ÐÏê½â£¨Ò»£©    http://www.cnblogs.com/sanshi/archive/2009/07/08/1519036.html
2¡¢JavaScript¼Ì³ÐÏê½â£¨¶þ£©
3¡¢ JavaScript¼Ì³ÐÏê½â£¨Èý£©
4¡¢JavaScript¼Ì³ÐÏê½â£ ......

JavaScriptµ÷ÓÃÏÖ³ÉWordÄ£°åÍê³É´òÓ¡

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>JSµ÷ÓÃÏÖ³ÉWordÄ£°åÍê³É´òÓ¡</title>
    <script type="text/javascript">
      //ת»»wordµÄº¯Êý
      function ......

JavaScriptÌâÐÍ

1£®ÈçºÎ»ñÈ¡±íµ¥<select>ÓòµÄÑ¡Ôñ²¿·ÖµÄÎı¾£¿
<form name="a">
<select name="a" size="1" onchange="_sel(this)">
<option value="a">1</option>
<option value="b">2</option>
<option value="c">3</option>
</select>
</form&g ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ