Skip to content

Comments in js code will cause errors #1

Description

@FlyingFatPenguin

添加的 JS 文件中如果有注释就会导致错误

这个项目是直接将代码添加到标签中的,但是换行符会出现问题。这样的操作导致了所有代码最终被压缩到了一行。当 JS 代码中出现了 行注释 // 或者没有写分号,解析器就会发生错误。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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