8.7w+
社区成员
app.directive('test', function() {
return {
restrict: 'E',
replace: true,
transclude: true,
template: '<p ng-transclude></p>'
};
});
<test>hello world</test><test>hello world</test><test>hello world</test><test>hello world</test><test>hello world</test>
<test>hello world</test><test>hello world</test><test>hello world</test><test>hello world</test><test>hello world</test>
...50个以上