beforeunload.js:适用于window.beforeunload的API也可与Turbolinks 2一起使用

时间:2024-06-01 08:47:19
【文件属性】:

文件名称:beforeunload.js:适用于window.beforeunload的API也可与Turbolinks 2一起使用

文件大小:2KB

文件格式:ZIP

更新时间:2024-06-01 08:47:19

CoffeeScript

beforeunload.js 原料药 BeforeUnload . enable ( # Only gets triggered if this returns truthy if : -> inputHasChanged # The warning message that is displayed message : " You have entered data that is not yet saved. " # If triggered by Turbolinks, call this function instead # of displaying the warning message. Returning `false` from # this function will still show the BeforeUnload alert.


【文件预览】:
beforeunload.js-master
----bower.json(301B)
----README.md(522B)
----index.coffee(1KB)
----index.js(2KB)

网友评论