mirror of
https://github.com/wu736139669/vczero.github.io.git
synced 2026-08-05 06:23:38 +00:00
12 lines
350 B
JavaScript
12 lines
350 B
JavaScript
/*搜索*/
|
|
app.controller('SearchController', function($scope, $location, bookList){
|
|
var path = $location.path();
|
|
$scope.search = function(){
|
|
var keywords = $scope.keywords;
|
|
if(path.indexOf('/list/book') !== -1 || path === '/'){
|
|
bookList.getData(keywords);
|
|
}else if(path.indexOf('/list/music') !== -1 || path === '/music'){
|
|
|
|
}
|
|
};
|
|
}); |