import.meta.dirname


版本历史
版本变更
v24.0.0

此属性不再处于实验阶段。

v21.2.0, v20.11.0

新增于: v21.2.0, v20.11.0

  • 类型:<string> 当前模块的目录名。

    \Type: <string> The directory name of the current module.

这与 import.meta.filenamepath.dirname() 相同。

\This is the same as the path.dirname() of the import.meta.filename.

警告:仅存在于 file: 模块上。

\Caveat: only present on file: modules.

AltStyle によって変換されたページ (->オリジナル) /