$httpProvider.interceptors.push(['$q',function ($q) {
return {
request: function (config) {
if(config.url==='/admin.php') {
return $q.reject('no auth!');
}
return config;
},
responseError: function(rejection) {
if(rejection=
.testbox{
position: relative;
height:300px;
border: 4px solid green;
width: 400px;
}
.flex-rows {
display: flex;
flex-direction: column;
position: absolute;
top:0;
left:0;
right:0;
bottom:0;
}
.flex-rows nav{
background-color: #ccc;
}
.flex-rows article {
background-color:
ips=(192.168.1.101 192.168.1.102)
proj=$1;
if [ !$proj ];then
proj='test'
echo -n 'Enter project name (default=test):'
read proj
fi
if [ $proj ];then
* header 头
* footer 尾
* nav 导航
* article 文章
* section 段落
* aside 与内容无关的,比如侧栏
new Date('2016-10-17 10:00:00');在Safari下会被认为是Invalid Date。
需要按照标准的IOS8601格式,如:new Date('2016-10-17T10:00:00');
或严谨点儿带上时区的new Date('2016-10-17T10:00:00+08:00');