Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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>


Ïà¹ØÎĵµ£º

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

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

107¸ö³£ÓÃJavascriptÓï¾ä

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

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µ¯³öÒ»¸öÖ¸¶¨´óСµÄ´°¿Ú


Java´úÂë
<script language="JavaScript">   
function js_show(per_id)   
{   
   window.open('/weihu/person/viewResume.jsp?perID='+per_id, 'resume', 'resizable=yes,menuBar=0,toolBar=0,scrollbars=yes,width=800,height=600,left ......

javascript ÄÚ´æÐ¹Â¶¹¤¾ßʹÓÃ

javascriptÄÚ´æÐ¹Â¶µÄÎÊÌâÒ»Ö±ÒÔÀ´¶¼²»Êܵ½´ó¼ÒµÄÖØÊÓ£¬Ô­ÒòÊǶÔÓû§µÄÓ°ÏìûÓÐ̫ʵ¼ÊµÄ±íÏÖ£¬»òÐí½ü¼¸ÄêÄڴ淢չѸËÙ¡£½Å±¾ÄÚ´æÔÙй¶Ҳ²»»áÓÐÌ«´óÓ°Ïì¡£
µ±È»×÷Ϊǰ¶Ë¿ª·¢µÄͬѧÃÇ£¬¾Í²»ÄÜÓÐÕâÑùµÄ½ÄÐÒÐÄÀí¡£³öÏÖmemory leaksºÜ´ó³Ì¶ÈÉÏÊÇÒòΪ³ÌÐòµÄ²»³ÉÊìºÍ±àÂ벻̫¹æ·¶Ôì³ÉµÄ¡£²»¹ý£¬ÕâÀï¾Í²»ËµÈçºÎ³öÏÖÎÊÌâµÄ£¬¶ÔÎÊÌ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ