AngularJS Emoji Filter

码农软件 · 软件分类 · AngularJS 扩展 · 2019-03-17 13:13:01

软件介绍

AngularJS Emoji Filter 是 AngularJS 的过滤器,用来替换 emoji 表情代码为实际的表情图片。

使用方法:

<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="emoji.min.css">
    <script src="angular.min.js"></script>
    <script src="emoji.min.js"></script>
</head>
<body ng-app="app" ng-controller="AppCtrl">
    <ul>
        <li ng-repeat="message in messages" ng-bind-html-unsafe="message | emoji"></li>
    </ul>
</body>
</html>

JavaScript 代码:

angular.module("app", ["emoji"]).controller("AppCtrl", function ($scope) {
    $scope.messages = [
        "Animals: 🐶 🐱 🐍",
        "People: 😄 😕 😠",
        "Places: 🏠 🏫 🏨"
    ];
});

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

Hello World

Hello World

Hannah Fry / W. W. Norton Company / 2018-9 / GBP 17.99

A look inside the algorithms that are shaping our lives and the dilemmas they bring with them. If you were accused of a crime, who would you rather decide your sentence—a mathematically consistent ......一起来看看 《Hello World》 这本书的介绍吧!

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

HTML 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

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

HEX HSV 互换工具