angular小tip

xiaoxiao2021-02-28  99

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 }])

git update-index --assume-unchanged 用于删除不想跟踪的文件

然而使用stash将会把这些文件还原到一开始git clone下来的原始状态

对象简单的深复制,然而原型链没了

JSON. parse( JSON. stringify( data))
转载请注明原文地址: https://www.6miu.com/read-35944.html

最新回复(0)