7 回复
参考这个做了一个angularjs app,在本地用浏览器一切正常,但放到node-webkit里面route失效 myApp.config(['$routeProvider’, function($routeProvider) { $routeProvider. when('/apps’, { templateUrl: 'partials/app-list.html’, controller: ‘MyCtrl’ }). when('/app/:apiId’, { templateUrl: 'partials/app-detail.html’, controller: ‘DetailCtrl’ }). otherwise({ redirectTo: ‘/’ }); }]); 链接到’/app/:apiId’都redirect 到 ‘/’ 有没有遇到过这种情况?