<
script
>
function del(obj){
obj.parentNode.removeChild(obj);
}
</
script
>
<
span
>
<
input
type
=
"hidden"
name
=
"key"
value
=
"test"
/>测试
<
a
href
=
'javascript:void(0);'
onclick
=
'del(this.parentNode);'
>X</
a
>
</
span
>
|
JSP页面中移除某个控件(例如:要移除<span></span>这行)
最新推荐文章于 2022-09-29 12:18:23 发布