插件 jQuery.Formstone 中文API文档
插件 jQuery.Formstone 中文API文档 https://formstone.it/
Formstone is designed to be implemented easily without negatively impacting an existing project. Scripts are wrapped in self-executing closures and styles are individually name spaced to avoid collisions.
ads via Carbon Formstone on UpLabs ads via Carbon Deploy The first step is to deploy the package, either by downloading the package from GitHub or using NPM. Formstone can be deployed and updated via the command line with NPM:
npm install formstone
Implement The core.js file is a main dependency for all JavaScript based components:
<script src="/components/formstone/dist/js/core.js"></script>
Components can be implemented by including the required files and dependencies directly, or by hooking into a current build scripts:
<link href="/components/formstone/dist/css/component.css" rel="stylesheet">
<script src="/components/formstone/dist/js/component.js"></script>
AMD Support Formstone JavaScript component is compatible with module loaders like RequireJS or webpack:
// loads plugin and dependencies
require('formstone/js/background.js');