Open
Conversation
…ecated. Please include <meta name="mobile-web-app-capable" content="yes">
- 添加复制文本到剪贴板的功能 - 实现了 copyToClipboard 静态方法,用于将文本复制到剪贴板 - 该方法首先尝试使用现代的 Clipboard API,如果失败则回退到 execCommand 方法 - 在 outputToConsole 方法中调用了 copyToClipboard 方法,将生成的变量名复制到剪贴板
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
描述
本次 PR 包含以下三项改进:
game.restart()后找不到场景导致的报错问题。<meta name="apple-mobile-web-app-capable" content="yes">标签为<meta name="mobile-web-app-capable" content="yes">。execCommand方法。提交内容
game.restart()场景丢失报错。测试方式
game.restart()不会引发场景找不到的错误。