javascript 的应用问题?(老大们帮忙啊,急)

juwairei juwairei 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
用javascript如何实现下面vb代码实现的功能?
<script language="vbscript">

dim lcountmx_fj
lcountmx_fj = 0
function dodelfj(l)
tabfj.deleteRow document.getElementById("trfj" & l).rowindex
end function
function baddfj()
lcountmx_fj = lcountmx_fj+1
dim oRow,oCell,ii
dim sss
set oRow=tabfj.insertRow
orow.id="trfj" & lcountmx_fj
if lcountmx mod(2)=0 then
orow.classname="listrow1"
else
orow.classname="listrow1_1"
end if
'附件说明
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.width="10"
sss = "<nobr>附件说明</nobr>"
ocell.innerhtml= sss
'附件说明内容
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.width="50%"
sss="<input type=text class=input id=fjbt" & lcountmx_fj & " name=fjbt" & lcountmx_fj & " value="""" style='width:100%'>"
ocell.innerhtml= sss
'附件上传
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.width="200"
sss="<input type=file class=input id=fjwj" & lcountmx_fj & " name=fjwj" & lcountmx_fj & " value="""" style='width:100%'>"
ocell.innerhtml= sss
set ocell=orow.insertcell
ocell.classname="ListCellRow"
ocell.innerhtml="<img src='../../../image/delete.gif' alt='删除' onclick='vbscript:dodelfj(" & lcountmx_fj &")' style='cursor:hand'>"
end function
</script>
...全文
评论 8
收藏 已收藏
分享
返回顶部
juwairei
Web 开发 81,108 成员 341,721 内容