0.1.0 • Published 5 years ago

web-es6 v0.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

#widget dosomething.js

import widget from 'web-es6/widget'

export default widget({
  event:{
    init:function(){
      this.doSomething()
    }
  },
  doSomething:function(){
    this.el.innerHTML ='do something';
  }
})

run.js

import ds from `dosomething.js`;

new ds({el:body});

#ready

import ready from 'web-es6/ready'

ready(()=>{
  console.log("it's document ready.");
}, {
  'hi':()=>{
    console.log("hash is #hi");
  }
});

#ajax

import ajax from 'web-es6/ajax';

let getUser =ajax('/user').get({page:1, max:10});
getUser().then((data)=>{
  //doAnythingYouWant();
});
0.1.0

5 years ago

0.1.1

5 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.1

7 years ago

0.0.2

7 years ago