Event Handling
We extend vue to support the following types of event handling, so you can simply use go code to implement some complex logic.
Using the Plaid()
method will create an event handler that defaults to using the current vars
and plaidForm
.
The default http request method is Post
, if you want to use the Get
method, you can also use the Get()
method directly to create an event handler
URL
Request a page.
PushState
Reqest a page and also changing the window location.
Reload
Refresh page.
Query
Request a page with a query.
MergeQuery
Request a page with merging a query.
ClearMergeQuery
Request a page with clearing a query.
StringQuery
Request a page with a query string.
Queries
Request a page with url.Values.
PushStateURL
Request a page with a url and also changing the window location.
Location
Open a page with more options.
FieldValue
Fill in a value on form.
FormClear
Clear all form data.
EventFunc
Register an event func and call it when the event is triggered.
Script
Run a script code.
Raw
Directly call the js method