¹ØÓÚJavaScript´«²ÎÊýµÄÎÊÌâ - Web ¿ª·¢ / JavaScript
×î½ü¿ª·¢¸öÍøÒ³£¬ÆäΪһ¸öTable£¬¿ÉÒÔ¶¯Ì¬Ôö¼Ó/ɾ³ýÐУ¬¶øÿÔö¼ÓÒ»ÐУ¬¶¼ÓÐÏàÓ¦µÄinputÏÃüÃûΪname0¡¢name1¡¢name2...ÏÖÔÚÏëÔÚij¸öinputµÄ onFocus Öе¯³öÒ»¸öselect¿ò£¬selectºó¶Ô¸Ãinput½øÐи³Öµ£¬ÎÒʵÏֵĴúÂëÈ總Ï£¬¿ÉÏÖÔÚµÄÎÊÌâ¾ÍÊÇ£¬µ±ÎÒÔÚ¸³Öµ·½·¨ÖУ¬´«Èë¸ÃinputµÄÃû×Ö×÷Ϊ²ÎÊýʱ£¬»á±¨´í˵¡°Ã»Óж¨Ò塱£¬Çë¸ßÈËÖ¸µã£¬ÈçÓиüºÃµÄʵÏÖ·½·¨£¬ÒàÇë¸æÖª£¬Ð»Ð»¡£
PS£ºÏëʵÏÖµÄЧ¹ûÆäʵ¾ÍÏñ calendar.js µÄÈÕÆÚÑ¡Ôñ¹¦Äܼ´¿É¡£
ºËÐÄÐУº110 ´ËΪµ¯³ö½çÃæ´«µÝ²ÎÊý
177 µ÷Ó÷½·¨²¢´«µÝ²ÎÊý
194-200 Ö±½Óдselect²âÊÔ´úÂë
<head>
<script src="js/calendar.js"></script>
</head>
<body>
<script>
function delRow()
{
var i = datatable.rows.length - 1;
document.getElementById("len").value = i-2;
datatable.deleteRow(i) ;
}
function addRow(obj)
{
var i = datatable.rows.length - 1;
document.getElementById("len").value = i;
/***********È¡µÚÒ»ÐеÄÖµ****************/
var rdate = document.getElementById("dated0").value;
/************È¡ÖµÍê±Ï******************/
//Ìí¼ÓÒ»ÐÐ
var newTr = datatable.insertRow();
//Ìí¼ÓÁ½ÁÐ
var newTd0 = newTr.insertCell();
var newTd1 = newTr.insertCell();
var newTd2 = newTr.insertCell();
var new
Ïà¹ØÎÊ´ð£º
<%
function getName(num)
......
end function
%>
<script>
var num=1;
var xx=<%=getName(num)%>
</script>
ÈçºÎ²ÅÄÜÔÚjava ......
ÕâÀïÊÇһȺÈÈ°®¡¢²¢ÇÒÔ¸Òâ·ÖÏí֪ʶ¡¢°®ºÃ½»Á÷JavascriptµÄÈË¡£Èç¹ûÄúÕýÔÚѧϰʵ¼ù£¬²¢ÇÒÔ¸·ÖÏíÄãµÄѧϰÐĵúÍѧϰ³É¹û¸ø±ðÈË£¬¿ÉÒÔÉêÇë¼ÓÈëÎÒÃǵÄȺ£º100172168¡£ÄÜÔÙ½øÒ»²¿·ÖÈË
ÒýÓÃ
ÕâÀïÊÇһȺÈÈ°®¡¢²¢ÇÒÔ¸Òâ· ......
´úÂëÈçÏ£º
<table>
<tr>
<td>µÚÒ»ÐÐ
</td>
</tr>
<tr>
<td><a href="javascript:delete()">ɾ³ý</a>
</td>
< ......
Ç뿴϶˽ű¾£¬ÎÒ×öµÄÒ»¸ö½Å±¾¼ì²â±êÌâÊÇ·ñÖظ´µÄ£¬ÈôÖظ´£¬²»ÈÃÆäÌá½»¡£
º¯ÊýÈë¿ÚÊÇcheck£¨£©º¯Êý£¬ÔÚÆäelseÓï¾äÖе÷ÓÃÁËsendRequestTitle();ͨ¹ýsendRequestTitle();
µÄÏìÓ¦º¯ÊýprocessResponseTitl ......
ÍøÉÏÕÒµ½ÒÔÏÂ×ÊÁÏ
activexÀ´²Ù×÷javascriptº¯Êý¡£
ÎÒÃÇÔÚÍøÒ³ÖмÓÈëÒ»¶Îjavascript´úÂ룺
function Test(){
alert("test")
}
ÔÚact ......