You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/tutorial/02-sveltekit/04-forms/02-named-form-actions/README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,9 @@
2
2
title: Named form actions
3
3
---
4
4
5
-
A page that only has a single action is, in practice, quite rare. Most of the time you'll need to have multiple actions on a page. In this app, creating a todo isn't enough — we'd like to delete them once they're complete.
5
+
単一の action しかないページというものは、実際にはかなりまれです。多くの場合、1つのページに複数の action を持たせる必要があるかと思います。このアプリでは、todo を作成するだけでは不十分で、一度完了した todo を削除したいと思います。
6
6
7
-
Begin by replacing our `default` action with named `create`and`delete`actions:
> Default actions cannot coexist with named actions.
24
+
> default action と名前付きの action を共存させることはできません。
25
25
26
-
The `<form>`element has an optional `action`attribute, which is similar to an `<a>`element's`href`attribute. Update the existing form so that it points to the new `create` action:
@@ -35,9 +35,9 @@ The `<form>` element has an optional `action` attribute, which is similar to an
35
35
</form>
36
36
```
37
37
38
-
> The `action`attribute can be any URL — if the action was defined on another page, you might have something like `/todos?/create`. Since the action is on _this_ page, we can omit the pathname altogether, hence the leading `?`character.
0 commit comments