复主代码 代码如下: 无标题文档 머리> http://localhost:81/js/jquery.js</a>"><br> <br> <script src="<a href="http://localhost:81/js/angular.min.js">http://localhost:81/js/angular.min.js</a>"><br> <br> <body ng-app="app" ng-controller="c"><br> <div dir ng-repeat="item in items" ng-model="m"><br> {{항목}} {{m}} <br><br> </div><br> </본문><br> <br> var app = angle.module("app", []);<br> 함수 c($scope){<br> $scope.items = [1,2,2,3,4,5,5];<br> $scope.m = "문자열";<br> };<br> app.directive("dir",function($parse){<br> 반환 {<br> 컴파일 : 함수( $compile ){<br> 반환 함수(s,e,a){<br> //무엇을 .. ..<br> //a.ng모델<br> //용$("xxx").scope.xx = 모델<br> //분할 할당<br> //console.log( $parse( a.ngModel ).할당(s,"sdfs__________newValue__________dfd") )<br> s.m = "<a href="mailto:sdfs____#@%24#@%24#@%24@#%24__dfd">sdfs____#@$#@$#@$@#$__dfd</a>这两个效果一摸一样";<br> }<br> }<br> }<br> });<br> <br> </div>