2018年7月4日

Angualr ng-bind-html样式不加载解决办法

摘要: myApp.filter('to_trusted', ['$sce', function ($sce) { return function (text) { return $sce.trustAsHtml(text); }; }]); <p class="cause-ing" ng-bind-htm 阅读全文

posted @ 2018-07-04 15:25 124331 阅读(287) 评论(0) 推荐(0) 编辑

2017年10月9日

angualr 单页面跳转(仿weui切换动画)

摘要: $scope.$on('$locationChangeStart', function(event, next, current) { setTimeout(function() { var hash = window.location.hash; if(current == next){ if(h 阅读全文

posted @ 2017-10-09 15:09 124331 阅读(172) 评论(0) 推荐(0) 编辑

2017年9月5日

很多人再找的6位框输入密码 类似于支付时候的输入密码框

摘要: 引用js <script src="http://zeptojs.com/zepto.min.js"></script> css .pwd-box{ width:310px; padding-left: 1px; position: relative; border: 1px solid #9f9f 阅读全文

posted @ 2017-09-05 17:43 124331 阅读(246) 评论(0) 推荐(0) 编辑

angual+mui 双栏上拉加载,微信里面禁用默认事件可用,可以防止浏览器回弹效果

摘要: //html 部分 <div class="mui-content"> <div id="slider" class="mui-slider mui-fullscreen"> <div id="sliderSegmentedControl" class=" mui-segmented-control 阅读全文

posted @ 2017-09-05 17:40 124331 阅读(607) 评论(0) 推荐(0) 编辑

单页面跳转添加返回和跳转动画(仿app) 只对单页面和跳转有用,我用的是angualr,有不会的可以私信问我。

摘要: var pageManager = { _pageIndex: 1, init:function() { var self = this; $scope.$on('$locationChangeStart', function() { var state = history.state || {}; 阅读全文

posted @ 2017-09-05 17:36 124331 阅读(198) 评论(1) 推荐(0) 编辑

2017年8月24日

文字前后对齐

摘要: text-align:justify;text-align-last:justify; 阅读全文

posted @ 2017-08-24 14:30 124331 阅读(128) 评论(0) 推荐(0) 编辑

2017年7月11日

angual+ mui 导航切换实现上拉加载

摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-sca 阅读全文

posted @ 2017-07-11 10:32 124331 阅读(300) 评论(0) 推荐(0) 编辑

2017年6月23日

ajax监听上传进度

摘要: var xhrOnProgress = function(fun) { xhrOnProgress.onprogress = fun; //绑定监听函数 return function() { var xhr = $.ajaxSettings.xhr(); if(xhrOnProgress.onpr 阅读全文

posted @ 2017-06-23 17:37 124331 阅读(972) 评论(0) 推荐(0) 编辑

2017年6月20日

Echais 点击legend

摘要: myChart.on('legendselectchanged', function (params) { 可以触发点击事件 ); 阅读全文

posted @ 2017-06-20 14:35 124331 阅读(157) 评论(0) 推荐(0) 编辑

2017年6月9日

angualr 微信监控返回

摘要: $scope.$on('$locationChangeStart', function(){ //你需要的操作。。 }); 阅读全文

posted @ 2017-06-09 09:41 124331 阅读(115) 评论(0) 推荐(0) 编辑

导航