摆脱jsfiddle的角色 [英] get rid of character from jsfiddle
问题描述
jsFiddle似乎将一个角色放在不可见的小提琴中,当javascript被复制/粘贴到另一个编辑器并运行时会导致错误。我知道简单的答案就是不要从该网站复制/粘贴。但是假设它已经完成,你必须在文档中找到角色:是否有任何在线工具可以用来显示隐形字符,并协助删除它们?
jsFiddle seems to put a character in the fiddles that is invisible and causes erros when javascript is copy/pasted into another editor and run. I know the easy answer is simply not to copy/paste from that site. But supposing it's been done, and you must locate the character in your document: is there any tool online which can be used show invisible characters, and assist in their removal?
推荐答案
jsFiddle 添加的隐形字符 U + 200B (dec 8203)并称为ZERO WIDTH SPACE。您可以通过 .replace('\ u200b','')
The invisible character added by jsFiddle is U+200B (dec 8203) and called a "ZERO WIDTH SPACE". You can remove it by .replace('\u200b','')
将其删除讽刺的是, 这是一个小提琴 。
Ironically, here is a fiddle for it.
这篇关于摆脱jsfiddle的角色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!