The Jquery plug-in for this expression is divided into default values: loose flower, mosimosi, Guster, arafu, white bone essence, Luo xiao, hello dishes, epilepsy, facial paralysis radish, cold rabbit, xiaojiu chicken, mood, guibao, lazy cat, Peter, xiaochun.com, BOBO and TOTO, weather, leisure, artillery, alas bear, funny, block cat, bofu, Meng, no control, smelly, nonopanda, dinosaur baby, shadow, a raccoon, Big Ears rabbit, Hapi rabbit, constellation, love, Asian Games, Zhang xiaobox, Youxi monkey, xiaoxin xiaolang, New Year, Great Bear, mushroom dot and so on 43 series of emoticons.
It is perfectly compatible with all Internet Explorer 6 + browsers, initializing the cache, and loading the page only once.
The core code is as follows:
$ (App_id = '000000' 'jsonp' 'https: // api.weibo.com/2/emotions.json? Source = '+ data = (I (data [I]. category = ''= 'default' (emotions [data [I]. category] === (s )! = "Undefined" sArr = s. match (/\[.*? \]/(I = 0; I <sArr. length; I ++ reStr = " "=
The effect is as follows:
Online Demo