// templateUrl导致cors错误。请告诉我解决方案。
app.config(function($routeProvider)
{
$routeProvider
.when("/result",{
//template is work fine,but templateUrl leads to cors error
template:"<h1>{{name}}</h1>",
controller:"cn2"
})
});