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://codercto.com/soft/d/1544.html

Compilers

Compilers

Alfred V. Aho、Monica S. Lam、Ravi Sethi、Jeffrey D. Ullman / Addison Wesley / 2006-9-10 / USD 186.80

This book provides the foundation for understanding the theory and pracitce of compilers. Revised and updated, it reflects the current state of compilation. Every chapter has been completely revised ......一起来看看 《Compilers》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

MD5 加密
MD5 加密

MD5 加密工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换