# fixijs **Repository Path**: mirrors/fixijs ## Basic Information - **Project Name**: fixijs - **Description**: Fixi.js 是轻量级的前端交互框架,用极简代码实现高效动态页面更新 - **Primary Language**: HTML/CSS - **License**: Not specified - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/fixi-js - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-18 - **Last Updated**: 2026-01-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README
| attribute | description | example |
|---|---|---|
fx-action
|
The URL to which an HTTP request will be issued, required |
fx-action='/demo'
|
fx-method |
The HTTP Method that will be used for the request (case-insensitive), defaults to GET |
fx-method='DELETE' |
fx-target |
A CSS selector specifying where to place the response HTML in the DOM, defaults to the current element | fx-target='#a-div' |
fx-swap |
A string specifying how the content should be swapped into the DOM, can be one of innerHTML, outerHTML, beforebegin, afterbegin, beforeend, afterend, none, or any valid property on the element (e.g. `className` or `value`), defaults to outerHTML |
fx-swap='innerHTML' |
fx-trigger |
The event that will trigger a request, defaults to submit for form elements, change for input-like elements & click for all other elements |
fx-trigger='click' |
fx-ignore |
Any element with this attribute on it or on an ancestor will not be processed for fx-* attributes |
| category | event | description |
|---|---|---|
| initialization |
fx:init
|
triggered on elements that have a fx-action attribute and are about to be initialized by fixi
|
fx:inited
|
triggered on elements have been initialized by fixi (does not bubble) | |
fx:process
|
fixi listens on the document object for this event and will process (that is, enable any fixi-powered
elements) within that element.
|
|
| fetch |
fx:config
|
triggered on an element immediately when a request has been triggered, allowing users to configure the request |
fx:before
|
triggered on an element just before a fetch() request is made
|
|
fx:after
|
triggered on an element just after a fetch() request finishes normally but before content is swapped
|
|
fx:error
|
triggered on an element if something is thrown from a fetch()
|
|
fx:finally
|
triggered on an element after a request no matter what | |
fx:swapped
|
triggered after the swap and any associated View Transition has completed |
| property | description |
|---|---|
document.__fixi_mo
|
The MutationObserver that fixi uses to watch for new content to process new fixi-powered elements. |
elt.__fixi
|
The event handler created by fixi on fixi-powered elements |