为什么这个解决问承诺响应返回对象的值一个承诺吗?
Why does this resolved Q promise responds to valueOf with a promise?
事实上,该消息将可能被发送到类,然后这将导致一个已创建对象的返回值,所以与我说的有点不符。
Actually, this message would likely be sent to the class that would then result in a return value of the created object, so I cheated a bit.
参见清单5,它是其中一个接口方法的示例,列出电话簿条目并返回它们的值对象表示。
See listing 5 for an example of one of the interface methods for listing phonebook entries and returning their value object representations.
应用推荐