Overview
The jquery-es is a refactoring of jquery using modern JS API, and remove the complex browser compatibility handling and regular match. The refactoring of the new API results in better performance and development experience.
The jquery-es source code uses the ES Module standard development. This means that you can do optimizations like tree-shaking with packaging tools like WebPack Rollup.
Features
- ES Module
- More dom friendly
- AJAX
- Animate
Install
#npm
npm install jquery-es --save
#yarn
yarn add jquery-es
Since jquery-es uses the ES Module standard, you need to use an environment that supports modularity. If you want to use it in a script, pull this repository and package it manually.
git clone git@github.com:Dananboom/jquery-es.git
cd jquery-es
npm install
npm run build
Find the file you need in the dist directory.
Demo
Simple to use
import $ from 'jquery-es'
// document onload
$(function(){
console.log('hello world')
})
According to the need to import
import { version } from 'jquery-es'
// print version
console.log(version)