![](/img/trans.png)
[英]What IDE's can be configured to auto-format JavaScript according to Google's JavaScript Style Guide?
[英]What are JavaScript source files as described in 'Google JavaScript Style Guide'
我仍然是新手。 我正在閱讀“ Google JS樣式指南”。 我想知道- 第3節“源文件結構”指的是什么? 它始於:
源文件按以下順序組成:
- 許可或版權信息(如果有)
- @fileoverview JSDoc(如果存在)
- goog.module語句
- goog.require語句
- 文件的實現
/** * @fileoverview Description of file, its uses and information * about its dependencies. * @package */ goog.module('my.test.helpers'); goog.module.declareLegacyNamespace(); goog.setTestOnly(); const MyClass = goog.require('some.package.MyClass'); const NsMyClass = goog.require('other.ns.MyClass');
它基本上表示上述格式。 我認為這個例子使用谷歌關閉庫。
它們是文件,包含JavaScript源代碼。
即任何.js
文件。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.