摘要: //当前时间加1个自然月 $scope.now = new Date() var fromDate = $filter('date')($scope.now, 'yyyy-MM-dd')getMonth(1, "-", $scope.now.getDate(),$scope.now) //计算月份 阅读全文
posted @ 2018-06-04 13:59 雨落雪纷飞 阅读(1367) 评论(0) 推荐(0) 编辑
摘要: 第一步:通过点击事件,打开新窗口,并且传递参数 $scope.finalTrial = function(data){ var url = $state.href('content.checkFinalTrial') window.open(url+'?id='+data.id+'&type=1') 阅读全文
posted @ 2018-06-04 10:07 雨落雪纷飞 阅读(4018) 评论(0) 推荐(0) 编辑
摘要: 第一步: 安装npm 第二步: 新建文件夹webpackDemo文件夹,通过cmd进入到这个项目文件夹下,输入npm init 初始化。 第三步: 安装webpack (非全局),webpack-cli(非全局) npm install --save-dev webpack npm install 阅读全文
posted @ 2018-04-04 16:50 雨落雪纷飞 阅读(185) 评论(0) 推荐(0) 编辑
摘要: html //根据list1数据的contractnum字段查询 <li ng-repeat="user in list1 | filter:{contractnum:keyWord}"></li> //根据list1数据的contractnum字段和name字段查询 <li ng-repeat=" 阅读全文
posted @ 2018-01-12 16:15 雨落雪纷飞 阅读(1020) 评论(0) 推荐(0) 编辑
摘要: 1、将后台传来的字符串类型日期格式化 var dt1 = new Date(字符串类型日期)$scope.loanDate = $filter('date')(dt1, 'yyyy-MM-dd') 2、日期相加 var dt1 = new Date($scope.providerResult.loa 阅读全文
posted @ 2018-01-12 15:27 雨落雪纷飞 阅读(198) 评论(0) 推荐(0) 编辑
摘要: <!--html--> <!--附件--> <form class="form" enctype='multipart/form-data'> //注意上传文件要写enctype='multipart/form-data' <div class="attachments"> <div> <p ng- 阅读全文
posted @ 2018-01-11 17:14 雨落雪纷飞 阅读(678) 评论(1) 推荐(0) 编辑
摘要: <!--html--> <table class="table1"> <thead> <tr> <th> <input id="flag" type="checkbox" ng-model="select_all" ng-change="selectAll()"> </th> <th>合同编号</t 阅读全文
posted @ 2018-01-11 16:43 雨落雪纷飞 阅读(389) 评论(0) 推荐(0) 编辑