it seems we can not set a property value in a member function, for example:
var Viewer = function() {}; Viewer.prototype.id=0; Viewer.prototype.upload=function(){ this.id=0; }and from this i get un error. If i remove this, everything works fine.
评论
发表评论