什么是 HTML 字符代码 8203? [英] What's HTML character code 8203?

查看:43
本文介绍了什么是 HTML 字符代码 8203?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

字符代码 (HTML) ​ 是什么?我在我的一个 jQuery 脚本中找到了它并想知道它是什么..

What does the character code (HTML) ​? I found it in one of my jQuery scripts and wondered what it was..

谢谢.

这是它所在的脚本(它被添加到最后,在Firebug中找到)

Here is the script it was in (it was added to the end, found it in Firebug)

<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript"></script>
<script type="text/javascript">
var $jnyh = jQuery.noConflict();


$jnyh(function() {
    $jnyh("#title-nyh").click(function() {
      $jnyh(".show-hide-nyh").slideDown("slow");
    }, function() {        
      if(!$jnyh(this).data('pinned'))
        $jnyh(".show-hide-nyh").slideUp("slow");
    });
    $jnyh("#title-nyh").click(function() {
    $jnyh(this).parent().toggleClass("title-btm-brdr");
       $jnyh(this).toggleClass("chev-up-result");
      var pin = $jnyh(this).data('pinned');
      $jnyh(this).data('pinned', !pin);
      if(pin) $jnyh(".show-hide-nyh").slideUp("slow");      
    });
});​&#8203;
</script>

推荐答案

Unicode 字符零宽度空间"(U+200B).

这个字符用于换行控制;它没有宽度,但它在两个字符之间的存在并不能阻止在对齐中增加字母间距

this character is intended for line break control; it has no width, but its presence between two characters does not prevent increased letter spacing in justification

根据给定的代码示例,实体在此上下文中完全是多余的.它必须是由某种意外插入的,很可能是由一个有问题的编辑器试图用空格或突出显示来做聪明的事情,或者是最终用户使用本地使用该字符的键盘语言,例如阿拉伯语.

As per the given code sample, the entity is entirely superfluous in this context. It must be inserted by some accident, most likely by a buggy editor trying to do smart things with whitespace or highlighting, or an enduser using a keyboard language wherein this character is natively been used, such as Arabic.

这篇关于什么是 HTML 字符代码 8203?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆