我想知道这是否可以使用 jquery 或标准 javascript
function myObj (x,y)
{
this.x=x;
this.y=y;
//above doesn't really matter much
// real question below
$(this).click(function(){
//place some javascript fucnction in here to run when something happens
});
}
我想知道这是否可以使用 jquery 或标准 javascript
function myObj (x,y)
{
this.x=x;
this.y=y;
//above doesn't really matter much
// real question below
$(this).click(function(){
//place some javascript fucnction in here to run when something happens
});
}