我在创建项目后使用location.reload()
刷新页面:
pano.save(json, {
success: function(pano) {
$scope.panos.push(json)
$scope.$digest()
$('.modal').modal('hide')
location.reload()
},
error: function(pano, error) {
console.log('Failed to create new pano object, with error message: ' + error.message)
}
})
我该怎么做才能让用户在刷新后被带到某个元素?