87,910
社区成员
发帖
与我相关
我的任务
分享
<script>
function MyClass(w,h)
{
var c=100;//私有变量
this.width = w; //public 属性
this.height = h;
this.getC = function() { //private 属性
return c;
}
}
MyClass.var1="cc";//静态变量
</script>