怎么用js实现:离开当前网页,提示“是否真的要离开”?<script language="JavaScript">function logout(){用户退出登录if (!confirm('是否真的要离开?')) { retu2023-02-22JavaScript260