Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我对谷歌关闭很陌生。我不知道如何在大豆文件(谷歌闭包)中声明和赋值给数组。请指教。
只是将其移至答案以供将来参考:
这为我编译: {let $P : [1,2,3,4]/} - 编译为: var output = opt_sb || 新大豆.StringBuilder(); var P__soy461 = [1, 2, 3, 4]; 所以它应该可以正常工作