How to convert jQuery functions (that watch css classes) to usable code in Vue 3?

后端 未结 0 399
时光取名叫无心
时光取名叫无心 2021-02-19 01:11

Here is the jQuery code to watch the navbar in order to open and close it on click:

  $(\'#sidenav-toggle\').on(\'click\', function() {
    var $sidenav, $this;
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题