摘要: wxml结构图如下 json包如下 1 { 2 "component":true, 3 "usingComponents":{} 4 } wxss样式图如下 js代码如下 思路来源于以下文章 新手小程序自定义组件教程 阅读全文
posted @ 2018-03-07 16:51 BlueSky1024 阅读(886) 评论(0) 推荐(0) 编辑
摘要: a,a:hover,a:active,a:visited,a:link,a:focus{ -webkit-tap-highlight-color:rgba(0,0,0,0); -webkit-tap-highlight-color: transparent; outline:none; backgr 阅读全文
posted @ 2018-01-05 17:18 BlueSky1024 阅读(351) 评论(0) 推荐(0) 编辑
摘要: css部分 #public_box{width:100%;height:100%;position:fixed;top:0;left:0;z-index:100;background:rgba(0,0,0,.4);}.spinner { margin:-17px -75px; width: 150p 阅读全文
posted @ 2017-12-25 19:25 BlueSky1024 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 单行overflow: hidden;text-overflow: ellipsis;white-space: nowrap; 多行(兼容各个浏览器)//通过覆盖最后几个字的形式p{position:relative;line-height:1.4em;height:4.2em;/* 3 倍line 阅读全文
posted @ 2017-11-23 14:27 BlueSky1024 阅读(315) 评论(0) 推荐(0) 编辑
摘要: touch.js下载地址 https://gitee.com/mirrors/touch-js Touch 在开发移动端的应用中会使用到很多的手势操作,例如一指拖动、两指旋转等等,为了方便开放者快速集成这些手势,在Clouda中内置了事件和手势库Library.touch,下面将详细的介绍如何使用L 阅读全文
posted @ 2017-11-22 14:09 BlueSky1024 阅读(5432) 评论(0) 推荐(1) 编辑
摘要: 文字编码方式 阅读全文
posted @ 2017-10-21 10:47 BlueSky1024 阅读(1327) 评论(0) 推荐(1) 编辑
摘要: // 加载配置文件var instance = axios.create({ baseURL: 'http://zy-shop.tincent.me/Wechat/', headers: { 'Content-Type': 'application/x-www-form-urlencoded' } 阅读全文
posted @ 2017-09-21 10:53 BlueSky1024 阅读(1054) 评论(0) 推荐(0) 编辑
摘要: jQuery Smart UI Liger UI框架链接地址:http://www.ligerui.com/ DWZ富客户端框架(jQuery RIA framework) angela UI 阅读全文
posted @ 2017-07-28 18:26 BlueSky1024 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1 js控制锚点跳转 <a name="anchor"></a> location.hash="anchor"; 不只有a其他元素也可以,比如在报表中:<tr id="tr1">...</tr>location.hash="tr1"或者用jQuery的动画滚动效果:var id="tr1";$('h 阅读全文
posted @ 2017-07-28 16:55 BlueSky1024 阅读(21649) 评论(0) 推荐(0) 编辑
摘要: json2Form:function(json) { var str = ""; for(var p in json){ // 判断对象是否为数组 if(typeof json[p]=="object"){ var m=String(p) for(var i=0;i<json[p].length;i 阅读全文
posted @ 2017-07-07 16:46 BlueSky1024 阅读(943) 评论(0) 推荐(0) 编辑