angular判斷頁面離開
當進入一個頁面的時候,需要對該頁面進行一些操作,但是當頁面離開之后需要恢復該狀態,
比如如果進入該頁面需要對父元素的滾動條進行調整,但是離開頁面之后需要恢復其原有狀態
$(".content").css("overflowX","scroll")
$scope.$on('$locationChangeStart', function (event, next, current) {
console.log("333333333333333")
$(".content").css("overflowX","auto")
});