1.调用element方法

    angular.element(html) 把字符串或dom对象转化成一JQuery对象,
    angular.element(document.getElementById("control")).append(newHtml); 在id为control<div>元素里内添加新对象,新对象在添加前需$compile编译过

    <div ng-controller="c10_1" class="frame" )).append(newHtml);
        }
         $scope.del = function () {
          if (newHtml) {
            newHtml.remove();
          }
        }
      });
    </script>

2.使用ng-show

 待续

 

相关文章:

  • 2021-12-21
  • 2021-12-26
  • 2021-08-20
  • 2021-08-23
  • 2022-01-05
  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
猜你喜欢
  • 2022-12-23
  • 2022-01-31
  • 2021-11-30
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
相关资源
相似解决方案