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

JAVASCRIPTµÄinstanceof·ÖÎö

 function class1(){
alert("class1");
};
function class2(){
alert("class2");
}
class2.prototype=class1.prototype;
var obj=new class2();
alert(obj instanceof class1);
alert(obj instanceof class2);
alert(class2.prototype.constructor);
class2.prototype.constructor();


Ïà¹ØÎĵµ£º

ת£ºÎò͸JavaScript

żµÃ±¾ÄÚÈÝ£¬¸Ð¾õдµÃºÜÊDz»´í£¬ÌØ×ªÀ´Óë´ó¼Ò·ÖÏí
Èí¼þ˼Ï뾫ƷϵÁÐ
Îò͸ JavaScript
Ô­Öø£ºÀîÕ½(leadzen)
http://www.cndev.org
http://www.cnblogs.com/leadzen
1
Òý×Ó
±à³ÌÊÀ½çÀïÖ»´æÔÚÁ½ÖÖ»ù±¾ÔªËØ£¬Ò»¸öÊÇÊý¾Ý£¬Ò»¸öÊÇ´úÂë¡£±à³ÌÊÀ½ç¾ÍÊÇÔÚÊý¾ÝºÍ´úÂëǧ˿ÍòÂÆµÄ¾À²øÖгÊÏÖ³öÎÞÏÞµÄÉú»úºÍ»î
Á¦¡£
Êý¾ÝÌìÉú¾ÍÊ ......

РAPI ѰÇóÈà JavaScript ²Ù×÷±¾µØÎļþ

ÈÕǰ£¬Mozilla µÄ Arun Ranganathan Ïò W3C Ìá½»ÁËÒ»¸ö²Ý°¸£¬Ö¼ÔÚÍÆ³öÒ»¸ö JavaScript API£¬ÈÃ
JavaScript ½Å±¾Ö±½Ó²Ù×÷±¾µØÎļþ£¬Firefox µÄ×îÐÂä¯ÀÀÆ÷°æ±¾ÖÐÒѾ­¶Ô¸Ã API ÌṩÁË´óÁ¿µÄÖ§³Ö£¬²»¹ý³öÓÚ°²È«¿¼ÂÇ£¬¸ÃAPI
½«Ö»¶Ô±¾µØÎļþÌṩÓÐÏ޵ķÃÎÊ¡£
¸Ã API ÒýÈëÁËÒ»¸ö FileReader ¶ÔÏ󣬿ÉÒÔÒì²½¼ÓÔØ±¾µØÎļþϵͳÖÐµÄ ......

JavaScript±í¸ñÅÅÐò

 ´ËÀý×ÓÊÇjavascript¸ß¼¶³ÌÐòÉè¼ÆÀïµÄ
·Å³öÀ´Ðı¸ÒÔºóʹÓá£ÉÏ´úÂë¡£
<html>
<head>
<title>Table Sort Example</title>
<mce:script type="text/javascript"><!--

function convert(sValue, sDataType) {
swi ......

JavaScriptµ÷ÓÃswfÖк¯Êý

The ExternalInterface API
        ֮ǰÎÒÃÇʹÓÃflashµ÷ÓÃjavascriptº¯Êý£¬Ò»°ãʹÓÃÕâÑùµÄ·½·¨£º
´úÂë:
getURL(¡°javascript:alert(¡®hello zhang-chao.com¡¯);¡±); //×¢Òâ×Ö·û´® Ë«ÒýºÅ ÀïÃæ¼Óµ¥ÒýºÅ
µ«ÊÇʹÓÃÕâÖÖ·½·¨´Óflashµ÷ÓÃjavascriptº¯ÊýÈÔ´æÔÚÐí¶àÀ§ÄÑ ......

×Ô¼º¶¯ÊÖÓÃjavascriptдxpath

       ×Ô¼ºÒÔǰд¹ýһƪÎÄÕ£¬ÊǹØÓÚdomÏÂxpathµÄ±àд£¬²»¹ýÄÇÊǽèÖúä¯ÀÀÆ÷±¾ÉíµÄÌØÐÔ£¬Õâ´ÎÎÒÏëÓÃjavascripºÍÕýÔò±í´ïʽ´òÔì×Ô¼ºµÄxpath£¬²»¶à啰࣬¿´´úÂ룺
  
function xpath(n,m){
 if(/\]$/i.test(m)){
  var t1=[]
  var reg=/ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ