<script type="text/javascript">
var main=document.body;
function created(){
var oP=document.createElement("p");
oP.innerHTML="This is Javascript";
oP.setAttribute("title","说明");
main.appendChild(oP);
}
created();
</script>
添加节点