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

javascriptÖеÄthis - Web ¿ª·¢ / JavaScript

<script type="text/javascript">
  var person = {
  name:"Kevin Yang",
  sayHi:function(){
  alert("ÄãºÃ£¬ÎÒÊÇ"+this.name);
  }
  }
  setTimeout(person.sayHi,2000);
</script>
ÔõôÏÔʾ²»³öÀ´£¿

this Ö¸ µ÷ÓÃÕߵĶÔÏó

setTimeout(person.sayHi,2000);
»»³É
person.sayHi();

¾ÍÄÜÕýÈ·ÁË¡£

ÄãÕâÀï this Ö¸µÄÊÇ window ¶ÔÏó

»òÕß 

<script type="text/javascript">
  var person = {
  name:"Kevin Yang",
  sayHi:function(){
  alert("ÄãºÃ£¬ÎÒÊÇ"+person .name);
  }
  }
  setTimeout(person.sayHi,2000);
</script>

Â¥Ö÷ûÓе÷ÓÃÄĸöº¯Êý£¬ËùÒÔûÓÐÏÔʾ

<script type="text/javascript">
  var person = {
  name:"Kevin Yang",
  sayHi:function(){
  alert("ÄãºÃ£¬ÎÒÊÇ"+this.name);
  }
  }
  setTimeout(function(){person.sayHi()},2000);
</script>

JScript code:
var person = {
name:"Kevin Yang",
sayHi:function(){
alert("ÄãºÃ£¬ÎÒÊÇ"+this.name);
}
}
setTimeout(&


Ïà¹ØÎÊ´ð£º

JavascriptÃèµãÎÊÌâ - Web ¿ª·¢ / JavaScript

ÓÃjavascript¼ÓÔØÒ³ÃæʱָÏòÒ»¸öÃèµã¡£ÒÑÖªÈçºÎͨ¹ýÁ´½Ó×ö³ÉÃèµãµÄ£¬¿ÉÊÇÏëÈÃÒ³Ãæ¼ÓÔØʱֱ½ÓÖ¸Ïò²»ÐèÒªµã»÷Á´½Ó¡£
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &quo ......

javascriptʵÏÖÁбíĿ¼ - Web ¿ª·¢ / JavaScript

ÎÒÏëÎÊÒ»ÏÂÈçºÎÓÃjavascript¶¯Ì¬ÊµÏÖÏñÎÒÃÇÕâ¸öÍøÕ¾×ó±ßµÄĿ¼£¬Ð»À²£¡
??


ºÇºÇ£¡Ð»Ð»°¡£¡

¶¥Ò»ÏÂ

ÄãÃÇÊÇʲôÍøÕ¾°¡£¬ÒªÊǺǫ́ÊÇjavaÖ±½Ójsp£¬Èç¹ûºǫ́ÊÇc£¬ÄǾÍÓÃcgiÉú³Éxml£¬js¶¯Ì¬È¥¶ÁxmlµÄÊý¾Ý

Ó ......

»ðºü²»ÄÜÓÃJavaScriptÏÔʾ±í¸ñ

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="shop.ascx.cs" Inherits="DesktopModules_Temp_shop" %>
<html>
<head>
<meta http ......

JavaScript ¹Ø±ÕÒ³Ãæ - Web ¿ª·¢ / JavaScript

ÎÒÏëÎÊÒ»ÏÂÈçºÎÔÚ»ðºüÖйرգ¬·Ç½Å±¾´ò¿ªµÄÒ³Ã棬ºÃÏñwindow.close()²»¹ÜÓÃO(¡É_¡É)O~£¬
°Ù¶Èһϣ¬×Ô¼ºÊÔÊÔ

<script language="javascript" type="text/javascript"> 
& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ