function test(un,pwd,l){
this.username=un;
this.password=pwd;
this.level=l;
}var fason=new test("fason","***",4);
alert(fason.username);
alert(fason.password);
this.username=un;
this.password=pwd;
this.level=l;
}var fason=new test("fason","***",4);
alert(fason.username);
alert(fason.password);
解决方案 »
- 求网站常用JS特效展示或代码!!!
- 回调函数修改宿主无法修改属性吗
- javascript 怎样判断web控件输入的字符长度
- textarea内值得的移动问题?
- document.body.onclick=dowhat;这个单击事件在VBSCript里应该怎么写呢?
- submit为什么提交
- [求助]请问怎样制作出与CSDN论坛左边的导航栏类似的导航栏????
- 大虾们,怎样才能根据request得到的内容来修改select列表框显示的文本呢???
- 请问在网页中如何实现当鼠标指向链接的字体时,链接的字体变色且背景色不变。
- js判断浏览器是否安装了指定扩展名的代码是什么呢
- 怎样得到时间控件的值?
- javascript怎么读取客户端cpu信息
this.username=un;
this.password=pwd;
this.level=l;
}var fason=new test("fason","***",4);
alert(fason.username);
alert(fason.password);
this.username=un;
this.password=pwd;
this.level=l;
}var fason=new test("fason","***",4);
alert(fason.username);
alert(fason.password);