Skip to content

Instantly share code, notes, and snippets.

View jsm1003's full-sized avatar
🍭
heyyyyy ya!

JSM jsm1003

🍭
heyyyyy ya!
  • beijing
View GitHub Profile
@jsm1003
jsm1003 / Parser.js
Created February 13, 2017 12:49 — forked from Saul-Mirone/MVVM.js
A simple mvvm
class Register {
constructor() {
this.routes = []
}
regist(obj, k, fn) {
const _i = this.routes.find(function(el) {
if((el.key === k || el.key.toString() === k.toString())
&& Object.is(el.obj, obj)) {
return el