标签 - java
2020
Ionic 3 项目实战------插件原理
Ionic 3 项目实战------插件原理
"do", "chat:hide"]) $crisp.push(["on", "chat:closed", function() { $crisp.push(["do", "chat:hide"]) }]) var chatBtnFn = () => { var chatBtn = document.getElementById("chat_btn") chatBtn.addEventListener("click", function(){ $crisp.push(["do", "chat:show"]) $crisp.push(["do", "chat:open"]) }); } chatBtnFn() } else { if (false) { function chatBtnHide () { $crisp.push(["do", "chat:hide"]) } function chatBtnShow () { $crisp.push(["do", "chat:show"]) } } }