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

IEºÍFireFoxµÄ¼æÈݵÄjavascript»Ø³µÊ¼þ

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="login.aspx.cs" Inherits="login" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">

<title>Óû§µÇ¼ - ¾­Âç×ÔÎÒɨÃèÓû§ÖÐÐÄ</title>
<link href="./login.css" mce_href="login.css" type="text/css" rel="stylesheet" />
<mce:script src="JS/¸±±¾ login.js" mce_src="JS/¸±±¾ login.js" type="text/javascript"></mce:script>

<mce:script type="text/javascript"><!--
function SetFocus() {
document.getElementById('tbUserName').focus();
}
////Õâ¸öº¯ÊýÕâÄÜÕë¶ÔIE
// function document.onkeydown()
// {
// if (event.keyCode == 13)
// {
// if (document.getElementById("tbPassword").value != '' && document.getElementById("tbUserName").value != '')
// {
// return CheckNull();
// //document.getElementById("tbPassword").focus();
// // return false;
// }
// }
//
// }
//
// //Õâ¸öº¯Êý¿ÉÒÔÂú×ãÆäËûä¯ÀÀÆ÷
// function show(e){
//var ev = window.event|| e;
// if(ev.ctrlKey&&ev.keyCode==13)
// if (document.getElementById("tbPassword").value != '' && document.getElementById("tbUserName").value != '')
// {
// return CheckNull();
// }
//}
document.onkeydown = function(event)
{
var event = event ? event : window.event;
if (event.keyCode == 13)
{
var btn = document.getElementById("btnLogin");
btn.focus();
btn.onclick();
}
};




function Button1_onclick() {
return


Ïà¹ØÎĵµ£º

javascript withÓ÷¨(ת)

with
(object)
   statements
²ÎÊý
object
еÄĬÈ϶ÔÏó¡£
statements
Ò»¸ö»ò¶à¸öÓï¾ä£¬object ÊǸÃÓï¾äµÄĬÈ϶ÔÏó¡£
˵Ã÷
with
Óï¾äͨ³£ÓÃÀ´Ëõ¶ÌÌض¨ÇéÐÎϱØÐëдµÄ´úÂëÁ¿¡£ÔÚÏÂÃæµÄÀý×ÓÖУ¬Çë×¢Òâ Math µÄÖظ´Ê¹Óãº
x = Math.cos(3 * Math.PI) + Math.sin(Math.LN10)
y = Math.tan(14 * ......

ÔÚJavascriptÖд´½¨¶ÔÏó

ÔÚJavascriptÖÐûÓÐclassÀ࣬µ«ÊÇͬÑùÒ²¿ÉÒÔ½øÐжÔÏóµÄ´´½¨¡£ÔÚÃæÏò¶ÔÏóµÄÓïÑÔÖÐÐèҪʵÀý»¯Ä³¸ö¾ßÌåÀàµÄʵÀý£¬ÔÚJavascriptÖÐÔò²»Óá£
ÔÚJavascriptÀ¶ÔÏñ¿ÉÒÔ´´½¨ÐµĶÔÏó£¬Ò²¿ÉÒԼ̳Ð×ÔÆäËû¶ÔÏó¡£Õâ¸ö¸ÅÄî³ÆΪԭÐÍ»¯¼Ì³Ð(prototypal inheritance)¡£
Èκκ¯ÊýÔÚJavascript Öж¼¿ÉÒÔ±»ÊµÀý»¯Ò»¸ö¶ÔÏó¡£
³ÌÐòÈçÏ£º
// ......

Javascriptº¯ÊýÖе÷ÓÃC#·½·¨

Ò»¡¢ºǫ́£¨.csÎļþ£©·½·¨£º
       public string GetString(string name)
        {
            return ("Hello " + name);
        }
&n ......

javascript ºÏ²¢Êý×é

<html>
<body>
<script type="text/javascript">
var arr = new Array(3)
arr[0] = "George"
arr[1] = "John"
arr[2] = "Thomas"
var arr2 = new Array(3)
arr2[0] = "James"
arr2[1] = "Adrew"
arr2[2] = "Martin"
document.write(arr.concat(arr2))
</script>
</body>
</ ......

10ÖÖJavaScriptÌØЧʵÀýÈÃÄãµÄÍøÕ¾¸üÎüÒýÈË

½ñÌìµÄ»°ÌâÊÇÈçºÎ¸Ä½ø×Ô¼ºÍøÕ¾µÄ½çÃæ»òÌá¸ßÍøÕ¾µÄÊÓ¾õÌåÑ飬´Ó¶øÈÃÓû§¼ÇÒäÓÌС£
¡¡¡¡ÎÒÃÇÓÐÈýÖÖÖ÷ÒªµÄ·½·¨(´ÓÄѵ½Ò×):×Ô¼º¶¯ÊÖд½Å±¾;ʹÓÃÀàËÆÓÚjQueryºÍmooToolsµÄJavaScript¿ò¼Ü(¿ÉÒÔÈñàд´úÂë±ä
µÃ¸üÈÝÒ×Щ);ʹÓÃÄܹ¤×÷ÓÚÏÖÓеÄJavaScript¿ò¼ÜϵÄÌáÇ°Ô¤ÖúõĽű¾»òÄÇÖÖ´ÓÍ·¿ªÊ¼¿ª·¢µÄ´´½¨Õß¡£ÕâƪÎÄÕÂÊʺÏÄÇЩ´òË ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ