docomo 이모티콘을 스마트폰 사이트에서 표시 ①

 데모
사용하는 라이브러리
docomo 이모티콘 정보
배포 절차 참고
절차
$ bower install emoji --save
index.html
<link rel="stylesheet" href="bower_components/emoji/lib/emoji.css">
index.html
<script src="bower_components/emoji/lib/emoji.js"></script>
class="emojstext" 는 한 곳 밖에 쓸 수 없는 것 같습니다.index.html
<body>
    <div class="emojstext">
        これは晴れマークです。
        これは曇りマークです。
    </div>
    <script>
        $(function () {
            var $text = $('.emojstext');
            var html = $text.html().trim().replace(/\n/g, '<br/>');
            //html = jEmoji.softbankToUnified(html);
            //html = jEmoji.googleToUnified(html);
            html = jEmoji.docomoToUnified(html);
            //html = jEmoji.kddiToUnified(html);
            $text.html(jEmoji.unifiedToHTML(html));
        });
    </script>
</body>
결과

htps : // 기주 b. 이 m / h 쿠스 / 에모지 _js_
index.html를 참조하십시오. 그 외
사이고에게
Reference
이 문제에 관하여(docomo 이모티콘을 스마트폰 사이트에서 표시 ①), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/hkusu/items/2b0843b532106cc30e47텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)