function newobj(n1, n2)
{
this a = n1;
this b = n2;
this.move = function(x, y)
{
obj.style.left = x;
obj.style.top = y;
}
}var a = new newobj(1, 2);
{
this a = n1;
this b = n2;
this.move = function(x, y)
{
obj.style.left = x;
obj.style.top = y;
}
}var a = new newobj(1, 2);
解决方案 »
- 求助:insertAdjacentHTML提示"用于此操作的原始HTML无效"
- js设置iframe的src ,在调用print()问题。
- javascript怎么获取display标签里属性的值
- window.createPopup弹出窗口自动隐藏问题
- js 插入一行,为什么变形了?
- 很奇怪的问题,为什么IE缓存了图片的宽度和高度,郁闷啊!!
- [转]JavaScript窗口功能指南之创建对话框
- 火狐 TypeError: document.all is undefined 怎么解决?
- javascript能处理这个问题吗?
- 请问javascript中传值有问题,请指点
- 有关<INPUT TYPE="FILE" NAME="file" SIZE="30" >的
- 弹出窗口控制父窗口?请高手指点!
不過你打錯字了0.0
this.a=n1