Can closure compiler use chaining as a minification technique?
可以关闭编译器使用链接的缩小技术?
The second part of the closure is the closed scope, which I can best illustrate with another example.
闭包的第二部分是闭合的作用域,我可以用另一个例子来很好地说明它。
The closure can include indirect relation paths as well.
这种闭包也可以包含间接关联路径。
School closure can also be a reactive measure, when schools close or classes are suspended because high levels of absenteeism among students and staff make it impractical to continue classes.
当有过多的师生缺勤、旷课而不能切合实际地持续上课时,学校因此就要关闭,或者临时停课。 这时,关闭学校也可成为一种反应性措施。
By not having to import the object into the closure, we can save quite a bit of memory, especially if we have many closures that don't need this feature.
由于无需将对象导入闭包中,因此可以节省大量内存,尤其是在拥有许多不需要此功能的闭包时。
School closure can operate as a proactive measure, aimed at reducing transmission in the school and spread into the wider community.
关闭学校可以作为采取的积极主动措施,目的是减少疾病在校内的传播并减少向更广泛的社区进行扩散。
This code can refer to local variables defined within the block, arguments to the closure, or variables from the scope in which the closure is created.
这段代码可以引用块中定义的局部变量、闭包的参数以及创建闭包的作用域中的变量。
Creating separate closures that return HTML and XML representations of the data is simple enough, but what if you want one closure that can handle both?
创建一个返回数据的HTML和XML表示的单独闭包是很简单的,但如果想创建一个既可以返回HTML又可以返回XML表示的闭包的话,该怎么办呢。
It can feed information about decisions made back to the guidance model after project closure via asset harvesting activities that might include informal or formal lessons learned reviews.
它可以为已作出的决策提供信息使其在项目结束后通过资产总结活动(可能包括所有从以往经验中得到的正式或非正式评论)将信息反馈给指导模型。
To solve this, we can push that method call into a closure and make the calls against that closure, instead. The resulting code is shown below.
为了解决此问题,我们可以把该方法调用放入闭包并转而针对该闭包执行调用。
A CTabFolder, in the custom package, is an enhanced version of a TabFolder that looks better and can support closure of tabs.
在custom包中,CTabFolder是TabFolder的增强版,它看起来更好一些,并且可以支持选项卡的关闭。
In gpars, actors can be created from a factory method that takes a closure or by subclassing groovyx.gpars.actor.AbstractPooledActor.
在gpars中,可以利用接受闭包的factory方法或通过为groovyx . gpars . actor . AbstractPooledActor划分子类来创建actors。
However, we can set up a closure at the beginning of the function to keep the string from having to be passed on each call.
不过,我们可以在函数的起始处设置一个闭包(closure),以使得不再必须为每一个调用都传递那个字符串。
Though you can pass another closure to it, instead pass it a reference to another function called addEmployee.
尽管您可以传递另一个闭包给它,而不是将其作为一个引用传递给另一个名为addemployee的函数。
The "closure" can be viewed as a temporary object that exists in the function scope.
“闭包”可以被看成是在function scope中的一个临时对象。
A Groovy Closure is an anonymous function that can access its enclosing scope, can be called repeatedly at will, and be passed around as it were data.
一个Groovy闭包是一个匿名函数,它可访问包含它的范围,可随意被重复调用,并可将其当作数据到处传递。
The closure of a peer socket can also be detected with the write API function.
同样,可以用writeapi函数来探测对等套接字的闭包。
Framework code can handle the policy, and user code — provided in a closure — can customize it. Listing 13 shows the basic usage pattern.
框架代码能处理策略,而在闭包中提供的用户代码能定制此策略。
Services aren't associated with an URL by default, but you can easily create a closure in a controller to make them Web addressable.
在默认情况下,服务并不与UR l相关联,但是您可以轻易地在控制器中创建一个闭包,使这些服务可以通过Web找到。
Note that where the final parameter to a method is a closure, Groovy permits that you can remove it from the list of actual parameters and place it immediately after the closing parenthesis.
注意方法的最后一个参数是个闭包,在这个地方Groovy允许把它从实际参数列表中删除,并把它直接放在结束括号后面。
A closure "closes around" these references, so the function invocation can safely refer to the variables even when the variables have gone out of scope!
一个闭包封闭了这些引用,所以函数调用可以安全的引用这些变量,即使它们已经超出了函数的作用域。
We can disable this behavior by defining the closure to be static.
我们可以通过将闭包定义为静态闭包禁用此行为。
However, by taking the time to prepare for closure, you can reduce the impact on both you and your team.
然而,花些时间准备好扫尾工作,您就可以减小对您个人和团队的冲击。
You can think of closure support as providing the ability to treat "blocks of code" as first class objects: pass them around, invoke them, and dynamically create new ones.
可以认为支持闭包就是提供将“代码块”作为第一级对象处理的能力:能够传递、调用和动态创建新的代码块。
Think of a closure as a code block that you can use as an argument, with special scoping rules.
闭包可被视作一个遵循特别作用域规则且可以用作参数的代码块。
Additional local predicates that are not automatically provided by DB2 that can provide predicate transitive closure.
其他的非db2自动提供的,而又能提供谓词传递闭包的本地谓词。
A closure is a function that is evaluated in its own environment, which has one or more bound variables that can be accessed when the function is called.
闭包是在它自己的环境中执行计算的函数,它有一个或多个绑定变量可以在调用函数时访问。
At any rate, there are ways you can get closure even when you don't know why you've been dumped.
无论如何,你有很多方法可以结束这些即使你自己也不明原因的被抛弃。
One interesting side effect of this approach is that it allows us to access private and protected members of a class via a closure, which can be handy for unit testing classes.
这种方法的一个有趣的副作用是允许通过闭包访问类的私有成员和受保护成员,这有利于对类执行单元测试。
At any rate, there are ways you can get closure even when you don't know why you've been dumped. Here are a few I try (every time I'm removed from someone's friend list on Facebook).
无论如何,你有很多方法可以结束这些即使你自己也不明原因的被抛弃。下面是(每次我被脸谱网的好友删除时)我试的一些方法。
应用推荐