這是我用angular js編寫的代碼。使用jQuery我想要得到的「數據索引」屬性值使用jquery檢索屬性值
<div class="claimed" droppable value="2">
<div class="phase1" ng-repeat="item in Phase1claimed"
data-index="{{$index}}" draggable value="2">
<div class="ClaimedAccordion" accordion-title="{{item.name}}" unclaimhi="unclaimhi('1');">
{{item.newLabel}} <br /> {{item.desc}} <br /> {{item.effort}} <br />
{{item.owner}} <br /> {{item.issues}} <br /> {{item.comments}} <br />
{{item.dependency}} <br /> {{item.content}}
</div><br/>
</div>
</div>
一個偉大的地方開始將是API文檔 - > HTTP:// API .jquery.com/ – ManseUK