有什么问题。
<script type="text/javascript">
function dMath(){
this.Nodes = []; //节点在这里定义
this.Nodes[this.Nodes.length] = new Node("a","b","c");
}
//定义节点
function Node(a,b,c){
this.a=a;
this.b=b;
this.c=c;
};
//这里将获得的值写入节点
alert(new dMath().Nodes[0].a)
</script>
<script type="text/javascript">
function dMath(){
this.Nodes = []; //节点在这里定义
this.Nodes[this.Nodes.length] = new Node("a","b","c");
}
//定义节点
function Node(a,b,c){
this.a=a;
this.b=b;
this.c=c;
};
//这里将获得的值写入节点
alert(new dMath().Nodes[0].a)
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货