<html>
<head><script language=javascript>
window.onload=function(){
var o=new a(1,2);
alert(o.f+";"+o.k+";"+o.m);
}function a(p1,p2){
this.f=p1+2;
this.k=p2+2;
this.m=parseInt(p1+2);
}
</script>
</head>
<body>
</body>
</html>
<head><script language=javascript>
window.onload=function(){
var o=new a(1,2);
alert(o.f+";"+o.k+";"+o.m);
}function a(p1,p2){
this.f=p1+2;
this.k=p2+2;
this.m=parseInt(p1+2);
}
</script>
</head>
<body>
</body>
</html>
javascript里没有int