spine中有这么个函数:
Module.proxy = function(func) {
return (function(_this) {
return function() {
return func.apply(_this, arguments);
};
})(this);
};
官方api中解释是
A JavaScript compatibility function, which ensures that the function is
always called in the context of the Controller's instance.
然而并没有看懂,求详细讲解,最好有例子说明一下,谢谢