JavascriptÖжÔÏóµÄ»ù±¾Ó÷¨
ÉùÃ÷£º
function person(name, country)
{
this.name = name;
this.country = country;
}
ʵÀý»¯¶ÔÏó£º
var theauthor = new person('Daniel', 'U.S.A.');
ÒýÓãº
function sayHello(objPerson)
{
return "Hello " + objPerson.name;
}
document.write( sayHello(theauthor) );
Ïà¹ØÎĵµ£º
ÀûÓýű¾·â×°£¬·½±ãʵÏÖÍøÕ¾Ðü¸¡¹ã¸æ
ÏÂÃæÊÇJS½Å±¾(floatdiv.js)
/*======================================================================
¸¡¶¯¿éÖ§³Ö½Å±¾
DESIGN BY : Åí¹ú»Ô
DATE: 2004-02-26
SITE: http://kacarton.yeah.net/
BLOG: http://blog.csdn.net/nhconch
EMAIL: kacarton@sohu.com
ÎÄÕÂÎ ......
×î¾Ê¹ÓÃjquery.form.js×öÁËÒ»¸ö²éѯҳÃ棬ÔÚËÑË÷³ö½á¹ûºó£¬ÐèÒª·ÖÒ³£¬ÔÚ·ÖÒ³Öеã»÷ÏÂÒ»Ò³Ò³²ÅÓÃajaxÌá½»£¬ÔÚÌύûÓзµ»Ø½á¹ûÊÇÐèÒª¸ø¿Í»§ÏÔʾһÏÂÕýÔÚ¼ÓÔØÊý¾Ý£¬¹ÊÓÃjquery.1.3.2.js×öÁËÒ»¸öÐÅÏ¢ÌáʾµÄ½Å±¾¡£
´úÂëÈçÏ£º
<div id="loadProcess" style="z-index:1;visibility:hidden;width:300px;position:absolute;t ......
ÀûÓÃjsÀ´¶¯Ì¬´´½¨±í¸ñÓÐÁ½ÖÖ¸ñʽ£¬appendChild()ºÍinsertRow¡¢insertCell()¡£Á½ÖÖ·½Ê½Æäʵ²î²»¶à£¬µ«µÚÒ»ÖÖÓпÉÄÜÔÚIEÉÏÓÐÎÊÌ⣬ËùÒÔÍƼö´ó¼ÒʹÓõڶþÖÖÁË£¬Ö±½Ó˵°É¡£
1¡¢inserRow()ºÍinsertCell()º¯Êý
insertRow()º¯Êý¿ÉÒÔ´ø²ÎÊý£¬ÐÎʽÈçÏ£º
insertRow(index)£ºindex´Ó0¿ªÊ¼
Õâ¸öº¯Êý½«ÐÂÐÐÌí¼Óµ½indexµÄÄÇÒ»ÐÐÇ ......
º¯ÊýÊǽøÐÐÄ£¿é»¯³ÌÐòÉè¼ÆµÄ»ù´¡£¬±àд¸´ÔÓµÄAjaxÓ¦ÓóÌÐò£¬±ØÐë¶Ôº¯ÊýÓиüÉîÈëµÄÁ˽⡣
¡¡¡¡javascriptÖеĺ¯Êý²»Í¬ÓÚÆäËûµÄÓïÑÔ£¬Ã¿¸öº¯Êý¶¼ÊÇ×÷Ϊһ¸ö¶ÔÏó±»Î¬»¤ºÍÔËÐеġ£Í¨¹ýº¯Êý¶ÔÏóµÄÐÔÖÊ£¬¿ÉÒԺܷ½±ãµÄ½«Ò»¸öº¯Êý¸³Öµ¸øÒ»¸ö±äÁ¿»òÕß½«º¯Êý×÷Ϊ²ÎÊý´«µÝ¡£ÔÚ¼ÌÐø½²Êö֮ǰ£¬ÏÈ¿´Ò»Ïº¯ÊýµÄʹÓÃÓï·¨£º
ÒÔÏÂÊÇÒýÓÃƬ¶Î ......
JavaScriptÖÐÓÐÒÔϳ£ÓõÄʼþ£¬ËüÃÇ¿ÉÒÔͨ¹ýJavaScriptÖеÄ×Ô¶¨Ò庯ÊýÀ´ÏìÓ¦
1.onclickʼþ
µ¥»÷ʼþ£¬¼´Óû§µ¥»÷Êó±ê°´Å¥Ê±·¢ÉúµÄʼþ£¬¿ÉÒÔÔÚÒÔÏ»ù±¾¶ÔÏóÖвúÉú¸Ãʼþ£ºbutton,radio,checkbox,submit,reset
2.onchangeʼþ
¸Ä±äʼþ£¬Í¨³£·¢ÉúÔÚÒÔÏÂÁ½ÖÖÇé¿ö
& ......