remove all
  • from
      ?
  • 后端 未结 7 1138
    北荒
    北荒 2020-12-15 02:48

    I am appending li in a ul using the following code:

    for (var i = 1; i <= len; i++) {
        li = document.createElement(\'li\');
    
              
    
    
            
    7条回答
    •  夕颜
      夕颜 (楼主)
      2020-12-15 03:24

      $('#button').on('click', function() {
          $(root).empty();
      });
      

    提交回复
    热议问题