我想将我的网络数据保存在本地存储中.我有一个表,我添加到它的数据,它与AngularJS一起使用.我想保存数据,我该怎么办?
代码:html代码:
<!doctype html>
<html ng-app="ui.bootstrap.demo">
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular-animate.js"></script>
<script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.13.3.js"></script>
<script src="app.js"></script>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div ng-controller="AppCtrl" >
<button type="button" class="btn btn-default" ng-click="openR()"> add user </button>
<button type="button" class="btn btn-default" ng-click="openC()"> connect </button>
<div class="btn btn-success" ng-show="User.connected">{{User.username}} is connected</div>
<table>
<thead>
<th class="col-lg-3">Username</th>
<th class="col-lg-3">Password</th>
<th class="col-lg-3">First name</th>
<th class="col-lg-3">Last name</th>
</thead>
<tbody>
<tr ng-repeat="User in Users.slice(((currentPage-1)*itemsPerPage), ((currentPage)*itemsPerPage))">
<td class="col-lg-3">{{User.userN}}</td>
<td class="col-lg-3">{{User.PassW}}</td>
<td class="col-lg-3">{{User.Name}}</td>
<td class="col-lg-3">{{User.LastName}}</td>
</tr>
</tbody>
</table>
<div>
<pagination total-items="totalItems" ng-model="currentPage" max-size="maxSize" class="pagination-sm" …Run Code Online (Sandbox Code Playgroud) 我正在尝试用CSS3制作独特的形状.我正在使用Bootstrap 3网格系统来制作元素的布局.我已经构建了这个形状的大部分,但我不能让border-radius属性在元素内部转动.
我已经做了什么:
CSS:
.test-midbox{
height: 170px;
background-color: white ;
padding-left: 0px;
padding-right: 0px;
margin-right: 0;
margin-left: 0;
border: solid black 1px;
top: 20px;
}
.test-inbox{
margin-right: 0;
margin-left: 0;
background-image: url("../images/linux.jpg") !important;
background-repeat: no-repeat;
background-position: center;
background-size: auto 80%;
height: 170px;
padding-top:10px;
padding-left:10px;
padding-right:10px;
padding-bottom:40px;
}
.monitor-name:before{
content: "";
position: absolute;
left: 0;
right: 0;
z-index: -2;
display: block;
height: 100%;
background: black;
opacity: 0.7;
border-bottom-right-radius: 20px;
border-top-right-radius: 20px;
}
.monitor-name{
z-index: 100;
position: …Run Code Online (Sandbox Code Playgroud)