使用create-react-app,ES6語法,演示:https://jinwangq.github.io/lightningCount-by-react, 項目地址:https://github.com/JinWangQ/lightningCount-by-react。有幫助點個star呀(=?ω?)?
2018-03-09
使用ES6語法如果報錯cannot read property 'strikes' of undefined, 解決方法是在constructor下綁定方法:this.timerTicker = this.timerTicker.bind(this); 就OK啦_(:з」∠)_
2018-03-09
不使用python的也可以 如果有安裝node 可以使用npm來安裝一些本地的靜態資源服務器 比如live-server 或者ass-we-can
2018-03-08