input 标签 checkbox绑定值 ng-model + ng-true-value +ng-false-value 配合使用
请求服务
placeholder可以用这个换行!!!贼厉害 angular . module( ' user ') . factory( ' ChannelService ', [ ' $http ', ' $q ', function( $http, $q){ var service = {} service. query = function ( num, page, title) { return $http. get( ' /api/1.0/channels ', { params: { num: num, page: page, title: title}}) } service. create = function ( name, title, flag) { // 需要加入是否录入系统 return $http. post( ' /api/1.0/channel ', null, { params: { name: name, title: title, flag: flag}}) } service. delete = function ( id) { return $http. delete( ' /api/1.0/channel ' + ' / ' + id) } service. renew = function ( param) { return $http. put( ' /api/1.0/channel ', param) } return service }])对象简单的深复制,然而原型链没了
JSON. parse( JSON. stringify( data))