javascript 的应用问题?(老大们帮忙啊,急)
用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>
<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>
...全文
相关推荐
LeetCode-js:用 JavaScript 解决 LeetCode 问题
LeetCode-js 用 JavaScript 解决 LeetCode 问题
javascript的ext综合应用,Ext js 资源大全
一个不用写javascript的ext综合应用-简易java框架和Ext js 资源大全。
js2py:将 JavaScript 转换为 Python
js2py 将 JavaScript 转换为 Python。
fullstack-js:全栈javascript应用
全栈JS 这是一个使用Node,Express,MongoDB,Pug模板,oAuth等的完整堆栈示例应用程序。
todo-js:TODO应用:JavaScript
Webpack入门 Este es proyecto原始应用程序的webpack。 注意: 节点修复: npm install Y建设,记录: npm run build


Web 开发
