Closed zzuieliyaoli closed 7 years ago
活动页面很明显是可以抽象成模板逻辑的,也不知道github上有没有现成的库
@geekan 我粗略搜了一下,貌似没有。就当是造轮子了。。
day 3
webpack能跑通了,还需认真翻看文档。
直接用es2015写react步子迈的有点大,先从es2015看起吧
http://gank.io/post/564151c1f1df1210001c9161
http://www.sitepoint.com/understanding-ecmascript-6-class-inheritance/
http://fourkitchens.com/blog/article/practical-introduction-es2015-classes
http://exploringjs.com/es6/ch_classes.html
http://reactkungfu.com/2015/07/why-and-how-to-bind-methods-in-your-react-component-classes/
http://www.newmediacampaigns.com/blog/refactoring-react-components-to-es6-classes
day 7
遇到了angular的坑
$scope.$digest()相关
day 8
webpacl dev server
react flux
day 9
node server with webpack
day 10
webpack dev server with node express
day 11
webpack dev server with node express 搞通了。
jade的官方文档简直不能称之为文档啊。。
webpack也是醉的不行。。
遇到的问题:
http://stackoverflow.com/questions/14115893/nodejs-render-raw-html-with-express
http://stackoverflow.com/questions/29586928/react-minified-exception-occurred
day 12
https://github.com/rackt/react-router/tree/latest
https://babeljs.io/docs/setup/#mocha
https://discuss.reactjs.org/t/whats-the-prefered-way-to-test-react-js-components/26/2
http://mochajs.org/#mocha-opts
https://blog.algolia.com/how-we-unit-test-react-components-using-expect-jsx/
day 13
学习写测试
day 14
use mocha chai jsdom to write tests
day 15
add babelrc
看各种文档看的好辛苦
day 16
表哥结婚,喝的有点多。。。。
day 17
There is something wrong when i installed gulp-sass
update 2016.1.26
I just copy and paste the gulp-sass that i installed before for other demos into the node_modules directory.
After the step above, i ran npm update gulp-sass
.
Everything goes well!
day 19
整一整博客
day 20
继续整博客
day 21
整理博客
day 22
博客。。
真心吐槽webpack的文档啊。。。
day 23
博客。。
看mongoDB的文档
小坑:
mongod --dbpath=./data --port 27017
,要注意路径的问题。./data
!!
day 24
express
Chrom extension - Postman 挺好用的说~
day 26、27
day 28、29、30
https://gist.github.com/pos1tron/094ac862c9d116096572
const mongoServerUrl = 'mongodb://localhost:27017/test'
MongoClient.connect(mongoServerUrl, function(err, db) {
assert.equal(null, err)
console.log("Connected correctly to server.")
db.close()
})
var db = new mongo.Db('test', new mongo.Server('127.0.0.1', 27017));
var gfs;
db.open(function(err, db) {
if (err) throw err;
gfs = Grid(db, mongo);
});
mongod --dbpath=./data --port 27017
day 31、32
http://stackoverflow.com/questions/14069421/show-an-image-preview-before-upload
day 33、34、35、36
开始工作 :relaxed:
npm update npm install -g npm
day 37
ng-form
myForm.address.$error.required && myForm.address.$dirty
http://product.moveline.com/angular-validation-part-1-form-basics.html
day 38
day 39
ng-blur="myForm.item.$dirty = true"
day 40、41、42
controller
and directive
day 43、44、45、46、47
Bye 2016 Hello 2017