npm.io
2.6.0 • Published 6 years ago

@feizheng/next-js-core2

Licence
MIT
Version
2.6.0
Deps
0
Size
20 kB
Vulns
0
Weekly
0
Stars
3

next-js-core2

A javascript OOP toolkit for mobile.

installation

# window.nx
npm install --save @feizheng/next-js-core2@1.6.5

# inner context
npm install --save @feizheng/next-js-core2

node

import nx from '@feizheng/next-js-core2';

const MyClass = nx.declare({
  statics:{
    init: function(){
      console.log('hello next!')
    }
  }
})

browser

<script type="text/javascript" src="//unpkg.com/@feizheng/next-js-core2@2.0.5/dist/next-js-core2.min.js"></script>
<script type="text/javascript">
(function (nx, global) {
  nx.declare('myApp', {
    statics: {
      init: function () {
        alert('hello next!');
      }
    }
  });
}(nx, nx.GLOBAL));
</script>

Keywords