JavaScript 的 Emoji 转换库 js-emoji

码农软件 · 软件分类 · Emoji 表情相关 · 2019-10-13 22:58:49

软件介绍

js-emoji 可以让你在浏览器上显示 Emoji 表情,使用方法:

<link href="emoji.css" rel="stylesheet" type="text/css" />
<script src="emoji.js" type="text/javascript"></script>
<script type="text/javascript">

// replaces \u{1F604} with platform appropriate content
var output1 = emoji.replace_unified(input);

// replaces 😄 with platform appropriate content
var output2 = emoji.replace_colons(input);

// force text output mode
emoji.text_mode = true;

// show the short-name as a `title` attribute for css/img emoji
emoji.include_title = true;

// change the path to your emoji images (requires trailing slash)
// you can grab the images from here:
// https://github.com/github/gemoji/tree/master/images/emoji/unicode
emoji.img_path = "http://my-cdn.com/images/emoji/";

// find out the auto-detected mode
alert(emoji.replace_mode);

</script>

在线演示:http://unicodey.com/js-emoji/demo.htm

本文地址:https://codercto.com/soft/d/16704.html

Dojo权威指南

Dojo权威指南

拉塞尔 / 李松峰、李丽 / 机械工业出版社 / 2009-4 / 79.00元

通过使用Dojo这个工业强度的JavaScript工具箱,我们可以比使用其他任何Ajax框架更高效、更容易地创建JavaScript或Ajax驱动的应用程序和站点。 《Dojo权威指南》向读者展示了如何充分利用Dojo工具箱中包含的大量实用特性,以前所未有的效率开发出功能丰富、响应敏捷的Web应用程序。读者通过《Dojo权威指南》能够学习到创建复杂布局和表单控件(常见于高级桌面应用程序)的技......一起来看看 《Dojo权威指南》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具