Element을 쉽게 감쌀 수 있습니까? jQuery (.wrap())가 있습니다.다른 요소 주위에 요소 둘러싸 기
예 : jQuery를에
:
$('.inner').wrap('<div />');
내가 다트에서 찾고 있어요 무엇 :
query('.inner').wrap(new DivElement());
되는 HTML 모습 수
<html>
<head>
</head>
<body>
<div class="inner"> Some text </div>
</body>
</html>
그 결과가 여기에
<html>
<head>
</head>
<body>
<div>
<div class="inner"> Some text </div>
</div>
</body>
</html>
이 기능은 이미 사용 가능하다고 생각되지 않지만 유용한 기능처럼 보입니다. 다음에서 기능 요청을 만들 수 있습니다. http://dartbug.com/new – Fox32
기능 요청을 만들었습니다. https://code.google.com/p/dart/issues/detail?id=11765&thanks=11765 –