1.0.12 • Published 10 years ago

emotionfy v1.0.12

Weekly downloads
1
License
ISC
Repository
github
Last release
10 years ago

emotionfy

api example

使用方法

var emotionfy = emotionfyFactory();
// parse code to img
emotionfy.parse2Img("#$face_01$#哈哈/::)😀");

// parse name to code
emotionfy.parse2Code('[宝宝方了][口水][微笑]');

browser

<script src="./dist/emotionfyFactory"></script>
<script>
	参照使用方法
</script>

CommonJS

var emotionfy = require('emotionfy')();
参照使用方法

Amd

define('emotionfy', function(emotionfy){
	参照使用方法
});

method

parse2Code

parse2Img

setEmotions

data

addEmotions 中参数的数据格式如下:

{
	type: {
		name: '',
		data: [
			{
				pics: {
				
				},
				name: '',
				code: ''
			},
			{
				pics: {
				
				},
				name: '',
				code: ''
			}
		]
	}
}
1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago