Skip to content

修改错别字 #104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/zh-CN/working_with_javascript_in_rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ NOTE: 由于通过表单提交 GET 和 POST 之外的请求未得到浏览器的

在表单的提交按钮上也可以设定这个属性。这样可以根据所按的按钮定制提醒消息。此时,不能在表单元素上设定 `data-confirm` 属性。

默认使用的是 JavaScript 确认对话框,不过你可以定制这一行为,监听 `confirm` 时间,在对话框弹出之前触发。若想禁止弹出默认的对话框,让事件句柄返回 `false`。
默认使用的是 JavaScript 确认对话框,不过你可以定制这一行为,监听 `confirm` 事件,在对话框弹出之前触发。若想禁止弹出默认的对话框,让事件句柄返回 `false`。

<a class="anchor" id="automatic-disabling"></a>

Expand Down