你怎么以一种难以注意和修复的方式恶作剧的同事或朋友呢?最好是在JavaScript中,而不必安装任何程序.
我的数据库中有一个文本.我从xhr发送一些文字给我看.函数find找不到一些unicode字符.我想使用以下方法查找所选文本:
text.find(selection)
Run Code Online (Sandbox Code Playgroud)
但有时变量'选择'有这样的字符:
? # in xhr unichr(281)
Run Code Online (Sandbox Code Playgroud)
在变量'text'中有一个char:
e? # in db has two chars unichr(101) + unichr(808)
Run Code Online (Sandbox Code Playgroud)