¹ØÓÚjavascriptµÄÖØÔØ - Web ¿ª·¢ / JavaScript
ÇëÎÊÕâÑùµÄ»°×ÓÀ಻ÊǸù¾Ý²ÎÊýÁбíµÄ²»Í¬ÖØÔØÁËa·½·¨Â𣿣¿
µ«ÊÇΪʲôÊä³öÊÇChild Method count undefined ÄØ£¿£¿
²»ÊÇÓ¦¸Ã¸ù¾Ý²ÎÊýÁбíµÄ²»Í¬µ÷ÓÃÁË´Ó¸¸Àà¼Ì³ÐµÄa·½·¨£¬Êä³öParent Method countÂ𣿣¿
ÇëÖ¸½Ì£¡~~
function Parent() {
this.a=function(){
alert("Parent Method count");
}}
Children.prototype = new Parent();
function Children() {
this.a = function(cc) {
alert("Child Method count" + cc);
}
}
var c = new Children();
c.a();
JavaScriptÏÂûÓÐÖØÔØ£¬ÕâÑùдÊÇ°ÑParentµÄº¯Êý¸²¸ÇÁË¡£
ÒªÖØÔØÐèÒª×ÔÒÑ×öЩ´¦Àí```
ÒòΪÄãдµÄ×ÓÀàa()·½·¨¸²¸Ç¸¸ÀàµÄa()·½·¨£¬
ֻҪעÊ͵ô×ÓÀàa()·½·¨¾Í¿ÉÒÔÁË¡£
this.a=function(){
alert("Parent Method count");
}}
Children.prototype = new Parent();
function Children() {
/*
this.a = function(cc) {
alert("Child Method count" + cc);
}
*/
}
var c = new Children();
c.a();
function Parent() {
this.a=function(){
alert("Parent Method");
}}
Children.prototype = new Parent();
function Children() {
this.b = funct
Ïà¹ØÎÊ´ð£º
Èý¸öÊýx,y,z ±È´óС..
var x,y,z,t;
if (x>y)
{t=x;x=y;y=t;} //½»»»x,yµÄÖµ
if(x>z)
{t=z;z=x;x=t;}//½»»»x,zµÄÖµ
if(y>z)
{t=y;y=z;z=t;}//½»»»z,yµÄÖµ
ÕâÊÇ ......
ÒÔÏÂÊÇÒ»¶ÎJavsScript½Å±¾£¬µ«ÔËÐÐʱ×Ü»á²úÉú ¡°Microsoft JScript ÔËÐÐʱ´íÎó: 'null' Ϊ¿Õ»ò²»ÊǶÔÏó¡±Òì³££¬´ó¼Ò°ï¿´Ò»Ï¡£
<form id="form1" runat="server">
< ......
×î½ü ʹÓà js, ¾³£²»ÄÜÉÏÍø, Ï£ÍûÄÄλ´ïÈË ÄÜÌṩһ¸ö
±È½ÏÍêÕûµÄ jsÀëÏßÎĵµ,ÐÂÒ»µã¶ù,ÍêÕûµã¶ùµÄ±È½ÏºÃ,±ÈÈçÉæ¼° dom ÕâЩ
ÇëÖ¸µãÒ»¶þ.
Íò·Ö¸Ðл°¡.
http://download.csdn.net/source/566130
......
ÎÒÏëÎÊÒ»ÏÂÈçºÎÔÚ»ðºüÖйرգ¬·Ç½Å±¾´ò¿ªµÄÒ³Ã棬ºÃÏñwindow.close()²»¹ÜÓÃO(¡É_¡É)O~£¬
°Ù¶Èһϣ¬×Ô¼ºÊÔÊÔ
<script language="javascript" type="text/javascript">
& ......
ÎÒѧµÄÊÇC++,¶ÔÓÚJava²»ÊǺÜÁ˽⡣×î½ü¿´ÁËJava·½ÃæµÄÊ飬¶ÔÓÚһЩ¸ÅÄîÓÐÁ˳õ²½Á˽⣬ϣÍû´ó¼ÒºÍÎÒÁÄÁÄ£¬Ì¸Ì¸Java £¬JSP JavaScriptÕ⼸¸ö¸ÅÄî¡£
1. javascriptºÍCSS, HTMLÒ»Æ𽫻ᷢË͸øä¯ÀÀÆ÷½øÐÐÖ´ÐУ¬×îÖÕ½«Ò³Ã ......