我使用下面的代码: var frontPic = e.target.files[0]
var frontPicName = frontPic.name
var salonId=$("#salonId").val()
upload = new Upload(frontPicName, salonId)
upload.resize(frontPic)
调用下面的代码 function Up
我想创建一个类,并将其传递给另一个类,并且我遇到了原型问题。我知道我可以使用bind来解决这个问题,但是我找不到一种方法让原型方法绑定到实例化的构造函数上。这给我留下了这样的事情: foo = new obj(); // has foo.method that depends on "this" being bound to obj
// pass foo.method to bar, with