var emotionify = emotionifyFactory();
// parse code to img
emotionify.parse2Img("#$face_01$#哈哈/::)😀");
// parse name to code
emotionify.parse2Code('[宝宝方了][口水][微笑]');
<script src="./dist/emotionifyFactory"></script>
<script>
参照使用方法
</script>
var emotionify = require('emotionify')();
参照使用方法
define('emotionify', function(emotionify){
参照使用方法
});
addEmotions 中参数的数据格式如下:
{
type: {
name: '',
data: [
{
pics: {
},
name: '',
code: ''
},
{
pics: {
},
name: '',
code: ''
}
]
}
}