@jswork/next
v1.2.9
Published
A javascript OOP toolkit for mobile & modern web.
Downloads
1,103
Maintainers
Readme
next
A javascript OOP toolkit for mobile & modern web.
installation
npm install --save @jswork/next
node
import nx from '@jswork/next';
const MyClass = nx.declare({
statics:{
init: function(){
console.log('hello next!')
}
}
})
browser
<script type="text/javascript" src="https://unpkg.com/@jswork/next"></script>
<script type="text/javascript">
(function (nx, global) {
nx.declare('myApp', {
statics: {
init: function () {
alert('hello next!');
}
}
});
}(nx, nx.GLOBAL));
</script>
license
Code released under the MIT license.