此函数包装一个事务。
上面的这个匿名函数很简单,它仅仅包装了一下broker。
This particular anonymous function is pretty simple: it wraps broker.
清单8将对WS - Resource的调用包装在可以从html页中的任何位置调用的适当函数中。
Listing 8 wraps the call to the WS-Resource in a convenient function that can be called from anywhere within your HTML page.
应用推荐