- 博客(5)
- 收藏
- 关注
原创 解析url携带的参数
想解析url 后面所携带的参数吗? 给你封装一个方法吧function getQueryStrings () { //location.search 返回从问号到URL末尾的所有内容 var qs = location.search.length > 0 ? location.search.substring(1) : '', //保存数...
2018-12-27 15:03:42
1556
原创 angular中自定义过滤器
html部分: body ng-controller="chenController">{{ filterValue | firstUppercase}}body>javascript部分:var myApp = angular.module('chen',[]);myApp.controller('chenController',['$scope',functio
2017-11-29 11:13:35
403
原创 angualrJs中$interpolate的运用
html部分: input type="email" ng-model="to" placeholder="请输入正确邮箱!">textarea ng-model="emailBody">textarea>pre>{{previewText}}pre> javascript部分: $scope.$watch('emailBody',function(body)
2017-11-28 17:18:15
220
原创 JS获取指定日期的前一天,一周,一个月
//获取当前日期方法function getNowFormatDate() {var date = new Date();var seperator1 = "-";var year = date.getFullYear();var month = date.getMonth() + 1;var strDate = date.getDate();if (month >=
2017-10-18 15:11:52
10048
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人