Blogger Information
Blog 143
fans 1
comment 0
visits 440359
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
系统控制—清除历史消息
弘德誉曦的博客
Original
715 people have browsed it

系统控制—清除历史消息

  1. system_ctl:{
  2. init(cmd){
  3. if(cmd.indexOf(':set=') == 0){
  4. var method = cmd.substr(5);
  5. if(typeof(register.system_ctl[method]) == 'function') return true;
  6. return false;
  7. }
  8. },
  9. /**
  10. * 清除历史消息
  11. * 用法:
  12. * 在sendMsg中嵌入
  13. * if(register.system_ctl.clear_history(that.cData.message)) return false;
  14. */
  15. clear_history(cmd){
  16. if(register.system_ctl.init(cmd)){
  17. register.removeStorage(register.storage_key[0]);
  18. register.removeStorage(register.storage_key[1]);
  19. uni.showToast({
  20. title:"清除历史消息成功!"
  21. })
  22. return true;
  23. }
  24. return false;
  25. }
  26. },
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post