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¼ÓÔØÒ³ÃæʱָÏòÒ»¸öÃèµã¡£ÒÑÖªÈçºÎͨ¹ýÁ´½Ó×ö³ÉÃèµãµÄ£¬¿ÉÊÇÏëÈÃÒ³Ãæ¼ÓÔØʱֱ½ÓÖ¸Ïò²»ÐèÒªµã»÷Á´½Ó¡£
1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &quo ......
ÎÒÏëÎÊÒ»ÏÂÈçºÎÓÃjavascript¶¯Ì¬ÊµÏÖÏñÎÒÃÇÕâ¸öÍøÕ¾×ó±ßµÄĿ¼£¬Ð»À²£¡
??
ºÇºÇ£¡Ð»Ð»°¡£¡
¶¥Ò»ÏÂ
ÄãÃÇÊÇʲôÍøÕ¾°¡£¬ÒªÊǺǫ́ÊÇjavaÖ±½Ójsp£¬Èç¹ûºǫ́ÊÇc£¬ÄǾÍÓÃcgiÉú³Éxml£¬js¶¯Ì¬È¥¶ÁxmlµÄÊý¾Ý
Ó ......
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="shop.ascx.cs" Inherits="DesktopModules_Temp_shop" %>
<html>
<head>
<meta http ......
ÎÒÏëÎÊÒ»ÏÂÈçºÎÔÚ»ðºüÖйرգ¬·Ç½Å±¾´ò¿ªµÄÒ³Ã棬ºÃÏñwindow.close()²»¹ÜÓÃO(¡É_¡É)O~£¬
°Ù¶Èһϣ¬×Ô¼ºÊÔÊÔ
<script language="javascript" type="text/javascript">
& ......