2017年6月8日

mui-a标签跳转

摘要: mui('body').on('tap','a',function(){ window.top.location.href=this.href; }); 阅读全文

posted @ 2017-06-08 14:37 124331 阅读(1300) 评论(0) 推荐(0) 编辑

2017年5月24日

浏览器地址截取

摘要: var urlData = location.search.split('?')[1].split("&"); var datatype = location.search.split('?')[1].split("=")[1] 阅读全文

posted @ 2017-05-24 14:23 124331 阅读(143) 评论(0) 推荐(0) 编辑

2017年5月23日

回到顶部

摘要: $('body,html').animate({scrollTop:0},0); 阅读全文

posted @ 2017-05-23 15:18 124331 阅读(77) 评论(0) 推荐(0) 编辑

mui - 滑动置顶

摘要: var scroll = mui('.mui-scroll-wrapper').scroll(); document.querySelector('.mui-scroll-wrapper').addEventListener('scroll', function(e) { var top = scr 阅读全文

posted @ 2017-05-23 15:18 124331 阅读(239) 评论(0) 推荐(0) 编辑

2017年5月18日

中文转义

摘要: encodeURI() 阅读全文

posted @ 2017-05-18 11:02 124331 阅读(360) 评论(0) 推荐(0) 编辑

2017年4月10日

angular 播放视频

摘要: html : <embed embed-src="...">app.directive('embedSrc', function () { return { restrict: 'A', link: function (scope, element, attrs) { var current = e 阅读全文

posted @ 2017-04-10 09:26 124331 阅读(1633) 评论(0) 推荐(0) 编辑

2017年3月17日

angular + mui 下拉加载

摘要: $.init({ pullRefresh: { container: '#underway-con', //触摸区域 up: { contentrefresh: '正在加载...', callback: pullupRefresh } } }); function pullupRefresh() { 阅读全文

posted @ 2017-03-17 20:52 124331 阅读(864) 评论(0) 推荐(0) 编辑

2016年11月8日

手机端1px

摘要: /*.sx_scale-1px{ position: relative; }*/ /*.sx_scale-1px:after{ content: " "; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; border 阅读全文

posted @ 2016-11-08 17:39 124331 阅读(198) 评论(0) 推荐(0) 编辑

上拉加载 angular

摘要: var obj = {page:1};//默认获取商品列表时传入参数,为第一页 var flag = true; function order_list(options){ var requestParams = { userId:sessionStorage.getItem("userId"), 阅读全文

posted @ 2016-11-08 09:48 124331 阅读(369) 评论(0) 推荐(0) 编辑

阻挡底部输入法弹出遮挡置底按钮

摘要: mui.plusReady(function() { //设置bottom绝对位置 document.getElementById('bottomx').style.top = (plus.display.resolutionHeight - 50) + "px"; }); 阅读全文

posted @ 2016-11-08 09:44 124331 阅读(217) 评论(0) 推荐(0) 编辑

导航