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

javascript¼òµ¥ÑéÖ¤

<html>
  <head>
    <base href="<%=basePath%>">
   
 <script type="text/javascript">
  function check(){
   var name1 = document.form1.name1.value;
   
   var password1 = document.form1.password1.value;
  
   var email = document.form1.email.value;
   
   if(name1 == ""){
    alert("Óû§Ãû²»ÄÜΪ¿Õ!");
    return false;
   }
   else if(password1.length<4 || password1==""){
    alert("ÃÜÂë²»ÄÜÉÙÓÚ4λ");
    return false;
   }else {
    var idxEmail = email.indexOf('@');
    if(idxEmail <=0 || idxEmail == email.length - 1){
     alert("EmailµØÖ·¸ñʽ²»ºÏ·¨");
     return false;
    }
   }
  }
 </script>
  </head>
 
  <body>
   <form action="registerOK.jsp" method="post" name="form1" onsubmit="return check()">
    <input type="text" name="name1"/>
    <input type="password" name="password1"/>
    <input type="text" name="email" />
    <input type="submit" value="Ìá½»">
   </form>
  </body>
</html>


Ïà¹ØÎĵµ£º

×Ö·û´®ÖеÄJSONת»»³ÉJAVASCRIPTµÄOBJECT

// ÏÂÃæ´úÂë¿éʵÏÖÁËstring.parseJSON·½·¨
(function(s){
  // This prototype has been released into the Public Domain, 2007-03-20
  // Original Authorship: Douglas Crockford
  // Originating Website: http://www.JSON.org
  // Originating URL    : http://www.JSON.o ......

JavaScriptÖÐthis¹Ø¼ü×ÖʹÓ÷½·¨Ïê½â

ÔÚÃæÏò¶ÔÏó±à³ÌÓïÑÔÖУ¬¶ÔÓÚthis¹Ø¼ü×ÖÎÒÃÇÊǷdz£ÊìϤµÄ¡£±ÈÈçC++¡¢C#ºÍJavaµÈ¶¼ÌṩÁËÕâ¸ö¹Ø¼ü×Ö£¬ËäÈ»ÔÚ¿ªÊ¼Ñ§Ï°µÄʱºò¾õµÃ±È½ÏÄÑ£¬µ«Ö»ÒªÀí½âÁË£¬ÓÃÆðÀ´ÊǷdz£·½±ãºÍÒâÒåÈ·¶¨µÄ¡£JavaScriptÒ²ÌṩÁËÕâ¸öthis¹Ø¼ü×Ö£¬²»¹ýÓÃÆðÀ´¾Í±È¾­µäOOÓïÑÔÖÐÒª"»ìÂÒ"µÄ¶àÁË¡£
ÏÂÃæ¾ÍÀ´¿´¿´£¬ÔÚJavaScriptÖи÷ÖÖthisµÄʹÓ÷½·¨ÓÐʲô ......

ÓÃJavascriptʵÏÖ¾²Ì¬¶ÔÏó¡¢¾²Ì¬·½·¨ºÍ¾²Ì¬ÊôÐÔ

JavascriptÓïÑÔµÄÃæÏò¶ÔÏóÌØÕ÷ºÜÈõ£¬ÆäËûÃæÏò¶ÔÏóÓïÑÔÔÚ´´½¨ÀàʱֻҪʹÓùؼü×Östatic¼´¿ÉÖ¸¶¨ÀàΪ¾²Ì¬À࣬JavascriptûÓÐÌṩstaticÕâÑùµÄ¹Ø¼ü×Ö£¬ÒªÈÃJavascriptÒ²¾ßÓГ¾²Ì¬”ÌØÐÔÖ»Óп¿Ò»Ð©“Ææ¼¼ÒùÇÉ”ÁË¡£
´úÂëÖÐÁоÙÁËÁ½ÖÖ¾²Ì¬·½·¨/ÊôÐÔµÄʵÏÖ·½Ê½£¬Ò»ÖÖÊǾ²Ì¬ÀàµÄ¾²Ì¬·½·¨ºÍÊôÐÔ£¬ÁíÒ»ÖÖÊǷǾ ......

C# Active¿Ø¼þ£¬²¢´¥·¢javascriptʼþ

´´½¨Ò»¸öWinformÓû§¿Ø¼þ UserControl1
 using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Reflection;
namespace MyActiveT ......

javascript ת»»ÎªUNIXʱ¼ä´Á£¬PHP¿ÉÓÃ

//ת»»ÎªUNIXʱ¼ä´Á
function strtotimestamp(datestr)
{
    var new_str = datestr.replace(/:/g,"-");
    new_str = new_str.replace(/ /g,"-");
    var arr = new_str.split("-");
    var datum = new Date(Date. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ