- 博客(6)
- 资源 (4)
- 收藏
- 关注
原创 使用decodeURIComponent解码字符
用url传参时,有中文,发现乱码了:console.log($scope.parseURL())这个字符类似于encodeURIComponent() 函数编码的 URI ;于是尝试使用decodeURIComponent解码: console.log(decodeURIComponent($scope.parseURL()));解码成功:...
2018-10-30 12:58:59 6477
原创 AngularCli新建组件报错(More than one module matches. Use skip-import ...)
新建组件报错:报错内容:More than one module matches. Use skip-import option to skip importing the component into the closest module.原因:项目中存在多个module,需要指定某个module新建;解决办法:加后缀 --module=app...
2018-10-28 09:44:23 4363
原创 JS获取路径中的文件名
原路径:/7/2018/10/15/b3e7b4c5-bdaf-4d82-bee3-f82dfd10d83c.doc 使用split切割成数组,然后取最后一个即可:切割成的数组为:var Business=$scope.detail.BusinessFileUrl.split("/");$scope.filesNameArr[0] = Business[Busines...
2018-10-25 15:52:07 8033 1
原创 使用accept控制file上传文件类型
代码:<input type="file" id="listImg" name="listImg" accept="image/*" upload-file-a>实现的效果:其他写法: <input type="file" name="pic" id="pic" accept="image/gi
2018-10-24 15:58:39 3794
原创 使用$scope.$apply()进行DOM重绘
问题:文件改变之后,文件名无法实时更新到页面上;<div> <input type="file" id='file' onchange="angular.element(this).scope().fileChange(this)" data-index="{{$index}}" ng-model="filesNameArr[...
2018-10-19 09:52:37 1119
原创 JS操作子节点移动位置
HTML:<div id="father"> <div class="son" style="color: #8C85E6">1</div> <div class="son">2</div> <div class="son"
2018-10-11 13:50:47 7606
XPathHelper.rar
2019-09-27
pad-zeropadding-min.js
2018-09-13
用于加密的js文件:aes.js
2018-09-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人