javascriptÖеıհüÑ»·±äÁ¿Ö»ÄÜÈ¡×îºóÒ»¸öÖµÎÊÌâ
ÍøÉÏÃæËµjavascript±Õ°üÓÐÁ½µãÐèҪעÒ⣺
1. ±Õ°üÖеĻ·¾³±äÁ¿Èç¹ûÊÇÔÚÑ»·ÖУ¬ÄÇôʹÓñհü±äÁ¿µÄʱºòÊÇÑ»·½áÊøºóµÄÖµ
2. ±Õ°ü»·¾³±äÁ¿¿ÉÒÔ¶¨ÒåÔÚ·½·¨ºó£¬²»Ó°ÏìʹÓÃ
µÚ1µãÊÇ˵±Õ°üÀï»·¾³±äÁ¿Èç¹ûÊÇÔÚÑ»·ÖУ¬ÄÇÖ»ÄÜȡѻ·½áÊøºóµÄÖµ
Õâ¸öÎÊÌâ¿ÉÒÔÓÃevalº¯Êý¼òµ¥½â¾ö£¬ÔÚÑ»·ÖÐÓÃevalÖ´Ðбհüº¯ÊýÓï¾ä¾ÍûÎÊÌâÀ²£¬Ð§ÂÊ·½Ãæ¿´´ó¼ÒʹÓÃÇé¾°°É£¬Ð¡·¶Î§Ó¦¸ÃÊÇûÎÊÌâµÄ
Ïà¹ØÎĵµ£º
/************** javascript table²Ù×÷Àà***************
* ½öÊʺÏIE6
****µ÷ÓÃʾÀý*****************************************
*
* var table=new TableOption("tb");
*
* var table=new TableOptions("tb",{hoverColor:#aabbcc,hover:false});
*
*****************************************************/
var $= ......
ÕýÔò
<script>
function checkvalue(){
if(document.Form.content.value.replace(/\s/g,"")=="")
{
alert("ÄÚÈݲ»ÄÜΪ¿Õ!");
document.addForm.content.focus();
return false;
}
document.addForm.submit();
return ......
»ù±¾ÉÏÿ¸ö¿â¶¼ÓÐÕâ¶«Î÷£¬ÒòΪÈç¹ûÒª¶ÔÒ³ÃæÉϵÄÔªËØ½øÐвÙ×÷£¬ÎÒÃDZØÐëµÈµ½Ò³Ãæ¼ÓÔØÁËÕâ¸öÔªËØ²ÅÐУ¬·ñÔò»á±¨´í£¬µ«ÊÇÎÒÃǺÜÄÜÅж¨Ä³¸öÔªËØÊÇ·ñÒѼÓÔØ£¬µ«ÎÒÃÇ¿ÉÒÔÅж¨Ò³ÃæÊÇ·ñ¼ÓÔØ£¬Õâ¾ÍÊÇÎÒÃǾ³£°Ñ´úÂë·Åµ½window.onload = function(){}Ö®ÖеÄÔµÓÉ¡£µ«window.onloadʼþÊÇ´ýµ½Ò³ÃæÉϵÄËùÓÐ×ÊÔ´±»¼ÓÔØ²Å¼¤»î£¬Èç¹ûÒ³ÃæÉÏÓ ......
  ......
document Îĵ²¶ÔÏó - JavaScript½Å±¾ÓïÑÔÃèÊö
---------------------------------------------------------------------
×¢:Ò³ÃæÉÏÔªËØnameÊôÐÔºÍJavaScriptÒýÓõÄÃû³Æ±ØÐëÒ»Ö°üÀ¨´óСд
·ñÔò»áÌáʾÄãÒ»¸ö´íÎóÐÅÏ¢ "ÒýÓõÄÔªËØÎª¿Õ»òÕß²»ÊǶÔÏó"
------------------------------------------------------ ......