问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/13463458/get-rid-of-character-from-jsfiddle