Skip to content

自己封装模块 #118

@Qilong75

Description

@Qilong75

请问如何在index.js的基础上,封装自己的函数。
case:我不想要所有函数都写在indexjs里,读起来很不雅观,但是通过import进行导入的时候,日志显示“标识符使用了保留关键字import”,请问如何能够将自己的方法移出到其他文件。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions