È¥³ýjavascriptÊý×éÖеÄÏàͬԪËØ
<script type="text/javascript">
function uniqueArr(arr)
{
arr = arr || [];
var a = {};
for (var i=0; i<arr.length; i++)
{
var v = arr[i];
if (typeof(a[v]) == 'undefined')
{
a[v] = 1;
}
}
arr.length = 0;
for (var i in a )
{
arr[arr.length] = i;
}
return arr;
}
var ss=new Array();
ss.push("aaaa");
ss.push("bbbb");
ss.push("bbb1b");
ss.push("bbb2b");
if (ss.length == uniqueArr(ss).length){
alert("no reapeat");
}
else{
alert("reapeat!!!");
}
//alert(ss.length);
//alert(uniqueArr(ss).length);
</script>
Ïà¹ØÎĵµ£º
keypressÖ÷ÒªÓÃÀ´½ÓÊÕ×Öĸ¡¢Êý×ÖµÈANSI×Ö·û£¬¶ø keydownºÍ keyupʼþ¹ý³Ì¿ÉÒÔ´¦ÀíÈκβ»±» keypressʶ±ðµÄ»÷¼ü£¬ÖîÈ磺¹¦Äܼü£¨F1-F12£©¡¢±à¼¼ü¡¢¶¨Î»¼üÒÔ¼°ÈκÎÕâЩ¼üºÍ¼üÅÌ»»µµ¼üµÄ×éºÏµÈ¡£Óë
keydownºÍ keyupʼþ²»Í¬µÄÊÇ£¬keypress²»ÏÔʾ¼üÅ̵ÄÎïÀí״̬£¨SHIFT¼ü£©£¬¶øÖ»ÊÇ´«µÝÒ»¸ö×Ö·û¡£keypress½«Ã¿¸ö×Ö·ûµÄ´ó¡¢Ð¡Ð ......
<OBJECT id="ocxÎļþÃû" codeBase="ocx¿Ø¼þµÄÏà¶ÔλÖÃ#version=1,0,0,0"
data="data:application/xoleobject;base64,mRHW/Ifh3UqI5ZryOEhtERAHAAD/KgAAYSQAAA=="
classid="CLSID:ͨ¹ýMCPÕÒµ½µÄclassid" VIEWASTEXT>
</OBJECT>
Javascriptµ÷ÓÃOCX¿Ø¼þ
ʲôÊÇocx¿Ø¼þ£¿
¶ÔÏóÁ´½ÓºÍǶÈëÓû§¿Ø¼þ ......
CSSÓï·¨ (²»Çø·Ö´óСд) ¡¡¡¡JavaScriptÓï·¨ (Çø·Ö´óСд)
border ¡¡¡¡ border
border-bottom ¡¡¡¡ &nbs ......
ʹÓÃJavaScript¿ÉÒÔ½«Óû§µ¼ÏòÒ»¸öÌض¨µÄµØÖ·£¬²¢ÇÒ²»Í¬µÄ·½·¨»á¶Ôä¯ÀÀÆ÷µÄÀúÊ·¼Ç¼Óв»Í¬µÄÓ°Ïì¡£
ʵÀýJavaScript´úÂë
±¾Àý¶¨ÒåÁËÁ½¸öJavaScriptº¯Êý£¬¹¦Äܶ¼ÊÇÖض¨Ïòµ½Ê×Ò³£¬µ«ÊǵÚÒ»¸öº¯Êý²ÉÓõÄÊÇÖ±½Ó¸øhref¸³ÖµµÄ·½Ê½£¬µÚ¶þ¸öʹÓõÄÊÇreplace·½·¨¡£¾ßÌåÇë¿´ÏÂÃæµÄ´úÂ룺
<script type="text/javascript">
f ......
ECMA ±¾ÖÜÍƳöÁË JavaScript 5£¨PDF£©£¬³ýÁËÔöÇ¿»ù´¡º¯Êý¿âÖ®Í⣬»¹ÒýÈëÁËÑϸñÔËÐÐʱģʽ£¨Strict Runtime Modes£©ÒÔ±ÜÃâ´úÂëÖеij£¼û´íÎó¡£ECMA ECMAScript 4 µÄŬÁ¦ÔøÒÔʧ°Ü¸æÖÕ£¬ECMA ÉõÖÁûÓз¢²¼ ECMAScript 4 ϸÔò¡£
¹ýÈ¥¼¸Ä꣬ÖîÈç Nitro£¬TraceMonkey Ò»ÀàµÄ JavaScript ÒýÇ淢չѸÃÍ£¬JavaScript ³ÉÁË Google Wav ......