添加节点问题
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<div id="news"></div>
<script type="text/javascript">
var text=document.createElement("li");
var getw=document.createTextNode("php")
var old=document.getElementById("news");
// text.innerHTML="PHP";
old.appendChild("text");
text.appendChild("getw");
</script>
</body>
</html>
请问这样错哪了?