在JavaScript中提醒阵列,并使其复制/粘着
在JavaScript上,我有一个多个变量:存档。首先,我希望该页面通过在表的每个值上跳过行来显示此表。其次,我希望警报被用户“共交”。我实现了看起来像这样的第一部分。 https://i.sstatic.net/7xtfh.png
然而: var Archive = Archive.join(“ \ n”)
阻止警报的复制功能。
我的问题是:是否有一种方法可以跳过数组和中的值之间的界限,使其可由用户交配。 (所有这些都在警报JavaScript函数中)。
提前致谢 ! (如果您需要存档数组的代码部分,请让我知道)
On JavaScript, I've got an array of multiple variables: archive. First, I would like the page to display this table by skipping rows at each value of the table. Second, I want the alert to be "copiable" by the user. I achieved the first part that looks like that.
https://i.sstatic.net/7Xtfh.png
However, it appears that the line :var archive = archive.join("\n")
blocks the copy feature of the alert.
My question is : is there a way to skip a line between values in an array AND makes it copiable by the user. (all of this in an alert javascript function).
Thanks in advance ! (if you need the code part of the archive array, let me know)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论