0.1.0 • Published 6 years ago

web-es6 v0.1.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 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

6 years ago

0.1.1

6 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.1

8 years ago

0.0.2

8 years ago