:Programming Skills--C# .net WebPages:CloneNode()
来源:互联网 发布:电脑软件故障是什么 编辑:程序博客网 时间:2024/05/24 05:21
I partipate in in a new Web Project at this weenkend , the main task is website maintenance.
One of the tasks is about add the div node that when needed.
The Renderings:
Now we should use the method :CloneNode() (XML DOM)
<script type="text/javascipt">
// add block
function AddNewBlock() {
// set the <div id="CurrentBlock">
var $div =document.getElementById("CurrentBlock");
var newdiv=$div.cloneNode(true);
//set the div id="wantedBlock " whick you want put the cloneNode
documen.getElementById("WantedBlock").appendChild(newdiv);
}
</script>
Tip:you can clone any node to any place you wanted by using the method cloneNode().
0 0
- :Programming Skills--C# .net WebPages:CloneNode()
- Java Programming tricky Skills
- Acquire Basic Programming Skills
- Visual C# .NET Programming
- asp.net WebPages 速记1
- asp.net WebPages 速记2
- asp.net WebPages 速记3
- asp.net WebPages 速记4
- How To Improve Programming Skills
- How to improve programming skills
- Build Your Programming Technical Skills
- Build Your Programming Technical Skills
- To improve your programming skills
- Build Your Programming Technical Skills
- Build Your Programming Technical Skills
- Distributed .NET Programming in C#
- Asp.net WebPages框架运行原理浅析
- Advice on improving your programming skills
- leetcode: Word Ladder II
- Intellij IDEA 13 简单配置和界面美化
- 字符处理函数
- 简单的dialog里面的字的颜色查找
- 让你提前认识软件开发(31):数据库脚本中的begin与end
- :Programming Skills--C# .net WebPages:CloneNode()
- Android中View绘制流程以及invalidate()等相关方法分析(转)
- 积分伤不起呀
- handler传递消息
- shu_1746 无平方因子
- 14天学会安卓开发(第二天)Android程序设计基础activity和intent
- POJ 2391
- 每日算法之三十六:Permutations && Permutations II
- 第114天