No way,it's mean "private"like it?
:)
:)
解决方案 »
- 做网页时,像网易等门户网站上点击登录链接下边出来登录框的快捷登陆怎么实现
- 回答对这道题,所有分给你,看看自己的js能力
- 关于javascript中回调函数(callback)中this指针的问题
- 问两个Web的问题
- JavaScript修改xml格式的字符串
- 加载xml 对象出错+++++++++++++++++++++++++++++++++++++十万火急 全部积分了
- 求一个正则表达式
- 急,求大神帮忙分析,javascript
- 高手请进,有个关于JAVASCRIPT与VBSCRITP的问题!
- vbscript里有没有像javascript里的this一样的功能?
- window.print();语句出错怎么回事啊
- 怎么加速javascript+DHTML的程序?
function Circle (xPoint, yPoint, radius) {
this.x = xPoint; // 圆心的 x 坐标。
this.y = yPoint; // 圆心的 y 坐标。
this.r = radius; // 圆的半径。
this.pi=Math.PI;
Circle.prototype.area=function(){
return this.pi * this.r * this.r;
}
}function window_onload() {
var aCircle = new Circle(12,12,2);
alert(aCircle.area());
}
<script>
function test()
{
var aa="test1"
this.test2=function()
{
var aa="test2"
alert(aa)
}
}
var f = new test();
f.test2();
</script>
</html>
<script>
function test()
{
test.prototype.test2 = test2;
var aa="test1";
function test2()
{
var aa="test2";
alert(aa);
}
}
new test().test2();
</script>
</html>
<script>
function test()
{
var aa="test1"
this.test2=test2;
function test2()
{
var aa="test2"
alert(aa)
}
}
var a=new test();
a.test2();
</script>
</html>