This is a like jquery package.
Browser:
import cdn
<!-- Browser -->
<script src="https://xqgj.cc/xqcdn/libs/xqgjs/xqgjs.min.js"></script>
<!-- es module -->
<script type="module">
import xqgjs from '../lib/xqgjs-esm.min.js';
</script>
- info
console.log(gjs.info);
// {name: 'gjs', date: '2022-09-29', version: 'v1.0.2'}
- dom
console.log(gjs('h3'));
// init {0: h3}
Run this script to view the demonstration case: npm run test:browser
.