【问题标题】:AngularJS Google Closure Compiler with Google APIAngularJS 谷歌闭包编译器和谷歌 API
【发布时间】:2013-09-17 20:14:32
【问题描述】:

我正在尝试创建 Google API 的外部以在 Google Closure App 中工作。我正在使用的 javascript 在这里:

https://apis.google.com/js/client.js

在这里生成外部:

http://www.dotnetwise.com/Code/Externs/index.html

我正在尝试将 extern 命名为 gapi。问题是外部总是空的。是否有另一种方法可以获取谷歌 api 的外部?

【问题讨论】:

  • 我以前没见过externs提取器。很酷。

标签: javascript google-closure


【解决方案1】:

手写的externs 可能会更好。谷歌搜索了一下,我发现this one 看起来相当正确,至少乍一看是这样。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-18
    • 1970-01-01
    • 1970-01-01
    • 2012-03-08
    • 1970-01-01
    • 2017-02-11
    相关资源
    最近更新 更多