1
如何擺脫Web瀏覽器的默認提示? 下面是我的coffescript。 在卸載前用自己的jQuery替換默認提示
$(window).on 'beforeunload', (e) ->
e.preventDefault()
question = "<h4 class='text-center'>The actual changes for black/white list will be lost.</h4>"
bootbox.confirm question, (result) ->
if result
$.post url,() ->
window.location.reload()
你不能,就這麼簡單。 – adeneo