項(xiàng)目效果圖https://niuyi1017.github.io/imooc/webComponent/window.html
源碼:https://github.com/niuyi1017/imooc/tree/master/webComponent
希望能和大家一起交流學(xué)習(xí)~
源碼:https://github.com/niuyi1017/imooc/tree/master/webComponent
希望能和大家一起交流學(xué)習(xí)~
2018-10-03
// 老師的代碼是不是要加一句?:
on: function(type,handler){
if(this.handlers[type]==='undefined'){
this.handlers[type]=[]
//這是多加的一句,不然綁定多個名稱相同的事件時總是少一個
this.handlers[type].push(handler)
}else{
this.handlers[type].push(handler)
} }
on: function(type,handler){
if(this.handlers[type]==='undefined'){
this.handlers[type]=[]
//這是多加的一句,不然綁定多個名稱相同的事件時總是少一個
this.handlers[type].push(handler)
}else{
this.handlers[type].push(handler)
} }
2018-09-28
按著老師的思路一步步寫了一遍demo,最終的源碼:https://github.com/fanglibs/dialogUI 。跟著老師的思路,但代碼中一些命名和布局做了調(diào)整,沒有完全照搬(><),有需要的拿去,大家交流下。
2018-02-11
按著老師的思路一步步寫了一遍demo,最終的源碼:https://github.com/fanglibs/dialogUI 。跟著老師的思路,但代碼中一些命名和布局做了調(diào)整,沒有完全照搬(><),有需要的拿去,大家交流下。
2018-02-11
每節(jié)demo都已經(jīng)記錄好https://github.com/jinzhanye/widget_practice/tree/master/Alert,感謝阿當(dāng)老師。
2017-11-08
每節(jié)demo都已經(jīng)記錄好https://github.com/jinzhanye/widget_practice/tree/master/Alert,感謝阿當(dāng)老師。
2017-11-08