每月彙整: 2015 年 5 月
Angular-ngRepeat error
[ngRepeat:dupes] Duplicates in a repeater are not allowed. Use ‘track by’ expression to specify unique keys. Repeater: {1} in {2}, Duplicate key
<td ng-repeat=“detail in details” ng-bind=“detail”></td>
change to
<td ng-repeat=“detail in details track by $index” ng-bind=“detail”></td>
小愣-哈古小館
哈古小館位於民生社區裡
店門口沒有明顯的招牌 閱讀全文 小愣-哈古小館
Ajax-Origin ‘http://localhost:8080’ is therefore not allowed access
Ajax response console show
XMLHttpRequest cannot load http://127.0.0.1:8080/jerseyStock/services/stockJersey/getStock?stock_id=0050&stock_name=. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8080’ is therefore not allowed access.
Create a new filter, which will set the header response
Edit web.xml add those lines
Eclipse-Missing web.xml after created Dynamic Web Project
Eclipse-Navigator
Eclipse-How to get Dynamic Web Project option in Luna
1.Help -> Install New Software
2.http://download.eclipse.org/releases/luna
3.展開 “Web, XML, Java EE and OSGi Enterprise Development”找Java EE Developer Tools並按下next
4.Eclipse重開即可看到Dynamic Web Project





