亚洲免费在线-亚洲免费在线播放-亚洲免费在线观看-亚洲免费在线观看视频-亚洲免费在线看-亚洲免费在线视频

工作中遇到的問題及解決辦法15

系統 1692 0

?

< table?width = " 100% " ?border = " 0 " ?cellspacing = " 0 " ?cellpadding = " 0 " >
??????????????
< tr >
????????????????
< td?height = " 25 " ?bgcolor = " #f7f7f7 " >
????????????????
< table?id = " t1 " ?width = " 100% " ?height = " 25 " ?border = " 0 " ?cellpadding = " 0 " ?cellspacing = " 0 " ? class = " font_14 " >
????????????????????
< tr >
??????????????????????
< td?width = " 30 " >& nbsp; </ td >
??????????????????????
< td?width = " 130 " > 文件地點: </ td >
??????????????????????
< td ><!-- ? < input?type = " text " ?name = " address " ?style = " width:40%? " />
???????????????????????保管人:
< input?type = " text " ?name = " vindicator " ?id = " vindicator " ?size = " 10 " />& nbsp; & nbsp;
???????????????????????
< input?type = " hidden " ?name = " vuserId " ?id = " vuserId " />
???????????????????????
< input?type = " button " ?name = " button " ?value = " ?選擇? " ?onclick = " return?showModalDpReturn('<%=request.getContextPath()%>/infpm/userMiddle.jsp?check=one','600','600',vindicator,vuserId); " ? class = " input " />-->
???????????????????????
< input?type = " button " ?name = " buttonadd " ?value = " 增加物理分發 " ? class = " input " ?onclick = " addvindicator() " ? />
???????????????????????
<!-- ? < input?type = " button " ?name = " buttondel " ?value = " 刪除物理分發 " ? class = " input " ?onclick = " deletevindicator() " ? />-->
??????????????????????
</ td >
????????????????????
</ tr >
????????????????
</ table ></ td >
??????????????
</ tr >
??????????????
< tr >
????????????????
< td?height = " 1 " ?bgcolor = " #b5b5b5 " ></ td >
??????????????
</ tr >
????????????
</ table >

07年7月9日

???????? 這是前幾天的東西了,現在整理出來:

(1)工作筆記中前面提到了動態的添加javascript的東西,現在要循環把動態添加的東西取出來,這是方法:

?

< script?language = " javascript " >
?????
?????var?total?
= ? 0 ;
????????????
// ?添加文件地址方法
????????????function?addvindicatorupdate(value1,value2,value3) ... {
???????????????
????????????????
// alert(total);????????????
????????????????var?index? = ?t1.rows.length;
????????????????
// alert(index);
????????????????var?oRow1 = t1.insertRow(index);????????
????????????????
????????????????var?aRows
= t1.rows;
????????????????var?aCells1
= oRow1.cells;
????????????????
????????????????var?oCell1_1
= aRows(oRow1.rowIndex).insertCell(aCells1.length);
????????????????
// oCell1_1.setAttribute("align","center");
????????????????var?oCell1_2 = aRows(oRow1.rowIndex).insertCell(aCells1.length);
????????????????
// oCell1_2.setAttribute("align","center");
????????????????var?oCell1_3 = aRows(oRow1.rowIndex).insertCell(aCells1.length);
????????????????
// oCell1_3.setAttribute("align","center");
????????????????
????????????????var?address?
= ? " address " ? + ?total;
????????????????var?userId?
= ? " userId " ? + ?total;
????????????????var?vindicator?
= ? " vindicator " + total;
????????????????var??userName?
= " userName " + total;
????????????????total?
+= ? 1 ;
????????????????
// alert(total)
????????????????oCell1_1.innerHTML = '' ;
????????????????oCell1_2.innerHTML
= ' 文件地點: ' ;
????????????????oCell1_3.innerHTML
= ' <input?type="text"?size="30"?id=" ' ? + ?address? + ? ' "?name="address"?maxlenth="300"?value=" ' ? + ?value1? + ? ' "?class="ddinput"> '
?????????????????????????????????
+ ? ' <input?type="hidden"?id=" ' ? + ?userId? + ? ' "?name="vuserId"?value=" ' ? + ?value2? + ? ' "> ' + ' &nbsp; ' + ' 保管人: '
?????????????????????????????????
+ ' <input?type="text"?name="vindicator"?id=" ' + vindicator + ' "?size="10"?value=" ' ? + ?value3? + ? ' "> '
?????????????????????????????????
+ ? ' <input?type="button"?name="button1"?value="?選擇?"?size="20"?class="input"?onclick="return?showModalDpReturn('<%=request.getContextPath()%>/infpm/userMiddle.jsp?check=one','600','600', ' ? + ?vindicator? + ? ' , ' ? + ?userId? + ? ' )"/> ' ;
????????????????????????????????
?????????????????????
????????????}
?
????????????
????????????
// ?添加文件地址方法
????????????function?addvindicator() ... {
????????????????
// alert(total);????????????
????????????????var?index? = ?t1.rows.length;
????????????????
// alert(index);
????????????????var?oRow1 = t1.insertRow(index);????????
????????????????
????????????????var?aRows
= t1.rows;
????????????????var?aCells1
= oRow1.cells;
????????????????
????????????????var?oCell1_1
= aRows(oRow1.rowIndex).insertCell(aCells1.length);
????????????????
// oCell1_1.setAttribute("align","center");
????????????????var?oCell1_2 = aRows(oRow1.rowIndex).insertCell(aCells1.length);
????????????????
// oCell1_2.setAttribute("align","center");
????????????????var?oCell1_3 = aRows(oRow1.rowIndex).insertCell(aCells1.length);
????????????????
// oCell1_3.setAttribute("align","center");
????????????????
????????????????var?address?
= ? " address " ? + ?total;
????????????????var?userId?
= ? " userId " ? + ?total;
????????????????var?vindicator?
= ? " vindicator " + total;
????????????????var??userName?
= " userName " + total;
????????????????total?
+= ? 1 ;
????????????????
// alert(total)
????????????????oCell1_1.innerHTML = '' ;
????????????????oCell1_2.innerHTML
= ' 文件地點: ' ;
????????????????oCell1_3.innerHTML
= ' <input?type="text"?size="30"?id=" ' ? + ?address? + ? ' "?name="address"?maxlenth="300"?class="ddinput"> '
????????????????????????????????
?????????????????????????????????
+ ? ' <input?type="hidden"?id=" ' ? + ?userId? + ? ' "?name="vuserId"> ' + ' &nbsp; ' + ' 保管人: '
?????????????????????????????????
+ ' <input?type="text"?name="vindicator"?id=" ' + vindicator + ' "?size="10"> '
?????????????????????????????????
+ ? ' <input?type="button"?name="button1"?value="?選擇?"?size="20"?class="input"?onclick="return?showModalDpReturn('<%=request.getContextPath()%>/infpm/userMiddle.jsp?check=one','600','600', ' ? + ?vindicator? + ? ' , ' ? + ?userId? + ? ' )"/> ' ;
????????????????????????????????
?????????????????????
????????????}
?
?????
?????
?????
// 刪除收件人
?????function?deletevindicator() ... {
???????????var?index?
= ?t1.rows.length;
???????????
if (index > 1 ) ... {????????????
?????t1.deleteRow(index
- 1 );
????
// t1.deleteRow(index-2);
????
// t1.deleteRow(index-3);
?????total? = ?total? - ? 1 ;
????}

????
// alert(total);
????????????}

</ script >

<%
???????String?value1
= "" ;
???????String?value2
= "" ;
???????String?value3
= "" ;
??
if (listaddress? != ? null )
??
... {
?????
for ( int ?i = 0 ;i < listaddress.size();i ++ )
?????
... {
?????????TfileAddress?tfileAddress
= (TfileAddress)listaddress.get(i);
?????????value2?
= ?tfileAddress.getTsysUserInf().getUserId().toString();
?????????value1?
= ?tfileAddress.getAddress();
?????????value3?
= ?tfileAddress.getTsysUserInf().getUserName().toString();
???????????
%>
????
< script >
??????????addvindicatorupdate(
' <%=value1%> ' , ' <%=value2%> ' , ' <%=value3%> ' );
????
</ script > ????????
<% ?????
????}
?

工作中遇到的問題及解決辦法15


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 亚洲一区二区三区久久精品 | 欧美一级高清片欧美国产欧美 | 精品国产免费久久久久久 | 在线欧美精品一区二区三区 | 台湾亚洲精品一区二区tv | 欧美日韩国产一区二区三区欧 | 在线视频亚洲 | 久久精品久久精品久久 | 在线播放免费一级毛片欧美 | 国产亚洲美女精品久久久2020 | 欧美一区日韩一区中文字幕页 | 99re热这里只有精品视频 | 日本精品在线观看 | a大片久久爱一级 | 成人毛片18女人毛片免费96 | 亚洲另类 专区 欧美 制服 | 久久久精品影院 | 精品国产乱码久久久久久浪潮 | 久久久精品免费视频 | 日本高清不卡视频 | 日本免费一区二区三区看片 | 亚洲人妖女同在线播放 | 四虎永久在线观看免费网站网址 | 久亚洲精品不子伦一区 | 色综合网亚洲精品久久久 | 精品久久久久久影院免费 | 国产成人乱码一区二区三区在线 | 亚洲午夜久久久久国产 | 亚洲国产精品热久久2022 | 久久99精品久久久久久噜噜 | 亚洲综合精品香蕉久久网97 | 亚洲国产精品高清在线一区 | 亚洲欧美在线中文字幕不卡 | 91久久免费视频 | 夭天干夜夜怕 | 亚洲精品中文字幕字幕 | 久热这里只有精品视频6 | 91精品国产色综合久久不 | 日日私人影院 | 一级在线免费视频 | 精品一区二区三区在线观看l |