gpt4 book ai didi

mootools - Mootools 和 Google Closure 库兼容吗?

转载 作者:行者123 更新时间:2023-11-28 02:58:53 26 4
gpt4 key购买 nike

有人有在同一页面中使用 Closure js lib 和 Mootools 的经验吗?

有冲突还是工作正常?

最佳答案

根据谷歌:

The names of all Closure Library functions and properties begin with a dot-delimited path that prevents them from accidentally overlapping with names defined in non-Closure Library code. This path is called a namespace.

( http://code.google.com/closure/library/docs/introduction.html )

所以应该没有冲突,我还检查了 API 文档,它重申了我的发现,例如,对于数组操作,您必须通过 google 命名空间 (goog):

goog.array.binaryInsert(array, value, opt_compareFn)   ⇒
boolean

( http://closure-library.googlecode.com/svn/trunk/closure/goog/docs/closure_goog_array_array.js.html )这与 Array 类本身的 MooTools 扩展不同。

干杯,罗马

关于mootools - Mootools 和 Google Closure 库兼容吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1775606/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com