更新时间:2023-12-05 18:51:04
你需要做的是(在玩使用DOM时)
- 复制内部< ul>
- 替换外部< ul>使用复制的节点
虽然不要问我如何使用jQuery
如果除了jQuery之外还有其他任何想法所有的方法都告诉。
假设我可以挂钩(在jQuery中会更容易)展开 | 选择 | Wrap | 行号I have the code below, I need to remove the opening UL and LI and the closing LI and UL and just keep the inner UL.
I''ve tried the everything I can think of but not being an expert in jQuery is letting me down, any help much appreciated.Expand|Select|Wrap|Line Numberswhat you would need to do is (at laest when using DOM)
- copy the inner <ul>
- replace the outer <ul> with the copied node
although don?t ask me how to do that with jQuery
Well if you have any other ideas apart from jQuery by all means do tell.
assuming there are ids I can hook on (that would be easier in jQuery)Expand|Select|Wrap|Line Numbers
登录 关闭
扫码关注1秒登录发送“验证码”获取 | 15天全站免登陆