《百度ueditor如何監(jiān)聽獲得焦點(diǎn)事件和失去焦點(diǎn)事件》要點(diǎn):
本文介紹了百度ueditor如何監(jiān)聽獲得焦點(diǎn)事件和失去焦點(diǎn)事件,希望對(duì)您有用。如果有疑問,可以聯(lián)系我們。
相關(guān)主題:JS、Jquery插件
百度ueditor如何監(jiān)聽獲得焦點(diǎn)事件和失去焦點(diǎn)事件?
這兩個(gè)在使用UE時(shí)比較常用,用法很簡單:
UE.getEditor('editor').addListener('focus',function(editor){layer.msg('hi');});
UE.getEditor('editor').addListener('blur',function(editor){layer.msg('hi');});
即,只要把focus換成blur即可。
效果:
轉(zhuǎn)載請(qǐng)注明本頁網(wǎng)址:
http://www.snjht.com/jiaocheng/14816.html