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

javascript framework£¬ JS³£Óú¯Êý£¨·½·¨£©£¬jQuery

//Register NameSpace for window.MSN
if(!window.MSN)
{
    window.MSN = {};
}
if(!window.MSN.SET)
{
    window.MSN.SET = {};
}
if(!window.MSN.SET.Utilities)
{
    window.MSN.Utilities = {};
}
//Check you borwse type
//IE7 &IE8 & FF etc can render hover for div tags, but can't render under IE6.0
//this function can render hover for div under IE6.0 browse
//
MSN.SET.Utilities = {
    WebBrowserType: { IE6: 'MSIE 6.0', IE7: 'MSIE 7.0', IE8: 'MSIE 8.0', Firefox: 'Mozilla', Unknow: 'unknow' },
    checkUserWebBrowser:function(){
         var userAgent = window.navigator.userAgent;
        
         if(userAgent.indexOf(MSN.SET.Utilities.WebBrowserType.IE8) > -1) {
             return MSN.SET.Utilities.WebBrowserType.IE8;
         }
        
         if(userAgent.indexOf(MSN.SET.Utilities.WebBrowserType.IE7) > -1) {
             return MSN.SET.Utilities.WebBrowserType.IE7;
         }
        
         if(userAgent.indexOf(MSN.SET.Utilities.WebBrowserType.IE6) > -1){
             return MSN.SET.Utilities.WebBrowserType.IE6;
         }
        
         if (userAgent.indexOf(MSN.SET.Utilities.WebBrowserType.Firefox) > -1) {
            return


Ïà¹ØÎĵµ£º

javascript ¹ýÂË textbox

<asp:TextBox ID="TextBox1" runat="server" onkeydown="return NotAllowSpace(this);"/></asp:TextBox>
<mce:script type="text/javascript" language="javascript"><!--
function NotAllowSpace(e)
{
var keyVal =(window.event) ? event.keyCode : e.keyCode; ......

JavascriptÖеÄÈÕÆÚ¸ñʽ»¯

×öJava¿ª·¢µÄÈ˶¼ÖªµÀ,ÔÚJavaÖÐÓÐXXXFormat(±ÈÈçSimpleDateFormat)Àà¿ÉÒÔ°ïÖúÎÒÃǵõ½ÏëÒªµÄÊý¾Ý¸ñʽ.ÔÚJavaScriptÖÐûÓÐÕâÑùµÄ¶«Î÷,ËùÒÔÎÒÃÇÐèÒªÓÃÁíÒ»ÖÖ·½·¨µÃµ½ÎÒÃÇÏëÒªµÄ¶«Î÷.´úÂëÈçÏÂ:
<html>
<head>
<title>Test</title>
<mce:script type="text/javascript" language="javascri ......

¿ªÆôJavaScriptµ÷ÊÔ

ÏÂÃæµÄ²Ù×÷²½ÖèÃèÊöÁËÔõÑùÀûÓÃvs.netÖеĵ÷ÊÔÆ÷À´µ÷ÊÔjavascript£º
1,Ê×ÏÈ£¬ÒªÈÃÄãµÄieÔÊÐíµ÷ÊԽű¾£¬¾ßÌå²½ÖèÈçÏÂ:
   ´ò¿ªie->¹¤¾ß²Ëµ¥->interÑ¡Ïî->¸ß¼¶Ñ¡Ï->È¥µô“½ûÖ¹½Å±¾µ÷ÊÔ"Ñ¡Ïî
2,´ò¿ªvs.net,´´½¨Ò»¸öеÄasp.netÏîÄ¿(»ò´ò¿ªÒ»¸ö)
3,ÔËÐÐÄãÒªµ÷ÊÔµÄÒ³Ãæ
4,µ±ÄãµÄÒ³Ãæ³ÊÏÖÔÚieÀ ......

javascriptÊý×é²Ù×÷´óÈ«[ת]

 
shift£ºÉ¾³ýÔ­Êý×éµÚÒ»Ï²¢·µ»Øɾ³ýÔªËصÄÖµ£»Èç¹ûÊý×éΪ¿ÕÔò·µ»Øundefined
var a = [1,2,3,4,5];
var b = a.shift(); //a£º[2,3,4,5] b£º1
unshift£º½«²ÎÊýÌí¼Óµ½Ô­Êý×鿪ͷ£¬²¢·µ»ØÊý×éµÄ³¤¶È
var a = [1,2,3,4,5];
var b = a.unshift(-2,-1); //a£º[-2,-1,1,2,3,4,5] b£º7
×¢£ºÔÚIE6.0ϲâÊÔ·µ»ØÖµ ......

javascriptʼþ¼àÌý

Ô­ÌûµØÖ·£ºhttp://www.cnblogs.com/AganCN/archive/2009/02/06/1206272.html   ¿¼ÂÇÕâÑùµÄÇéÐÎÔÚIEä¯ÀÀÖд¦Àí£¬ÐèÒªÏìÓ¦Ò³ÃæµÄ°´Å¥µã»÷ʼþ£¬ÓÐÄÄЩ·½·¨ÄØ£¿
£¨1£©onclickÊôÐÔÌí¼Óʼþ´¦Àíº¯Êý
function DoClick()//handler of click event
{

}


test1
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ