<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<script type="text/javascript" src="./jquery-1.10.1.min.js"></script>

</head>
<body>
<span name="it666"></span>
<script>
function Person()
{

}
var p=new Person();
p["name"]="zyg";
console.log(p["name"]);
var span=document.getElementsByTagName('span')[0];
span.setAttribute("name","cyg");//操作属性节点.
console.log(span.getAttribute("name"));//获取属性节点
</script>
</body>
</html>