4.1.0 • Published 3 years ago

jquery-sina-emotion v4.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

jQuery Sina Emotion · GitHub license npm version

一个用于方便快速地创建新浪微博表情选择对话框的 jQuery 插件。

有何特点

  • 使用简单,一行代码即可创创建出表情选择对话框
  • 自带智能表情解析方法(但还是建议表情解析在服务端进行)
  • 兼容IE6+、Chrome、Firefox、Opera等各种浏览器

插件演示

演示地址

使用方法

// 未指定插入文本框时,自动寻找同表单中第一个 textarea 或 input[type=text] 元素
$(selector).click(function(event){
	$(this).sinaEmotion();
	event.stopPropagation();
});

// 手动指定插入文本框
$(selector).click(function(event){
	$(this).sinaEmotion(target);
	event.stopPropagation();
});

参数配置

$.fn.sinaEmotion.options = {
    pageSize: 72 // 每页显示的表情数
};

表情解析

$(selector).parseEmotion();

具体的使用方法请看 Demo

获取插件

更新日志

4.1.0

3 years ago

4.0.0

3 years ago

3.0.3

5 years ago

3.0.2

5 years ago

3.0.1

6 years ago

3.0.0

6 years ago