Skip to content
/ next Public

A javascript OOP toolkit for mobile & modern web.

License

Notifications You must be signed in to change notification settings

afeiship/next

Repository files navigation

next

A javascript OOP toolkit for mobile & modern web.

version license size download

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.