I have some old JavaScript libraries that use jQuery promises as return objects from function calls. I'm now using AngularJS which uses the $q service (inspired by the Q library). Does anybody have some generic JavaScript code to make these two different promise implementations compatible, so that jQuery promises can be used as if it where $q promises? Or something similar?
问问题
3498 次