📜  角后退按钮 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:57.488000             🧑  作者: Mango

代码示例1
import {Component} from '@angular/core';
import {Location} from '@angular/common';

@Component({
  // component's declarations here
})
class SomeComponent {

  constructor(private _location: Location) 
  {}

  backClicked() {
    this._location.back();
  }
}