在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:li914/emoji_jQuery开源软件地址:https://github.com/li914/emoji_jQuery开源编程语言:JavaScript 78.1%开源软件介绍:emoji_jQuery表情插件在线演示:demo 1.基本介绍
2.使用方法下载:emoji_jQuery.min.js,然后在jQuery后引入使用。
<div id="test"></div>
<div id="div-emoji">
<p>
<input id="input" type="text">
</p>
<p>
<button id="send">发送</button>
<button id="btn">emojiBtn</button>
</p>
</div>
$.Lemoji({
emojiInput: '#input',
emojiBtn: '#btn',
position: 'LEFTBOTTOM',
length: 8,
emojis: {
qq: {path: 'static/images/qq/', code: ':', name: 'QQ表情'},
tieba: {path: 'static/images/tieba', code: ';', name: "贴吧表情"},
emoji: {path: 'static/images/emoji', code: ',', name: 'Emoji表情'}
}
});
$('#send').click(function () {
var content = $('#input').val();
content = $.emojiParse({
content: content,
emojis: [{type: 'qq', path: 'static/images/qq/', code: ':'}, {
path: 'static/images/tieba/',
code: ';',
type: 'tieba'
}, {path: 'static/images/emoji/', code: ',', type: 'emoji'}]
});
$('#test').html(content);
}); 3 运行项目
|
2022-08-15
2022-08-17
2022-09-23
2023-10-27
2022-08-18
请发表评论