@feizheng/next-js-core2

2.6.0 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i @feizheng/next-js-core2

Weekly Downloads

24

Version

2.6.0

License

MIT

Unpacked Size

20.4 kB

Total Files

4

Last publish

Collaborators

  • afeiship