发表于: 2017-01-09 00:59:12
4 1560
今天完成的事情:
1.学习了vertical-align和line-height;
2.了解了js中的this;
明天计划的事情:
1.刷angular权威教程;
2.继续学习张鑫旭大神的css课程;
3.小程序似乎开放了,学习一波;
遇到的问题:
1.项目中动态生成模块的部分理解不能。
收获:
1.$state的事件,增加路由跳转的一些判断。
● $stateChangeError
● $stateChangeStart
● $stateChangeSuccess
● $stateNotFound
2.js中this的四条绑定规则
http://chriscindy.top/2016/09/15/JavaScript-中-this-的四条绑定规则/
3.angular中操作cookies
$cookies.name = 'autumnswind';
$scope.title = "Hello, i'm autumnswind :)";
$cookieStore.put("skill", "##");
//删除cookies
$cookieStore.remove("name");
//设置过期日期
var time = new Date().getTime() + 5000;
$cookieStore.put("cookie", "Hello wsscat", {
expires: new Date(new Date().getTime() + 5000) });
评论