mirror of
https://github.com/marko-js/marko.git
synced 2026-01-25 15:03:04 +00:00
14 lines
293 B
JavaScript
14 lines
293 B
JavaScript
module.exports = {
|
|
onInput: function (input) {
|
|
this.state = {
|
|
name: input.name,
|
|
age: input.age
|
|
};
|
|
},
|
|
getName: function () {
|
|
return this.els[0].innerHTML;
|
|
},
|
|
getAge: function () {
|
|
return this.els[1].innerHTML;
|
|
}
|
|
}; |