- 博客(8)
- 资源 (1)
- 收藏
- 关注
转载 Postman脚本中发送请求
Postman的Collection(集合)/Folder(集合的子文件夹)/Request(请求)都有Pre-request script和Tests两个脚本区域, 分别可以在发送请求前和请求后使用脚本(基于Javascript实现各种操作)集合的脚本区文件夹的脚本区请求的脚本区在遇到有依赖的接口时,比如需要登录或者需要从前一个接口的结果中获取参数时,我们往往需要在该请求前先发送一下所依赖的请求, 我们可以在Pre-request script中使用pm.sendRequest
2020-06-23 10:25:29 1233
原创 前端界面extjs整合webuploader
1.上传文件按钮代码'<div id="uploader">' + '<div id="thelist" class="uploader-list"></div>' + '<div class="btns">' + ' <div id="picker">选择...</div>'+ ...
2020-04-24 16:06:59 419
转载 详解 JavaScript的 call() 和 apply()
项目中经常遇到 JavaScript的 call() 和 apply() ,常常记不清方法的作用,在此记录下:定义ECMAScript规范为所有函数都包含两个方法(这两个方法非继承而来), call 和 apply 。这两个函数都是在特定的作用域中调用函数,能改变函数的作用域,实际上是改变函数体内 this 的值 。call 和 apply语法 定义 说明 ca...
2018-08-07 16:34:01 129
原创 自定义指令
失去焦点事件app.directive('ngBlur', function (AjaxService) { return { restrict: 'A', link: function (scope, element, attr) { element.bind('blur', function(evt) { ...
2018-05-23 17:38:42 152
转载 angularjs之ng-class指令详解
angularjs中通常使用ng-class指令生成不同样式,以下总结使用方法:一 ng-class使用字符串<div class="well"> <div class="form-group"> <input type="text" placeholder="input your class type" ng-model="
2018-04-30 16:38:20 1207
转载 angularjs学习资料
指令中controller和link的区别:http://www.cnblogs.com/CreateMyself/p/5568202.htmlangular视频教程:http://www.imooc.com/learn/156指令中的隔离 Scope :https://blog.coding.net/blog/angularjs-directive-isolate-scopeangularjs代...
2018-04-30 16:11:12 271
转载 angularjs 对象赋值传址问题
源代码:for(var i = 0; i < $scope.list.length; i++){ if($scope.list[i].md_id == $scope.currentmetadatainfo.md_id){ $scope.list[i] = $scope.currentmetadatainfo; }}代码解释: 我的JS代码里有一个list列表用于repeat...
2018-04-25 14:20:49 1188
转载 解决angularjs 在ie8上面 ng-repeat的select控件兼容性问题
源代码:<select ng-model="dataset.db_id"> <option ng-repeat="x in dataspaceinfo" value="{{x.db_id}}" >{{x.db_ch_name}}</option></select>问题描述: 在ie8下生成select的option时候使用ng
2018-04-23 14:10:59 426
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人