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

Javascript ¼¼ÇÉ´óÈ«(2)

POST´úÌæFORM
<SCRIPT language="VBScript">
Function URLEncoding(vstrIn)
    strReturn = ""
    For i = 1 To Len(vstrIn)
        ThisChr = Mid(vStrIn,i,1)
        If Abs(Asc(ThisChr)) < &HFF Then
            strReturn = strReturn & ThisChr
        Else
            innerCode = Asc(ThisChr)
            If innerCode < 0 Then
                innerCode = innerCode + &H10000
            End If
            Hight8 = (innerCode  And &HFF00)\ &HFF
            Low8 = innerCode And &HFF
            strReturn = strReturn & "%" & Hex(Hight8) &  "%" & Hex(Low8)
        End If
    Next
    URLEncoding = strReturn
End Function
Function bytes2BSTR(vIn)
    strReturn = ""
    For i = 1 To LenB(vIn)
        ThisCharCode = AscB(MidB(vIn,i,1))
        If ThisCharCode < &H80 Then
            strReturn = strReturn & Chr(ThisCharCode)
        Else
            NextCharCode = AscB(MidB(vIn,i+1,1))
            strReturn = strRe


Ïà¹ØÎĵµ£º

ÈÏʶjavascriptµÄObject¹¦ÄÜÓëÐÔÖÊ

jsÖеÄÈκζÔÏ󶼼̳ÐObjectº¯ÊýÀ࣬Òò´Ë¶¼Object.prototype°üº¬µÄËùÓз½·¨¡£½ñÌìÎÒ¾ÍÀ´ÌÖÂÛÏÂÕâЩ×î»ù±¾µÄ·½·¨ºÍÔõÑùÈ¥ÖØд¡£
Ê×ÏÈ£¬°üº¬7¸ö×î»ù±¾µÄº¯Êý£º
function A()
{
var obj = {};
obj.constructor //Objectº¯Êý
obj.hasOwnProperty //ÅжϲÎÊýÊÇ·ñÊÇobj¶ÔÏóµÄ±¾µØ·ÇprotorypeÊôÐÔ
obj.isPrototype ......

JavaScriptÌØÐÔ×ܽá

1.js²»Ö§³ÖÖØÔØ£¬ÒòΪjsÀïµÄº¯Êý¶¼ÊÇÒ»¸ö¶ÔÏó£¬jsÀïÓиöÒþº¬¶ÔÏóFunction,ËùÓеÄjsº¯Êý¶¼ÊÇÒ»¸öFunctionÀàÐ͵ĶÔÏó¡£±ÈÈ磺
Java´úÂë
function add(number)   
{   
   alert("hello");   
}  
function add(number)
{
alert("hello");
}
µÈ¼ÛÓ ......

Ò»¸ö¼òµ¥ºáÏòjavascriptÈÕÆڿؼþ

<!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>
  <title> new document </title>
  <meta name="generator" content="edit ......

javascriptʼþÁбí


javascriptʼþÁбí½â˵
ʼþ
ä¯ÀÀÆ÷Ö§³Ö
½â˵
Ò»°ãʼþ
onclick
IE3¡¢N2
Êó±êµã»÷ʱ´¥·¢´Ëʼþ
ondblclick
IE4¡¢N4
Êó±êË«»÷ʱ´¥·¢´Ëʼþ
onmousedown
IE4¡¢N4
°´ÏÂÊó±êʱ´¥·¢´Ëʼþ
onmouseup
IE4¡¢N4
Êó±ê°´ÏºóËÉ¿ªÊó±êʱ´¥·¢´Ëʼþ
onmouseover
IE3¡¢N2
µ±Êó±êÒƶ¯µ½Ä³¶ÔÏó·¶Î§µÄÉÏ·½Ê±´¥·¢´Ëʼ ......

JavaScriptÖÐescapeº¯Êý

JavaScriptÖÐescape() º¯Êý¿É¶Ô×Ö·û´®½øÐбàÂ룬ÕâÑù¾Í¿ÉÒÔÔÚËùÓеļÆËã»úÉ϶ÁÈ¡¸Ã×Ö·û´®¡£Ê¹Ó÷½·¨£º
escape(charString)
charstringÊDZØÑ¡ÏҪ±»×ªÒå»ò±àÂëµÄ×Ö·û´®¡£
escape ·½·¨·µ»ØÒ»¸ö°üº¬ÁË charstring ÄÚÈݵÄ×Ö·û´®Öµ£¨ Unicode ¸ñʽ£©¡£ËùÓпոñ¡¢±êµã¡¢ÖØÒô·ûºÅÒÔ¼°ÆäËû·Ç ASCII ×Ö·û¶¼Óà %xx ±àÂë´úÌ棬ÆäÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ