摘要: # 快应用开发过程踩坑集锦汇总 开发快应用学习资料及踩坑问题汇总 -- 持续更新,调整 by Qzx ## 参考网址 - [快应用官网](https://www.quickapp.cn/) - [快应用开发文档](https://doc.quickapp.cn/) - [快应用开发圈资源汇总](ht 阅读全文
posted @ 2018-08-01 10:58 xiaoxiao333 阅读(465) 评论(0) 推荐(0)
摘要: Document flex居中 子元素水平垂直居中 translate居中 子元素水平垂直居中子元素水平垂直居中 手机 联系人 信息 手机 联... 阅读全文
posted @ 2017-12-05 14:27 xiaoxiao333 阅读(167) 评论(0) 推荐(0)
摘要: 使用HTML5的canvas元素画出来的.在移动端手机上测试都发现画图有一点锯齿问题 出现这个问题的原因应该是手机的宽是720像素的, 而这个canvas是按照小于720像素画出来的, 所以在720像素的手机上显示时, 这个canvas的内容其实是经过拉伸的, 所以会出现模糊和锯齿. 解决方案一:就 阅读全文
posted @ 2017-05-19 11:18 xiaoxiao333 阅读(5978) 评论(0) 推荐(0)
摘要: //去除空格 String.prototype.Trim = function() { return this.replace(/\s+/g, ""); } //去除换行 function ClearBr(key) { key = key.replace(/<\/?.+?>/g,""); key = 阅读全文
posted @ 2016-12-20 10:57 xiaoxiao333 阅读(16577) 评论(0) 推荐(0)
摘要: <iframe src="backtop.html" frameborder="0" scrolling="no" id="test" onload="this.height=100"></iframe> <script type="text/javascript"> function reinit 阅读全文
posted @ 2016-12-16 17:21 xiaoxiao333 阅读(123) 评论(0) 推荐(0)
摘要: 跨域的时候,由于js的同源策略,父页面内的js不能获取到iframe页面的高度。需要一个页面来做代理。方法如下:假设www.a.com下的一个页面a.html要包含www.b.com下的一个页面c.html。我们使用www.a.com下的另一个页面agent.html来做代理,通过它获取iframe 阅读全文
posted @ 2016-12-16 17:20 xiaoxiao333 阅读(563) 评论(0) 推荐(0)
摘要: <div class="box"> <div style="width: 100px;height:150px;"> 解析:本题主解析:本题主解析:本题主 </div> </div> <style type="text/css"> .box { display: flex; align-items: 阅读全文
posted @ 2016-07-15 17:18 xiaoxiao333 阅读(118) 评论(0) 推荐(0)
摘要: <script> KE.show({ id : 'content1', resizeMode : 0, afterCreate : function(id) { KE.toolbar.disable(id, []); KE.readonly(id); KE.g[id].newTextarea.dis 阅读全文
posted @ 2016-05-27 13:05 xiaoxiao333 阅读(689) 评论(0) 推荐(0)
摘要: $.ajax({ url : _url, type : 'GET', dataType : 'html', xhrFields: { withCredentials: true }, success : function(data){ $(dom).html(data); }}); 阅读全文
posted @ 2016-05-26 17:27 xiaoxiao333 阅读(773) 评论(0) 推荐(0)
摘要: //把日期转换成时间戳function get_unix_time(time1){ var newstr = time1.replace(/-/g,'/'); var date = new Date(newstr); var time_str = date.getTime().toString(); 阅读全文
posted @ 2016-05-26 16:36 xiaoxiao333 阅读(245) 评论(0) 推荐(0)