NatChen

Once you have chosen the road of life, you have to be brave enough to go to the end and never look back.

05 2018 档案

摘要:一.AngularJS Select(选择框) 1.使用 ng-options 创建选择框 <div ng-app="myApp" ng-controller="myCtrl"> <select ng-init="selectedName = names[0]" ng-model="selected 阅读全文
posted @ 2018-05-31 15:08 NatChen 阅读(129) 评论(0) 推荐(0)
摘要:一.基本指令 1、ng-app=" " 指令初始化一个 AngularJS 应用程序,定义angularJS的使用范围; tips:一个页面里创建多个 ng-app 手动加载即可: 2、ng-init="变量=值;变量='值'" 初始化变量的值,有多个变量时,中间用分号隔开; 3、ng-model= 阅读全文
posted @ 2018-05-23 11:50 NatChen 阅读(251) 评论(0) 推荐(0)
摘要:<style> @keyframes dot { 0% { width: 0; } 33% { width: .2em; } 66% { width: .5em; } 100% { width: .8em; } } .dot { display: inline-block; width: 20px; 阅读全文
posted @ 2018-05-18 14:37 NatChen 阅读(327) 评论(0) 推荐(0)
摘要:.loading {margin: 100px; width: 3px; height:3px; border-radius: 100%; /* 圆角 */ box-shadow: 0 -10px 0 1px #333, /* 上, 1px 扩展 */ 10px 0px #333, /* 右 */ 阅读全文
posted @ 2018-05-16 13:59 NatChen 阅读(635) 评论(0) 推荐(0)